cpw.nader.asynclogging-3: 34c3d21a: Fixed the log viewer label being right-j...

morshed.nader at gmail.com morshed.nader at gmail.com
Sun May 22 21:50:46 EDT 2011


----------------------------------------------------------------------
Revision: 34c3d21a9d7787508d1d963dd3fccc734b30a4e4
Parent:   21a8506599f230df89091c99ba8face0ab8d56d8
Author:   morshed.nader at gmail.com
Date:     05/22/11 21:35:35
Branch:   im.pidgin.cpw.nader.asynclogging-3
URL: http://d.pidgin.im/viewmtn/revision/info/34c3d21a9d7787508d1d963dd3fccc734b30a4e4

Changelog: 

Fixed the log viewer label being right-justified

Changes against parent 21a8506599f230df89091c99ba8face0ab8d56d8

  patched  pidgin/gtklog.c

-------------- next part --------------
============================================================
--- pidgin/gtklog.c	b9cc71351ef292726865cb26e5850de219f125b3
+++ pidgin/gtklog.c	d58265ceb9349f34afc9bd35352971f64ffd8f56
@@ -1781,6 +1781,10 @@ pidgin_log_viewer_constructed(GObject *o
 		gtk_widget_show(icon);
 	}
 
+	/* Pack the label at this point so that it goes after the icon without being
+	 * right-justified because of using gtk_box_pack_end() earlier
+	 */
+	gtk_box_pack_start(GTK_BOX(priv->title_box), priv->label, FALSE, FALSE, 0);
 
 	/* Log size */
 	need_log_size = pidgin_log_viewer_get_need_log_size(lv);
@@ -2167,7 +2171,7 @@ pidgin_log_viewer_init(PidginLogViewer *
 	/* Title Label */
 	priv->label = gtk_label_new(NULL);
 	gtk_misc_set_alignment(GTK_MISC(priv->label), 0, 0);
-	gtk_box_pack_end(GTK_BOX(priv->title_box), priv->label, FALSE, FALSE, 0);
+	/* Pack in construction */
 	gtk_widget_show(priv->label);
 
 


More information about the Commits mailing list