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

commit aa84a2c43171daa94ca932d9fd47bdabb2d03f8b
Author: James Buren <r...@frugalware.org>
Date:   Fri Apr 9 18:20:44 2010 -0500

grape.c
* add menu_bar_new function

diff --git a/src/grape.c b/src/grape.c
index 0bdba71..a2664d9 100644
--- a/src/grape.c
+++ b/src/grape.c
@@ -191,6 +191,19 @@ GtkWidget *file_menu_new(void) {
return file_menu;
}

+/* Allocate a new menu bar. */
+GtkWidget *menu_bar_new(void) {
+  GtkWidget *menu_bar;
+
+  menu_bar = gtk_menu_bar_new();
+
+  insert_menu_items( menu_bar,
+                     file_menu_new(),
+                     NULL );
+
+  return menu_bar;
+}
+
/* 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