summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Mikko Rasa <tdb@tdb.fi>2012-07-29 13:15:04 +0300
committerGravatar Mikko Rasa <tdb@tdb.fi>2012-07-31 21:12:21 +0300
commitd8c8ada6c7f3952394989b6a705624d94e956d7a (patch)
treeec6b148c4e96122ec7220583136e0a9f31ca9f4a /divelist.c
parenta5e822a4d6f742afe2b4b2e6a856af3063b5ffe1 (diff)
downloadsubsurface-d8c8ada6c7f3952394989b6a705624d94e956d7a.tar.gz
Changes to menu icons
It's customary for menu bars to not have icons. Some items were lacking icons when there's perfectly good stock icons available. I was a bit torn between the "new" and "add" icons for the "add dive" item, since what it really does is create a new dive, but the "add" icon is an uninteresting sheet of paper in the default icon theme so I decided to use the "add" icon. Signed-off-by: Mikko Rasa <tdb@tdb.fi>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/divelist.c b/divelist.c
index 21f343f7f..27d24243b 100644
--- a/divelist.c
+++ b/divelist.c
@@ -702,10 +702,12 @@ void add_dive_cb(GtkWidget *menuitem, gpointer data)
static void popup_divelist_menu(GtkTreeView *tree_view, GtkTreeModel *model, int button)
{
- GtkWidget *menu, *menuitem;
+ GtkWidget *menu, *menuitem, *image;
menu = gtk_menu_new();
- menuitem = gtk_menu_item_new_with_label("Add dive");
+ menuitem = gtk_image_menu_item_new_with_label("Add dive");
+ image = gtk_image_new_from_stock(GTK_STOCK_ADD, GTK_ICON_SIZE_MENU);
+ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menuitem), image);
g_signal_connect(menuitem, "activate", G_CALLBACK(add_dive_cb), model);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show_all(menu);