comparison pidgin/gtkprefs.c @ 22275:bd25f8c9d94e

Pidgin attention GUI from nok. Adds "Send Attention" to conversation menu, which sends a generic attention command -- that could be a nudge, buzz, zap, etc. depending on the prpl. Only sends attention command type #0 for now (multiple types tracked by #4810) and the send-attention.png is missing (tracked by #4809). Closes #2788.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Sat, 09 Feb 2008 07:26:12 +0000
parents c77098cebf23
children 401462cbacb9 be419fb6eb20 c0ad0943cd6e
comparison
equal deleted inserted replaced
22273:c2115e5e613d 22275:bd25f8c9d94e
974 fontpref = pidgin_prefs_checkbox(_("Use document font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox); 974 fontpref = pidgin_prefs_checkbox(_("Use document font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox);
975 else 975 else
976 fontpref = pidgin_prefs_checkbox(_("Use font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox); 976 fontpref = pidgin_prefs_checkbox(_("Use font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox);
977 977
978 font_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font"); 978 font_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font");
979 font_button = gtk_font_button_new_with_font(font_name ? font_name : NULL); 979 font_button = gtk_font_button_new();
980 if (font_name && strlen(font_name))
981 gtk_font_button_set_font_name((GtkFontButton *)font_button, (const char*)font_name);
982
980 gtk_font_button_set_show_style(GTK_FONT_BUTTON(font_button), TRUE); 983 gtk_font_button_set_show_style(GTK_FONT_BUTTON(font_button), TRUE);
981 hbox = pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Conversation _font:"), NULL, font_button, FALSE, NULL); 984 hbox = pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Conversation _font:"), NULL, font_button, FALSE, NULL);
982 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/use_theme_font")) 985 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/use_theme_font"))
983 gtk_widget_set_sensitive(hbox, FALSE); 986 gtk_widget_set_sensitive(hbox, FALSE);
984 g_signal_connect(G_OBJECT(fontpref), "clicked", G_CALLBACK(pidgin_toggle_sensitive), hbox); 987 g_signal_connect(G_OBJECT(fontpref), "clicked", G_CALLBACK(pidgin_toggle_sensitive), hbox);