gnome-settings-daemon r451 - trunk/plugins/xrandr
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-settings-daemon r451 - trunk/plugins/xrandr
- Date: Sat, 16 Aug 2008 01:57:19 +0000 (UTC)
Author: federico
Date: Sat Aug 16 01:57:18 2008
New Revision: 451
URL: http://svn.gnome.org/viewvc/gnome-settings-daemon?rev=451&view=rev
Log:
xrandr - force size_allocate on the title menu item
Signed-off-by: Federico Mena Quintero <federico novell com>
Modified:
trunk/plugins/xrandr/gsd-xrandr-manager.c
Modified: trunk/plugins/xrandr/gsd-xrandr-manager.c
==============================================================================
--- trunk/plugins/xrandr/gsd-xrandr-manager.c (original)
+++ trunk/plugins/xrandr/gsd-xrandr-manager.c Sat Aug 16 01:57:18 2008
@@ -304,7 +304,19 @@
gtk_menu_item_toggle_size_allocate (GTK_MENU_ITEM (widget), 0);
g_signal_handlers_block_by_func (widget, title_item_size_allocate_cb, NULL);
+
+ /* Sigh. There is no way to turn on GTK_ALLOC_NEEDED outside of GTK+
+ * itself; also, since calling size_allocate on a widget with the same
+ * allcation is a no-op, we need to allocate with a "different" size
+ * first.
+ */
+
+ allocation->width++;
gtk_widget_size_allocate (widget, allocation);
+
+ allocation->width--;
+ gtk_widget_size_allocate (widget, allocation);
+
g_signal_handlers_unblock_by_func (widget, title_item_size_allocate_cb, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]