[grisbi-cvs] grisbi/src tip.c,1.31,1.32

Pierre Biava pbiava at users.sourceforge.net
Wed Dec 30 21:26:05 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv4092/src

Modified Files:
	tip.c 
Log Message:
fixed bug 748 of at least  I hope

Index: tip.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/tip.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- tip.c	19 Dec 2009 19:59:15 -0000	1.31
+++ tip.c	30 Dec 2009 20:26:03 -0000	1.32
@@ -93,6 +93,7 @@
                         GTK_STOCK_CLOSE, 3,
                         NULL );
  
+    gtk_widget_set_size_request ( dialog, 450, -1 );
     /* We iterate as user can select several tips. */
     while ( TRUE )
     {
@@ -107,13 +108,12 @@
         if ( etat.last_tip > 1 )
             etat.last_tip --;
         change_button_sensitiveness ( dialog, 1, TRUE ); 
-                tmpstr = g_markup_printf_escaped ("%s",
-                        g_strconcat ( "<span size=\"larger\" weight=\"bold\">",
-                        _("Did you know that..."),
-                        "</span>\n\n",
-                        dgettext ("grisbi-tips",
-                        get_next_tip () ),
-                        NULL ) );
+        tmpstr = g_strconcat ( make_pango_attribut (
+                        "size=\"larger\" weight=\"bold\"", _("Did you know that...") ),
+                        "\n\n",
+                        g_markup_printf_escaped ( dgettext ("grisbi-tips", get_next_tip () ) ),
+                        NULL );
+
         gtk_label_set_markup ( GTK_LABEL ( GTK_MESSAGE_DIALOG(dialog) -> label ),
                         tmpstr );
         g_free ( tmpstr );
@@ -121,13 +121,12 @@
 
         case 2:
         etat.last_tip ++;
-        tmpstr = g_markup_printf_escaped ("%s",
-                        g_strconcat ( "<span size=\"larger\" weight=\"bold\">",
-                        _("Did you know that..."),
-                        "</span>\n\n",
-                        dgettext ("grisbi-tips",
-                        get_next_tip () ),
-                        NULL ) );
+        tmpstr = g_strconcat ( make_pango_attribut (
+                        "size=\"larger\" weight=\"bold\"", _("Did you know that...") ),
+                        "\n\n",
+                        g_markup_printf_escaped ( dgettext ("grisbi-tips", get_next_tip () ) ),
+                        NULL );
+
         gtk_label_set_markup ( GTK_LABEL ( GTK_MESSAGE_DIALOG(dialog) -> label ),
                         tmpstr );
         g_free ( tmpstr );



More information about the cvs mailing list