From 428265fbc52ede35a420169aa44fcd294958bb93 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sun, 29 Nov 1998 03:40:23 +0000 Subject: [PATCH] 1998-11-28 Miguel de Icaza * gwidget.c (x_update_input): Use gtk_editable_changed on the entry. (x_create_listbox): Fix more CList api change. * gscreen.c (CLIST_FROM_SW): Adapt to new GtkScrolledWindow inheritance. --- gnome/ChangeLog | 7 +++++++ gnome/gscreen.c | 2 +- gnome/gwidget.c | 8 +++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index cc14f612b..1724dfe95 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,10 @@ +1998-11-28 Miguel de Icaza + + * gwidget.c (x_update_input): Use gtk_editable_changed on the entry. + (x_create_listbox): Fix more CList api change. + * gscreen.c (CLIST_FROM_SW): Adapt to new GtkScrolledWindow + inheritance. + 1998-11-27 Miguel de Icaza * Makefile.in (OOBJS): Add filegui.o back until the GTK-specific diff --git a/gnome/gscreen.c b/gnome/gscreen.c index 646c4b423..ed48c4a67 100644 --- a/gnome/gscreen.c +++ b/gnome/gscreen.c @@ -97,7 +97,7 @@ typedef void (*context_menu_callback)(GtkWidget *, void *); static void panel_file_list_configure_contents (GtkWidget *sw, WPanel *panel, int main_width, int height); -#define CLIST_FROM_SW(panel_list) GTK_CLIST (GTK_SCROLLED_WINDOW (panel_list)->child) +#define CLIST_FROM_SW(panel_list) GTK_CLIST (GTK_BIN (panel_list)->child) void diff --git a/gnome/gwidget.c b/gnome/gwidget.c index 84abb2b2b..cc9e0b0de 100644 --- a/gnome/gwidget.c +++ b/gnome/gwidget.c @@ -342,9 +342,7 @@ x_update_input (WInput *in) #else gtk_widget_draw (GTK_WIDGET (entry), NULL); #endif - /* This is a private member, hopefully the widget - properly updates itself */ - gtk_entry_adjust_scroll (GTK_ENTRY (entry)); + gtk_editable_changed (GTK_EDITABLE (entry)); gtk_widget_queue_draw (GTK_WIDGET (entry)); } } @@ -353,7 +351,7 @@ x_update_input (WInput *in) static GtkWidget * listbox_pull (widget_data data) { - return GTK_SCROLLED_WINDOW (data)->child; + return GTK_BIN (data)->child; } void @@ -449,7 +447,7 @@ x_create_listbox (Dlg_head *h, widget_data parent, WListbox *l) gtk_widget_show (listbox); for (p = l->list, i = 0; i < l->count; i++, p = p->next){ - const char *text [1]; + char *text [1]; text [0] = p->text; gtk_clist_append (GTK_CLIST (listbox), text);