r16100 - gnucash/trunk/src/gnome-utils - In the transfer dialog, always use bold headers.

Andreas Köhler andi5 at cvs.gnucash.org
Fri May 18 19:31:51 EDT 2007


Author: andi5
Date: 2007-05-18 19:31:49 -0400 (Fri, 18 May 2007)
New Revision: 16100
Trac: http://svn.gnucash.org/trac/changeset/16100

Modified:
   gnucash/trunk/src/gnome-utils/dialog-transfer.c
Log:
In the transfer dialog, always use bold headers.


Modified: gnucash/trunk/src/gnome-utils/dialog-transfer.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-transfer.c	2007-05-18 23:09:30 UTC (rev 16099)
+++ gnucash/trunk/src/gnome-utils/dialog-transfer.c	2007-05-18 23:31:49 UTC (rev 16100)
@@ -1815,8 +1815,11 @@
 gnc_xfer_dialog_set_information_label( XferDialog *xferData,
 				       const gchar *text )
 {
-  if(xferData && text)
-    gtk_label_set_label (GTK_LABEL (xferData->transferinfo_label), text);
+  if(xferData && text) {
+    gchar *markup_text = g_strdup_printf ("<b>%s</b>", text);
+    gtk_label_set_markup (GTK_LABEL (xferData->transferinfo_label), markup_text);
+    g_free (markup_text);
+  }
 }
 
 
@@ -1825,11 +1828,14 @@
 				   const gchar *text,
 				   XferDirection direction )
 {
-  if(xferData && text)
-    gtk_label_set_text (GTK_LABEL ((direction == XFER_DIALOG_FROM ?
-				    xferData->from_transfer_label :
-				    xferData->to_transfer_label)),
-		    	text);
+  if(xferData && text) {
+    gchar *markup_text = g_strdup_printf ("<b>%s</b>", text);
+    gtk_label_set_markup (GTK_LABEL ((direction == XFER_DIALOG_FROM ?
+				      xferData->from_transfer_label :
+				      xferData->to_transfer_label)),
+			  markup_text);
+    g_free (markup_text);
+  }
 }
 
 void



More information about the gnucash-changes mailing list