[Gpa-commits] r979 - trunk/src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 30 02:22:48 CEST 2009


Author: moritzs
Date: 2009-03-30 02:22:47 +0200 (Mon, 30 Mar 2009)
New Revision: 979

Modified:
   trunk/src/ChangeLog
   trunk/src/gpa-key-details.c
Log:
2009-03-30  Moritz  <moritz at gnu.org>

	* gpa-key-details.c (signatures_page_fill_key): Call
	gtk_widget_set_size_request on ComboBox holding the key's UIDs.



Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2009-03-29 23:00:06 UTC (rev 978)
+++ trunk/src/ChangeLog	2009-03-30 00:22:47 UTC (rev 979)
@@ -1,3 +1,8 @@
+2009-03-30  Moritz  <moritz at gnu.org>
+
+	* gpa-key-details.c (signatures_page_fill_key): Call
+	gtk_widget_set_size_request on ComboBox holding the key's UIDs.
+
 2009-03-29  Moritz  <moritz at gnu.org>
 
 	* gpa.h: Do not include gpadefs.h.

Modified: trunk/src/gpa-key-details.c
===================================================================
--- trunk/src/gpa-key-details.c	2009-03-29 23:00:06 UTC (rev 978)
+++ trunk/src/gpa-key-details.c	2009-03-30 00:22:47 UTC (rev 979)
@@ -236,6 +236,13 @@
     {
       gpgme_user_id_t uid;
 
+      /* Make the combo widget's width shrink as much as
+	 possible. This (hopefully) fixes the previous behaviour
+	 correctly: displaying a key with slightly longer signed UIDs
+	 caused the top-level window to pseudo-randomly increase it's
+	 size (which couldn't even be undone by the user anymore).  */
+      gtk_widget_set_size_request (GTK_WIDGET (combo), 0, -1);
+
       gtk_combo_box_append_text (combo, _("All signatures"));
       gtk_combo_box_set_active (combo, 0);
       for (i=1, uid = key->uids; uid; i++, uid = uid->next)



More information about the Gpa-commits mailing list