diff options
author | Jonathan Blandford <jrb@gnome.org> | 2004-02-29 07:55:24 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2004-02-29 07:55:24 +0000 |
commit | 7359903ef071841f629b2e3fca6f6d458e20fa58 (patch) | |
tree | 141a7edc012e3c205bd98cad40d9095c204c69ec /gtk/gtkfilechooserembed.c | |
parent | be1e6e6bea315af7345818fcb143c5c8e98e499d (diff) | |
download | gtk+-7359903ef071841f629b2e3fca6f6d458e20fa58.tar.gz |
Add g_return_if_fail() (_gtk_file_chooser_embed_get_resizable_hints): Add
Sun Feb 29 01:51:27 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserembed.c
(_gtk_file_chooser_embed_get_default_size): Add g_return_if_fail()
(_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
* gtk/gtkfilechooserdialog.c
(file_chooser_widget_default_size_changed): Get the correct
initial size for the dialog. Also, don't bother with
gtk_window_set_default_size(). It's not really meaningful.
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_get_default_size): Get the correct
spacing for the preview_widget
(update_preview_widget_visibility): Clear widget field after we
destroy it.
Diffstat (limited to 'gtk/gtkfilechooserembed.c')
-rw-r--r-- | gtk/gtkfilechooserembed.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserembed.c b/gtk/gtkfilechooserembed.c index 89637e3475..72072408b5 100644 --- a/gtk/gtkfilechooserembed.c +++ b/gtk/gtkfilechooserembed.c @@ -147,16 +147,20 @@ _gtk_file_chooser_embed_get_default_size (GtkFileChooserEmbed *chooser_embed, gint *default_height) { g_return_if_fail (GTK_IS_FILE_CHOOSER_EMBED (chooser_embed)); + g_return_if_fail (default_width != NULL); + g_return_if_fail (default_height != NULL); GTK_FILE_CHOOSER_EMBED_GET_IFACE (chooser_embed)->get_default_size (chooser_embed, default_width, default_height); } void _gtk_file_chooser_embed_get_resizable_hints (GtkFileChooserEmbed *chooser_embed, - gboolean *resize_horizontally, - gboolean *resize_vertically) + gboolean *resize_horizontally, + gboolean *resize_vertically) { g_return_if_fail (GTK_IS_FILE_CHOOSER_EMBED (chooser_embed)); + g_return_if_fail (resize_horizontally != NULL); + g_return_if_fail (resize_vertically != NULL); GTK_FILE_CHOOSER_EMBED_GET_IFACE (chooser_embed)->get_resizable_hints (chooser_embed, resize_horizontally, resize_vertically); } |