[gimp/gtk3-port: 209/227] app: let the file dialog expand/collapse with the file type expander
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 209/227] app: let the file dialog expand/collapse with the file type expander
- Date: Tue, 16 Apr 2013 21:23:36 +0000 (UTC)
commit c7bfda96607b04ff227d4cb17418c27556f7cb47
Author: Michael Natterer <mitch gimp org>
Date: Mon Mar 21 21:12:48 2011 +0100
app: let the file dialog expand/collapse with the file type expander
Using the new gtk_expander_set_resize_toplevel().
app/widgets/gimpfiledialog.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/app/widgets/gimpfiledialog.c b/app/widgets/gimpfiledialog.c
index b03919d..aba17c2 100644
--- a/app/widgets/gimpfiledialog.c
+++ b/app/widgets/gimpfiledialog.c
@@ -943,6 +943,9 @@ gimp_file_dialog_add_proc_selection (GimpFileDialog *dialog,
GtkWidget *scrolled_window;
dialog->proc_expander = gtk_expander_new_with_mnemonic (NULL);
+#if GTK_CHECK_VERSION (3, 1, 0)
+ gtk_expander_set_resize_toplevel (GTK_EXPANDER (dialog->proc_expander), TRUE);
+#endif
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog),
dialog->proc_expander);
gtk_widget_show (dialog->proc_expander);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]