+Mon Mar 1 16:51:21 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkfilechooserdialog.c
+ (file_chooser_widget_default_size_changed): only store the size if
+ we can resize in that direction.
+
Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkfilechooserwidget.c
+Mon Mar 1 16:51:21 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkfilechooserdialog.c
+ (file_chooser_widget_default_size_changed): only store the size if
+ we can resize in that direction.
+
Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkfilechooserwidget.c
+Mon Mar 1 16:51:21 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkfilechooserdialog.c
+ (file_chooser_widget_default_size_changed): only store the size if
+ we can resize in that direction.
+
Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkfilechooserwidget.c
+Mon Mar 1 16:51:21 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkfilechooserdialog.c
+ (file_chooser_widget_default_size_changed): only store the size if
+ we can resize in that direction.
+
Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkfilechooserwidget.c
+Mon Mar 1 16:51:21 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * gtk/gtkfilechooserdialog.c
+ (file_chooser_widget_default_size_changed): only store the size if
+ we can resize in that direction.
+
Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkfilechooserwidget.c
gtk_widget_show (widget);
impl->save_file_name_entry = gtk_entry_new ();
- gtk_entry_set_width_chars (GTK_ENTRY (impl->save_file_name_entry), 25);
+ gtk_entry_set_width_chars (GTK_ENTRY (impl->save_file_name_entry), 45);
gtk_entry_set_activates_default (GTK_ENTRY (impl->save_file_name_entry), TRUE);
gtk_table_attach (GTK_TABLE (table), impl->save_file_name_entry,
1, 2, 0, 1,
impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)
{
if (! gtk_expander_get_expanded (GTK_EXPANDER (impl->save_expander)))
- *resize_vertically = FALSE;
+ {
+ *resize_vertically = FALSE;
+ *resize_horizontally = FALSE;
+ }
}
}
}
gint extra_height;
gint width, height;
GtkRequisition req;
+ gboolean resize_horizontally;
+ gboolean resize_vertically;
priv = GTK_FILE_CHOOSER_DIALOG_GET_PRIVATE (dialog);
{
gtk_window_resize (GTK_WINDOW (dialog), width, height);
}
- priv->default_width = width;
- priv->default_height = height;
+
+ _gtk_file_chooser_embed_get_resizable_hints (GTK_FILE_CHOOSER_EMBED (priv->widget),
+ &resize_horizontally,
+ &resize_vertically);
+ /* Only store the size if we can resize in that direction. */
+ if (resize_horizontally)
+ priv->default_width = width;
+ if (resize_vertically)
+ priv->default_height = height;
}