seahorse r2257 - in trunk: . src



Author: sadam
Date: Sat Jul  5 17:06:50 2008
New Revision: 2257
URL: http://svn.gnome.org/viewvc/seahorse?rev=2257&view=rev

Log:
2008-07-05  Adam Schreiber  <sadam clemson edu>

    * src/seahorse-keyserver-sync.c:
    * src/seahorse-keyserver-sync.glade: Set Sync button insensitive 
when a
    server isn't selected.  Fixes bug #541579


Modified:
   trunk/ChangeLog
   trunk/src/seahorse-keyserver-sync.c
   trunk/src/seahorse-keyserver-sync.glade

Modified: trunk/src/seahorse-keyserver-sync.c
==============================================================================
--- trunk/src/seahorse-keyserver-sync.c	(original)
+++ trunk/src/seahorse-keyserver-sync.c	Sat Jul  5 17:06:50 2008
@@ -88,19 +88,24 @@
 static void
 update_message (SeahorseWidget *swidget)
 {
-    GtkWidget *w, *w2;
+    GtkWidget *w, *w2, *sync_button;
     gchar *t;
     
     w = glade_xml_get_widget (swidget->xml, "publish-message");
     w2 = glade_xml_get_widget (swidget->xml, "sync-message");
+    sync_button = glade_xml_get_widget (swidget->xml, "sync-button");
 
     t = seahorse_gconf_get_string (PUBLISH_TO_KEY);
     if (t && t[0]) {
         gtk_widget_show (w);
         gtk_widget_hide (w2);
+        
+        gtk_widget_set_sensitive (sync_button, TRUE);
     } else {
         gtk_widget_hide (w);
         gtk_widget_show (w2);
+        
+        gtk_widget_set_sensitive (sync_button, FALSE);
     }
     g_free (t);
 }

Modified: trunk/src/seahorse-keyserver-sync.glade
==============================================================================
--- trunk/src/seahorse-keyserver-sync.glade	(original)
+++ trunk/src/seahorse-keyserver-sync.glade	Sat Jul  5 17:06:50 2008
@@ -124,7 +124,7 @@
 	  </child>
 
 	  <child>
-	    <widget class="GtkButton" id="button2">
+	    <widget class="GtkButton" id="sync-button">
 	      <property name="visible">True</property>
 	      <property name="can_default">True</property>
 	      <property name="has_default">True</property>



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