summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorbviktor <bviktor@outlook.com>2012-11-02 15:23:54 -0700
committerbviktor <bviktor@outlook.com>2012-11-02 15:23:54 -0700
commit58e7e967db34e88b6a76801d8d05e3ce68a21295 (patch)
treed57d18575527345d6b18cdfb52bd629e558a532d /src/fe-gtk
parent7bd55c4f43604975a1f6f1e264047d5312d05df6 (diff)
parentda43158772b7f252d355c3daadc5a00a884bc8e3 (diff)
Merge pull request #218 from TingPing/usericon
added support for op+3 icons
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/pixmaps.c2
-rw-r--r--src/fe-gtk/pixmaps.h1
-rw-r--r--src/fe-gtk/userlistgui.c3
3 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-gtk/pixmaps.c b/src/fe-gtk/pixmaps.c
index 49e0d56c..f260a22c 100644
--- a/src/fe-gtk/pixmaps.c
+++ b/src/fe-gtk/pixmaps.c
@@ -34,6 +34,7 @@
 GdkPixbuf *pix_xchat;
 GdkPixbuf *pix_book;
 
+GdkPixbuf *pix_orange;
 GdkPixbuf *pix_purple;
 GdkPixbuf *pix_red;
 GdkPixbuf *pix_op;
@@ -127,6 +128,7 @@ pixmaps_init (void)
 
 	/* userlist icons, with inlined defaults */
 	pix_hop = load_pixmap ("hop", hoppng, 1);
+	pix_orange = load_pixmap ("orange", orangepng, 1);
 	pix_purple = load_pixmap ("purple", purplepng, 1);
 	pix_red = load_pixmap ("red", redpng, 1);
 	pix_op = load_pixmap ("op", oppng, 1);
diff --git a/src/fe-gtk/pixmaps.h b/src/fe-gtk/pixmaps.h
index 91b9696e..df84c7b2 100644
--- a/src/fe-gtk/pixmaps.h
+++ b/src/fe-gtk/pixmaps.h
@@ -1,5 +1,6 @@
 extern GdkPixbuf *pix_book;
 extern GdkPixbuf *pix_hop;
+extern GdkPixbuf *pix_orange;
 extern GdkPixbuf *pix_purple;
 extern GdkPixbuf *pix_red;
 extern GdkPixbuf *pix_op;
diff --git a/src/fe-gtk/userlistgui.c b/src/fe-gtk/userlistgui.c
index f46451a9..74fd5cdf 100644
--- a/src/fe-gtk/userlistgui.c
+++ b/src/fe-gtk/userlistgui.c
@@ -96,8 +96,9 @@ get_user_icon (server *serv, struct User *user)
 				{
 				case 0: return pix_red;	/* 1 level above op */
 				case 1: return pix_purple;	 /* 2 levels above op */
+				case 2: return pix_orange;	/* 3 levels above op */
 				}
-				break;	/* 3+, no icons */
+				break;	/* 4+, no icons */
 			}
 			level++;
 			if (pre == serv->nick_prefixes)