diff src/buddy.c @ 150:d4e99c17e399

[gaim-migrate @ 160] Added daemon pixmaps, for all you BSD'ers out there. I really don't like the buddy chat one though, someone please redo it. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 23 Apr 2000 23:30:50 +0000
parents 99248fb977c2
children cb0d3ec5a4c8
line wrap: on
line diff
--- a/src/buddy.c	Sun Apr 23 23:27:29 2000 +0000
+++ b/src/buddy.c	Sun Apr 23 23:30:50 2000 +0000
@@ -50,6 +50,14 @@
 #include "pixmaps/permdel.xpm"
 #include "pixmaps/away_icon.xpm"
 
+#include "pixmaps/daemon-buddyadd.xpm"
+#include "pixmaps/daemon-buddydel.xpm"
+#include "pixmaps/daemon-buddychat.xpm"
+#include "pixmaps/daemon-im.xpm"
+#include "pixmaps/daemon-info.xpm"
+#include "pixmaps/daemon-permadd.xpm"
+#include "pixmaps/daemon-permdel.xpm"
+
 static GtkTooltips *tips;
 static GtkWidget *editpane;
 static GtkWidget *buddypane;
@@ -242,14 +250,23 @@
 void update_button_pix()
 {
 
-        adjust_pic(addbutton, "Add", (gchar **)buddyadd_xpm);
-	adjust_pic(rembutton, "Remove", (gchar **)buddydel_xpm);
-	adjust_pic(chatbutton, "Chat", (gchar **)buddychat_xpm);
-        adjust_pic(imbutton, "IM", (gchar **)im_xpm);
-        adjust_pic(infobutton, "Info", (gchar **)info_xpm);
-        adjust_pic(addpermbutton, "Add", (gchar **)permadd_xpm);
-        adjust_pic(rempermbutton, "Remove", (gchar **)permdel_xpm);
-
+	if (display_options & OPT_DISP_DEVIL_PIXMAPS) {
+	        adjust_pic(addbutton, "Add", (gchar **)daemon_buddyadd_xpm);
+		adjust_pic(rembutton, "Remove", (gchar **)daemon_buddydel_xpm);
+		adjust_pic(chatbutton, "Chat", (gchar **)daemon_buddychat_xpm);
+	        adjust_pic(imbutton, "IM", (gchar **)daemon_im_xpm);
+	        adjust_pic(infobutton, "Info", (gchar **)daemon_info_xpm);
+	        adjust_pic(addpermbutton, "Add", (gchar **)daemon_permadd_xpm);
+	        adjust_pic(rempermbutton, "Remove", (gchar **)daemon_permdel_xpm);
+	} else {
+	        adjust_pic(addbutton, "Add", (gchar **)buddyadd_xpm);
+		adjust_pic(rembutton, "Remove", (gchar **)buddydel_xpm);
+		adjust_pic(chatbutton, "Chat", (gchar **)buddychat_xpm);
+	        adjust_pic(imbutton, "IM", (gchar **)im_xpm);
+	        adjust_pic(infobutton, "Info", (gchar **)info_xpm);
+	        adjust_pic(addpermbutton, "Add", (gchar **)permadd_xpm);
+	        adjust_pic(rempermbutton, "Remove", (gchar **)permdel_xpm);
+	}
 }