[gtk+/wip/cosimoc/combobox-gadget: 6/6] combobox: trivial code cleanup
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cosimoc/combobox-gadget: 6/6] combobox: trivial code cleanup
- Date: Tue, 22 Dec 2015 02:15:34 +0000 (UTC)
commit 231ac909ea4ab4e4cda522687eb4850758602316
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Dec 21 17:50:42 2015 -0800
combobox: trivial code cleanup
gtk/gtkcombobox.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index e4d1b0d..08d6d87 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1927,16 +1927,14 @@ gtk_combo_box_list_position (GtkComboBox *combo_box,
see bug #340204 */
GtkWidget *widget = GTK_WIDGET (combo_box);
- *x = *y = 0;
-
gtk_widget_get_allocation (widget, &allocation);
- window = gtk_widget_get_window (widget);
-
- gdk_window_get_root_coords (gtk_widget_get_window (widget),
- *x, *y, x, y);
+ *x = *y = 0;
*width = allocation.width;
+ window = gtk_widget_get_window (widget);
+ gdk_window_get_root_coords (window, *x, *y, x, y);
+
hpolicy = vpolicy = GTK_POLICY_NEVER;
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolled_window),
hpolicy, vpolicy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]