? gnome-panel/intltool-modules
? gnome-panel/po/.intltool-merge-cache
Index: gnome-panel/ChangeLog
===================================================================
RCS file: /export/cvs/gnome-2.0/gnome-panel/ChangeLog,v
retrieving revision 1.604
diff -p -u -5 -r1.604 ChangeLog
--- gnome-panel/ChangeLog	2003/12/10 17:50:22	1.604
+++ gnome-panel/ChangeLog	2003/12/17 13:15:37
@@ -1,5 +1,11 @@
+2003-12-17  Vijaykumar Patwari <vijaykumar.patwari@wipro.com>
+	* panel-menu-bar.c (panel_menu_bar_load): Added 
+	'Browse Applications' options. 
+	(panel_menu_bar_invoke_menu): Launches nautilus "applications:///",
+	if 'Browse Applications' is clicked. Fixes bug# 129073.
+
 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
 
 	* configure.in: require latest libgnomeui and
 	gtk+ to replace the egg-screen-exec stuff.
 
Index: gnome-panel/gnome-panel/panel-menu-bar.c
===================================================================
RCS file: /export/cvs/gnome-2.0/gnome-panel/gnome-panel/panel-menu-bar.c,v
retrieving revision 1.24
diff -p -u -5 -r1.24 panel-menu-bar.c
--- gnome-panel/gnome-panel/panel-menu-bar.c	2003/11/13 12:31:02	1.24
+++ gnome-panel/gnome-panel/panel-menu-bar.c	2003/12/17 13:15:37
@@ -309,10 +309,13 @@ panel_menu_bar_load (PanelWidget *panel,
 	}
 
 	panel_applet_add_callback (
 		menubar->priv->info, "help", GTK_STOCK_HELP, _("_Help"));
 
+	panel_applet_add_callback (
+		menubar->priv->info, "browse", NULL, _("_Browse Applications"));
+
 	panel_widget_set_applet_expandable (panel, GTK_WIDGET (menubar), FALSE, TRUE);
 }
 
 void
 panel_menu_bar_load_from_gconf (PanelWidget *panel,
@@ -339,20 +342,31 @@ panel_menu_bar_create (PanelToplevel *to
 void
 panel_menu_bar_invoke_menu (PanelMenuBar *menubar,
 			    const char   *callback_name)
 {
 	GdkScreen *screen;
+	GError *error = NULL;
 
 	g_return_if_fail (PANEL_IS_MENU_BAR (menubar));
 	g_return_if_fail (callback_name != NULL);
 
-	if (strcmp (callback_name, "help"))
-		return;
-
 	screen = gtk_widget_get_screen (GTK_WIDGET (menubar));
 
-	panel_show_help (screen, "wgospanel.xml", "gospanel-37");
+	if (!strcmp (callback_name, "help")) {
+		panel_show_help (screen, "wgospanel.xml", "gospanel-37");
+	} else if (!strcmp (callback_name, "browse")) {
+			gnome_url_show_on_screen ("applications:///", screen,  &error);
+			if (error) {
+				panel_error_dialog (screen,
+						    "Cannot launch nautilus",
+						    _("Cannot launch nautilus"),
+						    error->message);
+                                                                                
+				g_error_free (error);
+			}
+	} else
+		return;
 }
 
 void
 panel_menu_bar_popup_menu (PanelMenuBar *menubar,
 			   guint32       activate_time)
Index: gnome-panel/gnome-panel/panel-menu-button.c
===================================================================
RCS file: /export/cvs/gnome-2.0/gnome-panel/gnome-panel/panel-menu-button.c,v
retrieving revision 1.22
diff -p -u -5 -r1.22 panel-menu-button.c
--- gnome-panel/gnome-panel/panel-menu-button.c	2003/12/03 17:46:14	1.22
+++ gnome-panel/gnome-panel/panel-menu-button.c	2003/12/17 13:15:37
@@ -605,10 +605,12 @@ panel_menu_button_load (const char  *men
 
 	button->priv->applet_id = g_strdup (info->id);
 
 	panel_applet_add_callback (info, "help", GTK_STOCK_HELP, _("_Help"));
 
+	panel_applet_add_callback (info, "browse", NULL, _("_Browse Applications"));
+
 	panel_widget_set_applet_expandable (panel, GTK_WIDGET (button), FALSE, TRUE);
 	panel_widget_set_applet_size_constrained (panel, GTK_WIDGET (button), TRUE);
 
 	panel_menu_button_connect_to_gconf (button);
 }
@@ -837,20 +839,31 @@ panel_menu_button_create (PanelToplevel 
 void
 panel_menu_button_invoke_menu (PanelMenuButton *button,
 			       const char   *callback_name)
 {
 	GdkScreen *screen;
+	GError *error = NULL;
 
 	g_return_if_fail (PANEL_IS_MENU_BUTTON (button));
 	g_return_if_fail (callback_name != NULL);
 
-	if (strcmp (callback_name, "help"))
-		return;
-
 	screen = gtk_widget_get_screen (GTK_WIDGET (button));
 
-	panel_show_help (screen, "wgospanel.xml", "gospanel-37");
+	if (!strcmp (callback_name, "help")) {
+		panel_show_help (screen, "wgospanel.xml", "gospanel-37");
+	} else if (!strcmp (callback_name, "browse")) {
+			gnome_url_show_on_screen (button->priv->menu_path, screen, &error);
+			if (error) {
+				panel_error_dialog (screen,
+                                                    "Cannot launch nautilus",
+						    _("Cannot launch nautilus"),
+						    error->message);
+                                                                                                                              
+				g_error_free (error);
+			}
+	} else
+		return;
 }
 
 void
 panel_menu_button_set_dnd_enabled (PanelMenuButton *button,
 				   gboolean         dnd_enabled)
