Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=grape.git;a=commitdiff;h=7dadf8c9ca63fc86d38c072447e13b976d6fdc59

commit 7dadf8c9ca63fc86d38c072447e13b976d6fdc59
Author: James Buren <r...@frugalware.org>
Date:   Fri Apr 9 17:58:20 2010 -0500

grape.c
* add file_menu_new() function

diff --git a/src/grape.c b/src/grape.c
index 39967c7..4736f54 100644
--- a/src/grape.c
+++ b/src/grape.c
@@ -147,6 +147,24 @@ void insert_menu_items(GtkWidget *menu,...) {
va_end(args);
}

+GtkWidget *file_menu_new(void) {
+  GtkWidget *file_menu;
+
+  file_menu = gtk_menu_new();
+
+  insert_menu_items( file_menu,
+                     image_menu_item_new(GTK_STOCK_NEW,NULL),
+                     image_menu_item_new(GTK_STOCK_OPEN,NULL),
+                     gtk_separator_menu_item_new(),
+                     image_menu_item_new(GTK_STOCK_SAVE,NULL),
+                     image_menu_item_new(GTK_STOCK_SAVE_AS,NULL),
+                     gtk_separator_menu_item_new(),
+                     image_menu_item_new(GTK_STOCK_QUIT,NULL),
+                     NULL );
+
+  return file_menu;
+}
+
/* Lets get this show on the road */
gint main(gint argc,gchar **argv) {
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to