comparison src/gtkprefs.c @ 11922:19b46e4e43a0

[gaim-migrate @ 14213] part of sf patch #1342853, from Richard Gobeille Gray out a buddy icon animate preference if buddy icons are disabled committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 31 Oct 2005 05:02:15 +0000
parents 7d2d926704aa
children 41d84ac57cb6
comparison
equal deleted inserted replaced
11921:8140885c022c 11922:19b46e4e43a0
794 GtkWidget *frame; 794 GtkWidget *frame;
795 GtkWidget *imhtml; 795 GtkWidget *imhtml;
796 GtkWidget *toolbar; 796 GtkWidget *toolbar;
797 GtkWidget *hbox; 797 GtkWidget *hbox;
798 GtkWidget *vbox2; 798 GtkWidget *vbox2;
799 GtkWidget *iconpref1;
800 GtkWidget *iconpref2;
799 801
800 ret = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE); 802 ret = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE);
801 gtk_container_set_border_width(GTK_CONTAINER(ret), GAIM_HIG_BORDER); 803 gtk_container_set_border_width(GTK_CONTAINER(ret), GAIM_HIG_BORDER);
802 804
803 vbox = gaim_gtk_make_frame(ret, _("Conversations")); 805 vbox = gaim_gtk_make_frame(ret, _("Conversations"));
804 806
805 gaim_gtk_prefs_checkbox(_("Send unknown \"_slash\" commands as messages"), 807 gaim_gtk_prefs_checkbox(_("Send unknown \"_slash\" commands as messages"),
806 "/gaim/gtk/conversations/passthrough_unknown_commands", vbox); 808 "/gaim/gtk/conversations/passthrough_unknown_commands", vbox);
807 gaim_gtk_prefs_checkbox(_("Show _formatting on incoming messages"), 809 gaim_gtk_prefs_checkbox(_("Show _formatting on incoming messages"),
808 "/gaim/gtk/conversations/show_incoming_formatting", vbox); 810 "/gaim/gtk/conversations/show_incoming_formatting", vbox);
809 gaim_gtk_prefs_checkbox(_("Show buddy _icons"), 811
812 iconpref1 = gaim_gtk_prefs_checkbox(_("Show buddy _icons"),
810 "/gaim/gtk/conversations/im/show_buddy_icons", vbox); 813 "/gaim/gtk/conversations/im/show_buddy_icons", vbox);
811 gaim_gtk_prefs_checkbox(_("Enable buddy ic_on animation"), 814 iconpref2 = gaim_gtk_prefs_checkbox(_("Enable buddy ic_on animation"),
812 "/gaim/gtk/conversations/im/animate_buddy_icons", vbox); 815 "/gaim/gtk/conversations/im/animate_buddy_icons", vbox);
816 if (!gaim_prefs_get_bool("/gaim/gtk/conversations/im/show_buddy_icons"))
817 gtk_widget_set_sensitive(iconpref2, FALSE);
818 g_signal_connect(G_OBJECT(iconpref1), "clicked",
819 G_CALLBACK(gaim_gtk_toggle_sensitive), iconpref2);
820
813 gaim_gtk_prefs_checkbox(_("_Notify buddies that you are typing to them"), 821 gaim_gtk_prefs_checkbox(_("_Notify buddies that you are typing to them"),
814 "/core/conversations/im/send_typing", vbox); 822 "/core/conversations/im/send_typing", vbox);
815 #ifdef USE_GTKSPELL 823 #ifdef USE_GTKSPELL
816 gaim_gtk_prefs_checkbox(_("_Highlight misspelled words"), 824 gaim_gtk_prefs_checkbox(_("_Highlight misspelled words"),
817 "/gaim/gtk/conversations/spellcheck", vbox); 825 "/gaim/gtk/conversations/spellcheck", vbox);