diff --git a/ChangeLog b/ChangeLog index 42cf4350..06753202 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/notebook.c b/src/notebook.c index 916a70be..f6000496 100644 --- a/src/notebook.c +++ b/src/notebook.c @@ -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);