use gimp_pango_layout_set_weight().

2008-04-02  Sven Neumann  <sven@gimp.org>

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

svn path=/trunk/; revision=25335
This commit is contained in:
Sven Neumann
2008-04-02 16:39:44 +00:00
committed by Sven Neumann
parent 3d4bcea387
commit 9d9726e4cd
2 changed files with 7 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2008-04-02 Sven Neumann <sven@gimp.org>
* app/gui/splash.c: use gimp_pango_layout_set_weight().
2008-04-02 Sven Neumann <sven@gimp.org>
* plug-ins/help/gimp-help-lookup.c: fixed typos in descriptions of

View File

@ -28,6 +28,8 @@
#include "gui-types.h"
#include "widgets/gimpwidgets-utils.h"
#include "splash.h"
#include "gimp-intl.h"
@ -96,8 +98,6 @@ splash_create (gboolean be_verbose)
GtkWidget *vbox;
GdkPixbufAnimation *pixbuf;
GdkScreen *screen;
PangoAttrList *attrs;
PangoAttribute *attr;
GdkGCValues values;
g_return_if_fail (splash == NULL);
@ -160,14 +160,7 @@ splash_create (gboolean be_verbose)
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);