changeset 2323:bde2481bb4db

[gaim-migrate @ 2333] option to hide icons committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 20 Sep 2001 09:12:29 +0000
parents 2752abc68646
children 9ab820049ede
files ChangeLog src/conversation.c src/gaim.h src/prefs.c
diffstat 4 files changed, 35 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Sep 20 08:42:14 2001 +0000
+++ b/ChangeLog	Thu Sep 20 09:12:29 2001 +0000
@@ -19,6 +19,8 @@
 	  the message received was auto-response (see SIGNALS)
 	* IRC fixes (largly copied from X-Chat)
 	* Internal change to how preferences are stored
+	* Other bug fixes
+	* Option to hide buddy icons
 
 version 0.43 (09/06/2001):
 	* Updated German Translation (thanks Daniel Seifert)
--- a/src/conversation.c	Thu Sep 20 08:42:14 2001 +0000
+++ b/src/conversation.c	Thu Sep 20 09:12:29 2001 +0000
@@ -2609,6 +2609,9 @@
 
 	remove_icon(c);
 
+	if (im_options & OPT_IM_HIDE_ICONS)
+		return;
+
 	if (!c->gc)
 		return;
 
@@ -2668,6 +2671,15 @@
 		update_icon(c);
 }
 
+void set_hide_icons()
+{
+	GList *c = conversations;
+	while (c) {
+		update_icon(c->data);
+		c = c->next;
+	}
+}
+
 static void remove_checkbox(struct conversation *c)
 {
 	if (c->check)
--- a/src/gaim.h	Thu Sep 20 08:42:14 2001 +0000
+++ b/src/gaim.h	Thu Sep 20 09:12:29 2001 +0000
@@ -515,6 +515,7 @@
 #define OPT_IM_ONE_WINDOW		0x00000010
 #define OPT_IM_SIDE_TAB			0x00000020
 #define OPT_IM_BR_TAB			0x00000040
+#define OPT_IM_HIDE_ICONS		0x00000080
 
 extern guint chat_options;
 #define OPT_CHAT_ONE_WINDOW		0x00000001
@@ -730,6 +731,7 @@
 extern void chat_tabize();
 extern void update_convo_color();
 extern void update_convo_font();
+extern void set_hide_icons();
 
 /* Functions in toc.c */
 extern void parse_toc_buddy_list(struct gaim_connection *, char *, int);
--- a/src/prefs.c	Thu Sep 20 08:42:14 2001 +0000
+++ b/src/prefs.c	Thu Sep 20 09:12:29 2001 +0000
@@ -944,6 +944,22 @@
 	opt = tab_radio(_("Right"), OPT_IM_SIDE_TAB | OPT_IM_BR_TAB, vbox3, opt);
 	gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), opt);
 
+#if USE_PIXBUF
+	frame = gtk_frame_new(_("Buddy Icons"));
+	gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5);
+	gtk_widget_show(frame);
+
+	hbox = gtk_hbox_new(FALSE, 5);
+	gtk_container_add(GTK_CONTAINER(frame), hbox);
+	gtk_widget_show(hbox);
+
+	vbox = gtk_vbox_new(FALSE, 5);
+	gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 5);
+	gtk_widget_show(vbox);
+
+	gaim_button(_("Hide Buddy Icons"), &im_options, OPT_IM_HIDE_ICONS, vbox);
+#endif
+
 	gtk_widget_show(prefdialog);
 }
 
@@ -2472,6 +2488,9 @@
 	if (option == OPT_IM_ONE_WINDOW)
 		tabize();
 
+	if (option == OPT_IM_HIDE_ICONS)
+		set_hide_icons();
+
 	save_prefs();
 }