? bug-buddy.gladep
Index: bug-buddy.c
===================================================================
RCS file: /cvs/gnome/bug-buddy/src/bug-buddy.c,v
retrieving revision 1.138
diff -u -p -r1.138 bug-buddy.c
--- bug-buddy.c	20 Aug 2006 19:48:09 -0000	1.138
+++ bug-buddy.c	3 Sep 2006 20:58:17 -0000
@@ -949,6 +949,38 @@ close_callback (GtkWidget *widget, gpoin
 	gtk_main_quit ();
 }
 
+static void
+help_callback (GtkWidget *widget, gpointer user_data)
+{
+	GnomeProgram *program = (GnomeProgram *)user_data;
+	GError *error = NULL;
+
+	gnome_help_display_desktop (program, 
+	                            "user-guide",
+	                            "user-guide", 
+	                            "feedback-bugs",
+	                            &error);
+
+	if (error) {
+		GtkWidget *error_dialog = 
+		    gtk_message_dialog_new (NULL, 
+		                            GTK_DIALOG_MODAL,
+		                            GTK_MESSAGE_ERROR, 
+		                            GTK_BUTTONS_CLOSE,
+		                            _("There was an error displaying help: %s"),
+		                            error->message);
+
+		g_signal_connect (G_OBJECT (error_dialog), "response", 
+		                  G_CALLBACK (gtk_widget_destroy), NULL);
+
+		gtk_window_set_resizable (GTK_WINDOW (error_dialog), FALSE);
+
+		gtk_widget_show (error_dialog);
+		g_error_free (error);
+		error = NULL;
+	}
+}
+
 static gboolean
 delete_callback (GtkWidget *widget, GdkEvent *event, gpointer data)
 {
@@ -1136,6 +1168,10 @@ main (int argc, char *argv[])
 	}
 	
 	g_object_set_data (G_OBJECT (xml), "gnome-version", gnome_version);
+
+	/* connect the signal handler for the help button */
+	g_signal_connect (glade_xml_get_widget (xml, "help-button"), "clicked", 
+	                  G_CALLBACK (help_callback), program);
 
 	gtk_widget_show (main_window);
 
Index: bug-buddy.glade
===================================================================
RCS file: /cvs/gnome/bug-buddy/src/bug-buddy.glade,v
retrieving revision 1.96
diff -u -p -r1.96 bug-buddy.glade
--- bug-buddy.glade	21 Aug 2006 16:33:42 -0000	1.96
+++ bug-buddy.glade	3 Sep 2006 20:58:17 -0000
@@ -396,52 +396,89 @@
 		  </child>
 
 		  <child>
-		    <widget class="GtkHButtonBox" id="hbuttonbox2">
+		    <widget class="GtkCheckButton" id="pending-reports-check">
+		      <property name="can_focus">True</property>
+		      <property name="label" translatable="yes">Send also pending crash reports</property>
+		      <property name="use_underline">True</property>
+		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
+		      <property name="active">True</property>
+		      <property name="inconsistent">False</property>
+		      <property name="draw_indicator">True</property>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">False</property>
+		      <property name="fill">False</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkHBox" id="hbox3">
 		      <property name="visible">True</property>
-		      <property name="layout_style">GTK_BUTTONBOX_END</property>
-		      <property name="spacing">6</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">0</property>
 
 		      <child>
-			<widget class="GtkButton" id="close-button">
+			<widget class="GtkHButtonBox" id="hbuttonbox3">
 			  <property name="visible">True</property>
-			  <property name="can_default">True</property>
-			  <property name="can_focus">True</property>
-			  <property name="label">gtk-close</property>
-			  <property name="use_stock">True</property>
-			  <property name="relief">GTK_RELIEF_NORMAL</property>
-			  <property name="focus_on_click">True</property>
+			  <property name="layout_style">GTK_BUTTONBOX_START</property>
+			  <property name="spacing">6</property>
+
+			  <child>
+			    <widget class="GtkButton" id="help-button">
+			      <property name="visible">True</property>
+			      <property name="can_default">True</property>
+			      <property name="can_focus">True</property>
+			      <property name="label">gtk-help</property>
+			      <property name="use_stock">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			    </widget>
+			  </child>
 			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">True</property>
+			  <property name="fill">True</property>
+			</packing>
 		      </child>
 
 		      <child>
-			<widget class="GtkButton" id="send-button">
-			  <property name="can_default">True</property>
-			  <property name="can_focus">True</property>
-			  <property name="label" translatable="yes">_Send</property>
-			  <property name="use_underline">True</property>
-			  <property name="relief">GTK_RELIEF_NORMAL</property>
-			  <property name="focus_on_click">True</property>
+			<widget class="GtkHButtonBox" id="hbuttonbox2">
+			  <property name="visible">True</property>
+			  <property name="layout_style">GTK_BUTTONBOX_END</property>
+			  <property name="spacing">6</property>
+
+			  <child>
+			    <widget class="GtkButton" id="close-button">
+			      <property name="visible">True</property>
+			      <property name="can_default">True</property>
+			      <property name="can_focus">True</property>
+			      <property name="label">gtk-close</property>
+			      <property name="use_stock">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkButton" id="send-button">
+			      <property name="can_default">True</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">_Send</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			    </widget>
+			  </child>
 			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">True</property>
+			  <property name="fill">True</property>
+			</packing>
 		      </child>
-		    </widget>
-		    <packing>
-		      <property name="padding">0</property>
-		      <property name="expand">False</property>
-		      <property name="fill">False</property>
-		      <property name="pack_type">GTK_PACK_END</property>
-		    </packing>
-		  </child>
-
-		  <child>
-		    <widget class="GtkCheckButton" id="pending-reports-check">
-		      <property name="can_focus">True</property>
-		      <property name="label" translatable="yes">Send also pending crash reports</property>
-		      <property name="use_underline">True</property>
-		      <property name="relief">GTK_RELIEF_NORMAL</property>
-		      <property name="focus_on_click">True</property>
-		      <property name="active">True</property>
-		      <property name="inconsistent">False</property>
-		      <property name="draw_indicator">True</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
