[maemo-commits] [maemo-commits] r12945 - projects/haf/trunk/gtk+/gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jul 31 12:56:40 EEST 2007
Author: xan
Date: 2007-07-31 12:56:38 +0300 (Tue, 31 Jul 2007)
New Revision: 12945

Modified:
   projects/haf/trunk/gtk+/gtk/gtkentry.c
Log:
Queue a resize on the completion popup when the entry allocation changes.


Modified: projects/haf/trunk/gtk+/gtk/gtkentry.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtkentry.c	2007-07-31 09:56:34 UTC (rev 12944)
+++ projects/haf/trunk/gtk+/gtk/gtkentry.c	2007-07-31 09:56:38 UTC (rev 12945)
@@ -1578,6 +1578,9 @@
        * be affected by the usize of the entry, if set
        */
       gint x, y, width, height;
+#if defined(MAEMO_CHANGES)
+      GtkEntryCompletion *completion;
+#endif
 
       get_widget_window_size (entry, &x, &y, &width, &height);
       
@@ -1590,6 +1593,12 @@
                               x, y, width, height);
 
       gtk_entry_recompute (entry);
+
+#if defined(MAEMO_CHANGES)
+      completion = gtk_entry_get_completion (entry);
+      if (completion && GTK_WIDGET_MAPPED (completion->priv->popup_window))
+        gtk_widget_queue_resize (completion->priv->popup_window);
+#endif
     }
 }
 


More information about the maemo-commits mailing list