gnome-control-center r9037 - branches/gnome-2-24/capplets/appearance



Author: matthiasc
Date: Mon Oct  6 17:32:17 2008
New Revision: 9037
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9037&view=rev

Log:
Make the help buttons work


Modified:
   branches/gnome-2-24/capplets/appearance/ChangeLog
   branches/gnome-2-24/capplets/appearance/appearance-main.c
   branches/gnome-2-24/capplets/appearance/appearance-style.c

Modified: branches/gnome-2-24/capplets/appearance/appearance-main.c
==============================================================================
--- branches/gnome-2-24/capplets/appearance/appearance-main.c	(original)
+++ branches/gnome-2-24/capplets/appearance/appearance-main.c	Mon Oct  6 17:32:17 2008
@@ -85,6 +85,38 @@
     g_object_unref (data->client);
     g_object_unref (data->xml);
   }
+  else if (response_id == GTK_RESPONSE_HELP)
+  {
+      GtkNotebook *nb;
+      gint pindex;
+
+      nb = GTK_NOTEBOOK (glade_xml_get_widget (data->xml, "main_notebook"));
+      pindex = gtk_notebook_get_current_page (nb);
+
+      switch (pindex)
+      {
+        case 0: /* theme */
+          capplet_help (GTK_WINDOW (widget), "user-guide.xml", 
+                                    "goscustdesk-12"); 
+          break;
+        case 1: /* background */
+          capplet_help (GTK_WINDOW (widget), "user-guide.xml", 
+                                    "goscustdesk-7"); 
+          break;
+        case 2: /* fonts */
+          capplet_help (GTK_WINDOW (widget), "user-guide.xml", 
+                                    "goscustdesk-38"); 
+          break;
+        case 3: /* interface */
+          capplet_help (GTK_WINDOW (widget), "user-guide.xml", 
+                                    "goscustuserinter-2"); 
+          break;
+        default:
+          capplet_help (GTK_WINDOW (widget), "user-guide.xml", 
+                                    "prefs-look-and-feel"); 
+          break;
+       }
+  }
 }
 
 int

Modified: branches/gnome-2-24/capplets/appearance/appearance-style.c
==============================================================================
--- branches/gnome-2-24/capplets/appearance/appearance-style.c	(original)
+++ branches/gnome-2-24/capplets/appearance/appearance-style.c	Mon Oct  6 17:32:17 2008
@@ -392,7 +392,7 @@
 style_response_cb (GtkDialog *dialog, gint response_id)
 {
   if (response_id == GTK_RESPONSE_HELP) {
-    /* FIXME: help */
+    capplet_help (GTK_WINDOW (dialog), "user-guide.xml", "goscustdesk-61");
   } else {
     gtk_widget_hide (GTK_WIDGET (dialog));
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]