[seahorse] Fixed bug in the public key properties GUI.



commit 08b392d6b800e3856325919dc877429dded186e6
Author: Pablo Castellano <pablog src gnome org>
Date:   Fri Feb 12 02:44:16 2010 +0100

    Fixed bug in the public key properties GUI.
    
    With handlers specified in the UI file you cannot pass parameters.
    It was causing an assertion error and you couldn't see the people
    who had signed any public key you had.
    The solution is using g_signal_object as far as I have seen.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=609708

 pgp/seahorse-pgp-key-properties.c          |    2 +-
 pgp/seahorse-pgp-public-key-properties.xml |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/pgp/seahorse-pgp-key-properties.c b/pgp/seahorse-pgp-key-properties.c
index 0db53fd..5fbdab3 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -1745,8 +1745,8 @@ do_trust (SeahorseWidget *swidget)
 			
 			gtk_tree_view_set_model (GTK_TREE_VIEW (widget), GTK_TREE_MODEL(filter));
 			widget = GTK_WIDGET (seahorse_widget_get_widget (swidget, "signatures-toggle"));
+			g_signal_connect (widget, "toggled", G_CALLBACK (on_pgp_trusted_toggled), filter);
 			gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
-			on_pgp_trusted_toggled (GTK_TOGGLE_BUTTON (widget), filter);
 		}
 	}
 
diff --git a/pgp/seahorse-pgp-public-key-properties.xml b/pgp/seahorse-pgp-public-key-properties.xml
index d3f381e..c6c654c 100644
--- a/pgp/seahorse-pgp-public-key-properties.xml
+++ b/pgp/seahorse-pgp-public-key-properties.xml
@@ -911,7 +911,6 @@
                                 <property name="receives_default">False</property>
                                 <property name="use_underline">True</property>
                                 <property name="draw_indicator">True</property>
-                                <signal name="toggled" handler="on_pgp_trusted_toggled"/>
                               </object>
                               <packing>
                                 <property name="expand">False</property>



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