Kaydet (Commit) 8302a0be authored tarafından Enrico Tröger's avatar Enrico Tröger

Don't use menu item images for the tab bar menu to save some vertical space.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3619 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 785feb5b
2009-03-05 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/notebook.c:
Don't use menu item images for the tab bar menu to save some
vertical space.
2009-03-03 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/about.c, THANKS:
......
......@@ -214,9 +214,7 @@ static GtkMenu *get_tab_bar_popup_menu(void)
continue;
base_name = g_path_get_basename(doc->file_name);
menu_item = gtk_image_menu_item_new_with_label(base_name);
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item),
gtk_image_new_from_icon_name(GTK_STOCK_FILE, GTK_ICON_SIZE_MENU));
menu_item = gtk_menu_item_new_with_label(base_name);
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);
g_signal_connect(menu_item, "activate", G_CALLBACK(tab_bar_menu_activate_cb), doc);
......@@ -232,12 +230,12 @@ static GtkMenu *get_tab_bar_popup_menu(void)
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);
menu_item = ui_image_menu_item_new(GTK_STOCK_CLOSE, _("Close Ot_her Documents"));
menu_item = gtk_menu_item_new_with_mnemonic(_("Close Ot_her Documents"));
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);
g_signal_connect(menu_item, "activate", G_CALLBACK(on_close_other_documents1_activate), NULL);
menu_item = ui_image_menu_item_new(GTK_STOCK_CLOSE, _("C_lose All"));
menu_item = gtk_menu_item_new_with_mnemonic(_("C_lose All"));
gtk_widget_show(menu_item);
gtk_container_add(GTK_CONTAINER(menu), menu_item);
g_signal_connect(menu_item, "activate", G_CALLBACK(on_close_all1_activate), NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment