# HG changeset patch # User Eric Warmenhoven # Date 1000977149 0 # Node ID bde2481bb4db4694475568022c62038583b1acb1 # Parent 2752abc68646ae160ed1dc0d31d7cdb16e321d56 [gaim-migrate @ 2333] option to hide icons committer: Tailor Script diff -r 2752abc68646 -r bde2481bb4db ChangeLog --- 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) diff -r 2752abc68646 -r bde2481bb4db src/conversation.c --- 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) diff -r 2752abc68646 -r bde2481bb4db src/gaim.h --- 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); diff -r 2752abc68646 -r bde2481bb4db src/prefs.c --- 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(); }