gimp r25335 - in trunk: . app/gui



Author: neo
Date: Wed Apr  2 17:39:44 2008
New Revision: 25335
URL: http://svn.gnome.org/viewvc/gimp?rev=25335&view=rev

Log:
2008-04-02  Sven Neumann  <sven gimp org>

	* app/gui/splash.c: use	gimp_pango_layout_set_weight().


Modified:
   trunk/ChangeLog
   trunk/app/gui/splash.c

Modified: trunk/app/gui/splash.c
==============================================================================
--- trunk/app/gui/splash.c	(original)
+++ trunk/app/gui/splash.c	Wed Apr  2 17:39:44 2008
@@ -28,6 +28,8 @@
 
 #include "gui-types.h"
 
+#include "widgets/gimpwidgets-utils.h"
+
 #include "splash.h"
 
 #include "gimp-intl.h"
@@ -96,8 +98,6 @@
   GtkWidget          *vbox;
   GdkPixbufAnimation *pixbuf;
   GdkScreen          *screen;
-  PangoAttrList      *attrs;
-  PangoAttribute     *attr;
   GdkGCValues         values;
 
   g_return_if_fail (splash == NULL);
@@ -160,14 +160,7 @@
   splash->upper = gtk_widget_create_pango_layout (splash->area, "");
   splash->lower = gtk_widget_create_pango_layout (splash->area, "");
 
-  attrs = pango_attr_list_new ();
-  attr = pango_attr_weight_new (PANGO_WEIGHT_BOLD);
-  attr->start_index = 0;
-  attr->end_index   = -1;
-  pango_attr_list_insert (attrs, attr);
-
-  pango_layout_set_attributes (splash->upper, attrs);
-  pango_attr_list_unref (attrs);
+  gimp_pango_layout_set_weight (splash->upper, PANGO_WEIGHT_BOLD);
 
   /*  this sets the initial layout positions  */
   splash_position_layouts (splash, "", "", NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]