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:

committed by
Sven Neumann

parent
3d4bcea387
commit
9d9726e4cd
@ -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>
|
2008-04-02 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/help/gimp-help-lookup.c: fixed typos in descriptions of
|
* plug-ins/help/gimp-help-lookup.c: fixed typos in descriptions of
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
#include "gui-types.h"
|
#include "gui-types.h"
|
||||||
|
|
||||||
|
#include "widgets/gimpwidgets-utils.h"
|
||||||
|
|
||||||
#include "splash.h"
|
#include "splash.h"
|
||||||
|
|
||||||
#include "gimp-intl.h"
|
#include "gimp-intl.h"
|
||||||
@ -96,8 +98,6 @@ splash_create (gboolean be_verbose)
|
|||||||
GtkWidget *vbox;
|
GtkWidget *vbox;
|
||||||
GdkPixbufAnimation *pixbuf;
|
GdkPixbufAnimation *pixbuf;
|
||||||
GdkScreen *screen;
|
GdkScreen *screen;
|
||||||
PangoAttrList *attrs;
|
|
||||||
PangoAttribute *attr;
|
|
||||||
GdkGCValues values;
|
GdkGCValues values;
|
||||||
|
|
||||||
g_return_if_fail (splash == NULL);
|
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->upper = gtk_widget_create_pango_layout (splash->area, "");
|
||||||
splash->lower = gtk_widget_create_pango_layout (splash->area, "");
|
splash->lower = gtk_widget_create_pango_layout (splash->area, "");
|
||||||
|
|
||||||
attrs = pango_attr_list_new ();
|
gimp_pango_layout_set_weight (splash->upper, PANGO_WEIGHT_BOLD);
|
||||||
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);
|
|
||||||
|
|
||||||
/* this sets the initial layout positions */
|
/* this sets the initial layout positions */
|
||||||
splash_position_layouts (splash, "", "", NULL);
|
splash_position_layouts (splash, "", "", NULL);
|
||||||
|
Reference in New Issue
Block a user