summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooser.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/gtkfilechooser.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/gtkfilechooser.h')
-rw-r--r--gtk/gtkfilechooser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkfilechooser.h b/gtk/gtkfilechooser.h
index a4c733ad8b..5192a2835b 100644
--- a/gtk/gtkfilechooser.h
+++ b/gtk/gtkfilechooser.h
@@ -107,6 +107,9 @@ GtkWidget *gtk_file_chooser_get_preview_widget (GtkFileChooser *chooser);
void gtk_file_chooser_set_preview_widget_active (GtkFileChooser *chooser,
gboolean active);
gboolean gtk_file_chooser_get_preview_widget_active (GtkFileChooser *chooser);
+void gtk_file_chooser_set_use_preview_label (GtkFileChooser *chooser,
+ gboolean use_label);
+gboolean gtk_file_chooser_get_use_preview_label (GtkFileChooser *chooser);
char *gtk_file_chooser_get_preview_filename (GtkFileChooser *chooser);
char *gtk_file_chooser_get_preview_uri (GtkFileChooser *chooser);