changeset 28825:ac6c2dda0eae

Add a GtkAlignment to create a small indent for the file transfer details. The actual indent size is a bit of a magic number, though. Fixes #3015.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 23 Dec 2009 07:47:14 +0000
parents 5259ca10b641
children 0b48f58e8c50 24b341ae63f7 10eaca0bf01a de1aec9b9368
files pidgin/gtkft.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkft.c	Wed Dec 23 07:13:27 2009 +0000
+++ b/pidgin/gtkft.c	Wed Dec 23 07:47:14 2009 +0000
@@ -730,6 +730,7 @@
 	GtkWidget *sw;
 	GtkWidget *button;
 	GtkWidget *expander;
+	GtkWidget *alignment;
 	GtkWidget *table;
 	GtkWidget *checkbox;
 
@@ -787,9 +788,15 @@
 
 	gtk_widget_set_sensitive(expander, FALSE);
 
+	/* Small indent make table fall under GtkExpander's label */
+	alignment = gtk_alignment_new(1, 0, 1, 1);
+	gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 0, 0, 20, 0);
+	gtk_container_add(GTK_CONTAINER(expander), alignment);
+	gtk_widget_show(alignment);
+
 	/* The table of information. */
 	table = make_info_table(dialog);
-	gtk_container_add(GTK_CONTAINER(expander), table);
+	gtk_container_add(GTK_CONTAINER(alignment), table);
 	gtk_widget_show(table);
 
 	/* Open button */