diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-11-30 21:51:46 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-11-30 21:51:46 +0000 |
commit | d2b64a0b838d71e01a2cb3eec1e32f1ea1f787b5 (patch) | |
tree | 14b87234007db4d546b59d91b411eb619eaaff99 /gtk/gtkcombo.c | |
parent | 845d3701f799bc059e9cdcfb0e4988e8de83d3bf (diff) | |
download | gtk+-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.c | 6 |
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); |