summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserutils.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2004-02-29 06:35:15 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2004-02-29 06:35:15 +0000
commit17e840f79ccc50f6479d6f1f2275cc600a070ffb (patch)
treef635d34f28bbb364a1acb1b58424c5ab8e65ec17 /gtk/gtkfilechooserutils.h
parent393d0f92384003d2a477cceffbcf5d80c050f127 (diff)
downloadgtk+-17e840f79ccc50f6479d6f1f2275cc600a070ffb.tar.gz
Handle GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
2004-02-29 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property): Handle GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL. (gtk_file_chooser_default_get_property): Likewise. (struct _GtkFileChooserDefault): Added fields for preview_label, use_preview_label, preview_display_name, preview_box. Removed preview_frame. (set_preview_widget): Reorder the widget in relation to the label. (update_preview_widget_visibility): Create or destroy the preview label. (check_preview_change): Update impl->preview_display_name and the label. (find_good_size_from_style): Use the preview_box. (gtk_file_chooser_default_finalize): Free impl->preview_display_name. (gtk_file_chooser_default_init): Initialize impl->use_preview_label. * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a "use-preview-label" property. (gtk_file_chooser_set_use_preview_label): New function. This sets whether one wants the file chooser to display a stock label with the previewed filename. Apps that do really fancy previews can turn this off and draw the name themselves. (gtk_file_chooser_get_use_preview_label): New function. (gtk_file_chooser_get_preview_widget_active): Documentation fix. * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value. * gtk/gtkfilechooserutils.c (_gtk_file_chooser_install_properties): Override the "use-preview-label" property.
Diffstat (limited to 'gtk/gtkfilechooserutils.h')
-rw-r--r--gtk/gtkfilechooserutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserutils.h b/gtk/gtkfilechooserutils.h
index f6ce29c07e..73e2c423fe 100644
--- a/gtk/gtkfilechooserutils.h
+++ b/gtk/gtkfilechooserutils.h
@@ -34,6 +34,7 @@ typedef enum {
GTK_FILE_CHOOSER_PROP_LOCAL_ONLY,
GTK_FILE_CHOOSER_PROP_PREVIEW_WIDGET,
GTK_FILE_CHOOSER_PROP_PREVIEW_WIDGET_ACTIVE,
+ GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL,
GTK_FILE_CHOOSER_PROP_EXTRA_WIDGET,
GTK_FILE_CHOOSER_PROP_SELECT_MULTIPLE,
GTK_FILE_CHOOSER_PROP_SHOW_HIDDEN,