Fix wrong display of the filename in the tab bar menu for new files.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3635 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-03-19 17:50:08 +00:00
parent 1ec2a9e323
commit fe3ba59309
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@
'Set Includes and Arguments' dialog.
Disable Compile/Run buttons/menu items when Compile/Run commands are
set but empty.
* src/notebook.c:
Fix wrong display of the filename in the tab bar menu for new files.
2009-03-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -213,7 +213,7 @@ static GtkMenu *get_tab_bar_popup_menu(void)
if (! DOC_VALID(doc))
continue;
base_name = g_path_get_basename(doc->file_name);
base_name = g_path_get_basename(DOC_FILENAME(doc));
menu_item = gtk_menu_item_new_with_label(base_name);
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);