pidgin: 8f0a3e68: Add a GtkAlignment to create a small ind...

qulogic at pidgin.im qulogic at pidgin.im
Wed Dec 23 03:47:08 EST 2009


-----------------------------------------------------------------
Revision: 8f0a3e68547fbc66188357edbf6694bd8dd2d557
Ancestor: 26a3e3fc9a1d156f17429419824a813196fd6d58
Author: qulogic at pidgin.im
Date: 2009-12-23T07:47:14
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8f0a3e68547fbc66188357edbf6694bd8dd2d557

Modified files:
        pidgin/gtkft.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- pidgin/gtkft.c	3cad4e4a12d3e6ed6385a8197d419d12fa83d6fd
+++ pidgin/gtkft.c	c0bf4c0ab2b8dae100d21dac57e640ca271908fa
@@ -730,6 +730,7 @@ pidgin_xfer_dialog_new(void)
 	GtkWidget *sw;
 	GtkWidget *button;
 	GtkWidget *expander;
+	GtkWidget *alignment;
 	GtkWidget *table;
 	GtkWidget *checkbox;
 
@@ -787,9 +788,15 @@ pidgin_xfer_dialog_new(void)
 
 	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 */


More information about the Commits mailing list