changeset 3721:ac084ce0c130

[gaim-migrate @ 3854] about dialog cleanups by click. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 16 Oct 2002 22:10:08 +0000
parents 34c95669952f
children 5ab55c267294
files src/about.c
diffstat 1 files changed, 5 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/about.c	Wed Oct 16 21:14:51 2002 +0000
+++ b/src/about.c	Wed Oct 16 22:10:08 2002 +0000
@@ -29,9 +29,6 @@
 
 #include <gtk/gtk.h>
 #include "gaim.h"
-#include "pixmaps/logo.xpm"
-#include "pixmaps/cancel.xpm"
-#include "pixmaps/about_small.xpm"
 
 static GtkWidget *about = NULL;
 
@@ -74,11 +71,7 @@
 	GtkWidget *vbox;
 	GtkWidget *frame;
 	GtkWidget *fbox;
-	GtkWidget *label;
-	GtkWidget *pixmap;
 	GtkStyle *style;
-	GdkPixmap *pm;
-	GdkBitmap *bm;
 	GtkWidget *hbox;
 	GtkWidget *button;
 	GtkWidget *view;
@@ -86,6 +79,7 @@
 	GtkTextIter iter;
 	GtkTextTag *tag;
 	GtkWidget *sw;
+	GtkWidget *logo;
 
 	char abouttitle[45];
 
@@ -115,13 +109,10 @@
 
 		/* Left side, TOP */
 		style = gtk_widget_get_style(about);
-		pm = gdk_pixmap_create_from_xpm_d(about->window, &bm,
-						  &style->bg[GTK_STATE_NORMAL], (gchar **)gaim_logo_xpm);
-		pixmap = gtk_pixmap_new(pm, bm);
-		gdk_pixmap_unref(pm);
-		gdk_bitmap_unref(bm);
-		gtk_box_pack_start(GTK_BOX(fbox), pixmap, FALSE, FALSE, 0);
-		gtk_widget_show(pixmap);
+
+		logo = gaim_pixmap(NULL, "logo.png");
+		gtk_box_pack_start(GTK_BOX(fbox), logo, FALSE, FALSE, 0);
+		gtk_widget_show(logo);
 
 		view = gtk_text_view_new ();
 		gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE);