[brasero: 1/5] Allow to shrink the left part of the file chooser



commit e04f988a0ca6e3feff39e3f436ce86d1b5d4d0a4
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon May 18 20:48:14 2009 +0200

    Allow to shrink the left part of the file chooser
---
 src/brasero-file-chooser.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/brasero-file-chooser.c b/src/brasero-file-chooser.c
index 21b7c4c..d8e1be2 100644
--- a/src/brasero-file-chooser.c
+++ b/src/brasero-file-chooser.c
@@ -175,6 +175,21 @@ brasero_file_chooser_customize (GtkWidget *widget, gpointer null_data)
 		}
 	}
 	else if (GTK_IS_CONTAINER (widget)) {
+		if (GTK_IS_PANED (widget)) {
+			GtkWidget *left;
+
+			/* This is to allow the left part to be shrunk as much 
+			 * as the user want. */
+			left = gtk_paned_get_child1 (GTK_PANED (widget));
+
+			g_object_ref (left);
+			gtk_container_remove (GTK_CONTAINER (widget), left);
+			gtk_paned_pack1 (GTK_PANED (widget),
+					 left,
+					 TRUE,
+					 TRUE);
+			g_object_unref (left);
+		}
 		gtk_container_foreach (GTK_CONTAINER (widget),
 				       brasero_file_chooser_customize,
 				       NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]