[monkey-bubble: 96/753] Kill gtk-pixmap and use gnome-pixmap here as well.
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 96/753] Kill gtk-pixmap and use gnome-pixmap here as well.
- Date: Wed, 14 Jul 2010 22:03:45 +0000 (UTC)
commit ea41e7356406df2229a2c742b7424249b25ed7aa
Author: Miguel de Icaza <miguel nuclecu unam mx>
Date: Wed Feb 24 03:00:08 1999 +0000
Kill gtk-pixmap and use gnome-pixmap here as well.
1999-02-23 Miguel de Icaza <miguel nuclecu unam mx>
* gnome-scores.c (gnome_scores_set_logo_pixmap): Kill gtk-pixmap
and use gnome-pixmap here as well.
* gnome-icon-entry.c (entry_changed): Use gnome-pixmap instead of
gtk-pixmap here
(setup_preview): Kill gtk-pixmap here too.
libgnomeui/gnome-scores.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libgnomeui/gnome-scores.c b/libgnomeui/gnome-scores.c
index cb09c9f..a37daf3 100644
--- a/libgnomeui/gnome-scores.c
+++ b/libgnomeui/gnome-scores.c
@@ -238,9 +238,7 @@ void gnome_scores_set_logo_widget (GnomeScores *gs, GtkWidget *w)
void gnome_scores_set_logo_pixmap (GnomeScores *gs, gchar *pix_name)
{
- GdkPixmap *pixmap;
GtkStyle *style;
- GdkBitmap *mask;
if(gs->logo) {
g_print("Warning: gnome_scores_set_logo_* can be called only once\n");
@@ -249,10 +247,8 @@ void gnome_scores_set_logo_pixmap (GnomeScores *gs, gchar *pix_name)
style = gtk_widget_get_style( GTK_WIDGET(gs) );
- pixmap = gdk_pixmap_create_from_xpm ( GTK_WIDGET(gs)->window, &mask,
- &style->bg[GTK_STATE_NORMAL],
- pix_name);
- gs->logo = gtk_pixmap_new (pixmap, mask);
+
+ gs->logo = gnome_pixmap_new_from_file (pix_name);
gtk_box_pack_end (GTK_BOX(GNOME_DIALOG(gs)->vbox), gs->logo, TRUE, TRUE, 0);
gtk_widget_show (gs->logo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]