summaryrefslogtreecommitdiff
path: root/gtk/gtkcombo.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-11-30 21:51:46 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-11-30 21:51:46 +0000
commitd2b64a0b838d71e01a2cb3eec1e32f1ea1f787b5 (patch)
tree14b87234007db4d546b59d91b411eb619eaaff99 /gtk/gtkcombo.c
parent845d3701f799bc059e9cdcfb0e4988e8de83d3bf (diff)
downloadgtk+-d2b64a0b838d71e01a2cb3eec1e32f1ea1f787b5.tar.gz
Sanitize move/resize code, removing various bad, non-functional hacks.
Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize move/resize code, removing various bad, non-functional hacks. (Fixes #65048, reported by Damon Chaplin.)
Diffstat (limited to 'gtk/gtkcombo.c')
-rw-r--r--gtk/gtkcombo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkcombo.c b/gtk/gtkcombo.c
index 589912bb33..dcc711b728 100644
--- a/gtk/gtkcombo.c
+++ b/gtk/gtkcombo.c
@@ -486,10 +486,8 @@ gtk_combo_popup_list (GtkCombo * combo)
gtk_widget_hide (GTK_SCROLLED_WINDOW (combo->popup)->vscrollbar);
}
- gtk_widget_set_uposition (combo->popwin, x, y);
+ gtk_window_move (GTK_WINDOW (combo->popwin), x, y);
gtk_widget_set_usize (combo->popwin, width, height);
- gtk_widget_realize (combo->popwin);
- gdk_window_resize (combo->popwin->window, width, height);
gtk_widget_show (combo->popwin);
gtk_widget_grab_focus (combo->popwin);
@@ -784,7 +782,7 @@ gtk_combo_init (GtkCombo * combo)
combo->popwin = gtk_window_new (GTK_WINDOW_POPUP);
gtk_widget_ref (combo->popwin);
- gtk_window_set_policy (GTK_WINDOW (combo->popwin), 1, 1, 0);
+ gtk_window_set_resizable (GTK_WINDOW (combo->popwin), FALSE);
gtk_signal_connect (GTK_OBJECT (combo->popwin), "key_press_event",
GTK_SIGNAL_FUNC (gtk_combo_window_key_press), combo);