diff options
author | Federico Mena Quintero <federico@ximian.com> | 2003-12-10 20:49:44 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2003-12-10 20:49:44 +0000 |
commit | c9c99b3f1b96cef1863503612e6c2689ae2ebbe6 (patch) | |
tree | 6618bd848c5d7b27a01d7f051a80fd10179970cf /tests/testfilechooser.c | |
parent | e09034088b1153b0378c2299696820a49e66513a (diff) | |
download | gtk+-c9c99b3f1b96cef1863503612e6c2689ae2ebbe6.tar.gz |
Added toolbar items for the filter separator and the filter item.
2003-12-10 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
Added toolbar items for the filter separator and the filter item.
(toolbar_create): Add the filter widgets here.
(filter_create): Renamed from create_filter(). Don't store the
alignment in the impl structure, just return it.
(toolbar_show_filters): New function.
(gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
(gtk_file_chooser_default_remove_filter): Likewise.
(gtk_file_chooser_default_constructor): Don't create the filter
widget here.
(struct _GtkFileChooserDefault): Added a field for a current
folder label.
(gtk_file_chooser_default_constructor): Create the folder label.
(gtk_file_chooser_default_set_current_folder): Set the current
folder label.
* tests/testfilechooser.c (main): Dramatically improved the
usability of the extra widget through careful word choice.
Diffstat (limited to 'tests/testfilechooser.c')
-rw-r--r-- | tests/testfilechooser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c index 66aff6d8a2..193bba2d8f 100644 --- a/tests/testfilechooser.c +++ b/tests/testfilechooser.c @@ -370,7 +370,8 @@ main (int argc, char **argv) G_CALLBACK (update_preview_cb), NULL); /* Extra widget */ - extra = gtk_check_button_new_with_mnemonic ("_Frobnicate the file"); + extra = gtk_check_button_new_with_mnemonic ("Lar_t whoever asks about this button"); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (extra), TRUE); gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog), extra); /* Shortcuts */ |