[monkey-bubble: 700/753] use gtk_style_set_font rather than direct structure access. This needs
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 700/753] use gtk_style_set_font rather than direct structure access. This needs
- Date: Wed, 14 Jul 2010 22:54:32 +0000 (UTC)
commit 3cc209b7b66a2e6511d515049639ccab005040ec
Author: James Henstridge <james daa com au>
Date: Wed Sep 19 13:33:17 2001 +0000
use gtk_style_set_font rather than direct structure access. This needs
2001-09-19 James Henstridge <james daa com au>
* gnome-scores.c (gnome_scores_set_logo_label): use
gtk_style_set_font rather than direct structure access. This
needs pangoification.
* gnome-about.c (gnome_about_draw_names): changes to take into
account pango changes.
libgnomeui/gnome-scores.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgnomeui/gnome-scores.c b/libgnomeui/gnome-scores.c
index 495240c..f1dff6c 100644
--- a/libgnomeui/gnome-scores.c
+++ b/libgnomeui/gnome-scores.c
@@ -417,7 +417,7 @@ gnome_scores_set_logo_label (GnomeScores *gs,
}
if(col)
- memcpy((void *) &s->fg[0], col, sizeof(GdkColor) );
+ s->fg[0] = *col;
if( font )
fo = font;
@@ -425,7 +425,7 @@ gnome_scores_set_logo_label (GnomeScores *gs,
fo = _("-freefont-garamond-*-*-*-*-30-170-*-*-*-*-*-*,*-r-*");
if(( f = gdk_fontset_load ( fo ) ))
- s->font = f;
+ gtk_style_set_font(s, f);
gs->_priv->logo = gtk_label_new(txt);
gtk_widget_set_style(GTK_WIDGET(gs->_priv->logo), s);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]