diff --git a/ChangeLog b/ChangeLog index 7eeb3f3204..382001b16e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Jan 16 19:33:41 2002 Owen Taylor + + * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh + the dialog on map. (#52877, inspired by request from + Murray Cumming) + Wed Jan 16 19:23:04 2002 Owen Taylor * gtk/gtkbindings.c (gtk_binding_entry_activate): diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 7eeb3f3204..382001b16e 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Wed Jan 16 19:33:41 2002 Owen Taylor + + * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh + the dialog on map. (#52877, inspired by request from + Murray Cumming) + Wed Jan 16 19:23:04 2002 Owen Taylor * gtk/gtkbindings.c (gtk_binding_entry_activate): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 7eeb3f3204..382001b16e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Wed Jan 16 19:33:41 2002 Owen Taylor + + * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh + the dialog on map. (#52877, inspired by request from + Murray Cumming) + Wed Jan 16 19:23:04 2002 Owen Taylor * gtk/gtkbindings.c (gtk_binding_entry_activate): diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 7eeb3f3204..382001b16e 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Wed Jan 16 19:33:41 2002 Owen Taylor + + * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh + the dialog on map. (#52877, inspired by request from + Murray Cumming) + Wed Jan 16 19:23:04 2002 Owen Taylor * gtk/gtkbindings.c (gtk_binding_entry_activate): diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 7eeb3f3204..382001b16e 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Wed Jan 16 19:33:41 2002 Owen Taylor + + * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh + the dialog on map. (#52877, inspired by request from + Murray Cumming) + Wed Jan 16 19:23:04 2002 Owen Taylor * gtk/gtkbindings.c (gtk_binding_entry_activate): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 7eeb3f3204..382001b16e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Wed Jan 16 19:33:41 2002 Owen Taylor + + * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh + the dialog on map. (#52877, inspired by request from + Murray Cumming) + Wed Jan 16 19:23:04 2002 Owen Taylor * gtk/gtkbindings.c (gtk_binding_entry_activate): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 7eeb3f3204..382001b16e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Wed Jan 16 19:33:41 2002 Owen Taylor + + * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh + the dialog on map. (#52877, inspired by request from + Murray Cumming) + Wed Jan 16 19:23:04 2002 Owen Taylor * gtk/gtkbindings.c (gtk_binding_entry_activate): diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c index 1190154c4e..927fb58a54 100644 --- a/gtk/gtkfilesel.c +++ b/gtk/gtkfilesel.c @@ -357,6 +357,7 @@ static void gtk_file_selection_get_property (GObject *object, static void gtk_file_selection_init (GtkFileSelection *filesel); static void gtk_file_selection_finalize (GObject *object); static void gtk_file_selection_destroy (GtkObject *object); +static void gtk_file_selection_map (GtkWidget *widget); static gint gtk_file_selection_key_press (GtkWidget *widget, GdkEventKey *event, gpointer user_data); @@ -490,9 +491,11 @@ gtk_file_selection_class_init (GtkFileSelectionClass *class) { GObjectClass *gobject_class; GtkObjectClass *object_class; + GtkWidgetClass *widget_class; gobject_class = (GObjectClass*) class; object_class = (GtkObjectClass*) class; + widget_class = (GtkWidgetClass*) class; parent_class = gtk_type_class (GTK_TYPE_DIALOG); @@ -516,6 +519,7 @@ gtk_file_selection_class_init (GtkFileSelectionClass *class) G_PARAM_READABLE | G_PARAM_WRITABLE)); object_class->destroy = gtk_file_selection_destroy; + widget_class->map = gtk_file_selection_map; } static void gtk_file_selection_set_property (GObject *object, @@ -1159,6 +1163,17 @@ gtk_file_selection_destroy (GtkObject *object) GTK_OBJECT_CLASS (parent_class)->destroy (object); } +static void +gtk_file_selection_map (GtkWidget *widget) +{ + GtkFileSelection *filesel = GTK_FILE_SELECTION (widget); + + /* Refresh the contents */ + gtk_file_selection_populate (filesel, "", FALSE); + + GTK_WIDGET_CLASS (parent_class)->map (widget); +} + static void gtk_file_selection_finalize (GObject *object) {