gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r25332 - in gnunet-gtk: contrib src/setup


From: gnunet
Subject: [GNUnet-SVN] r25332 - in gnunet-gtk: contrib src/setup
Date: Sat, 8 Dec 2012 23:10:08 +0100

Author: grothoff
Date: 2012-12-08 23:10:08 +0100 (Sat, 08 Dec 2012)
New Revision: 25332

Modified:
   gnunet-gtk/contrib/gnunet_setup_gtk_main_window.glade
   gnunet-gtk/src/setup/gnunet-setup.c
Log:
hide useless help link button on GADS page

Modified: gnunet-gtk/contrib/gnunet_setup_gtk_main_window.glade
===================================================================
--- gnunet-gtk/contrib/gnunet_setup_gtk_main_window.glade       2012-12-08 
22:00:11 UTC (rev 25331)
+++ gnunet-gtk/contrib/gnunet_setup_gtk_main_window.glade       2012-12-08 
22:10:08 UTC (rev 25332)
@@ -87,6 +87,7 @@
           <object class="GtkNotebook" id="GNUNET_setup_notebook">
             <property name="visible">True</property>
             <property name="can_focus">True</property>
+            <signal name="switch-page" 
handler="GNUNET_setup_notebook_switch_page_cb" swapped="no"/>
             <child>
               <object class="GtkVBox" id="GNUNET_setup_general_vbox">
                 <property name="visible">True</property>

Modified: gnunet-gtk/src/setup/gnunet-setup.c
===================================================================
--- gnunet-gtk/src/setup/gnunet-setup.c 2012-12-08 22:00:11 UTC (rev 25331)
+++ gnunet-gtk/src/setup/gnunet-setup.c 2012-12-08 22:10:08 UTC (rev 25332)
@@ -124,6 +124,28 @@
 
 
 /**
+ * The main visible page in our main notebook changed.  If the
+ * GADS page is visible, hide the help text, otherwise show it.
+ */
+void
+GNUNET_setup_notebook_switch_page_cb (GtkNotebook *notebook,
+                                     GtkWidget   *page,
+                                     guint        page_num,
+                                     gpointer     user_data) 
+{
+  GtkWidget *help;
+  GtkWidget *gads;
+
+  help = GTK_WIDGET (GNUNET_SETUP_get_object ("GNUNET_setup_help_text"));
+  gads = GTK_WIDGET (GNUNET_SETUP_get_object ("GNUNET_setup_gads_vbox"));
+  if (gads == page)
+    gtk_widget_hide (help);
+  else
+    gtk_widget_show (help);  
+}
+
+
+/**
  * Change the visibility of widgets according to the
  * value and visibility specification given.
  *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]