src/gtkconv.c

changeset 8881
76eadd46dd67
parent 8858
99c635a80a26
child 8882
e1f85917a765
equal deleted inserted replaced
8880:15b365a0a7fe 8881:76eadd46dd67
5635 } 5635 }
5636 #endif 5636 #endif
5637 } 5637 }
5638 5638
5639 static void 5639 static void
5640 show_smileys_pref_cb(const char *name, GaimPrefType type, gpointer value,
5641 gpointer data)
5642 {
5643 GList *cl;
5644 GaimConversation *conv;
5645 GaimGtkConversation *gtkconv;
5646
5647 for (cl = gaim_get_conversations(); cl != NULL; cl = cl->next) {
5648 conv = (GaimConversation *)cl->data;
5649
5650 if (!GAIM_IS_GTK_CONVERSATION(conv))
5651 continue;
5652
5653 gtkconv = GAIM_GTK_CONVERSATION(conv);
5654
5655 gtk_imhtml_show_smileys(GTK_IMHTML(gtkconv->imhtml), (gboolean)GPOINTER_TO_INT(value));
5656 gtk_imhtml_show_smileys(GTK_IMHTML(gtkconv->entry), (gboolean)GPOINTER_TO_INT(value));
5657 }
5658 }
5659
5660 static void
5661 tab_side_pref_cb(const char *name, GaimPrefType type, gpointer value, 5640 tab_side_pref_cb(const char *name, GaimPrefType type, gpointer value,
5662 gpointer data) 5641 gpointer data)
5663 { 5642 {
5664 GList *l; 5643 GList *l;
5665 GtkPositionType pos; 5644 GtkPositionType pos;
5867 gaim_prefs_add_bool("/gaim/gtk/conversations/enter_sends", TRUE); 5846 gaim_prefs_add_bool("/gaim/gtk/conversations/enter_sends", TRUE);
5868 gaim_prefs_add_bool("/gaim/gtk/conversations/escape_closes", FALSE); 5847 gaim_prefs_add_bool("/gaim/gtk/conversations/escape_closes", FALSE);
5869 gaim_prefs_add_bool("/gaim/gtk/conversations/send_bold", FALSE); 5848 gaim_prefs_add_bool("/gaim/gtk/conversations/send_bold", FALSE);
5870 gaim_prefs_add_bool("/gaim/gtk/conversations/send_italic", FALSE); 5849 gaim_prefs_add_bool("/gaim/gtk/conversations/send_italic", FALSE);
5871 gaim_prefs_add_bool("/gaim/gtk/conversations/send_underline", FALSE); 5850 gaim_prefs_add_bool("/gaim/gtk/conversations/send_underline", FALSE);
5872 gaim_prefs_add_bool("/gaim/gtk/conversations/show_smileys", TRUE);
5873 gaim_prefs_add_bool("/gaim/gtk/conversations/show_timestamps", TRUE); 5851 gaim_prefs_add_bool("/gaim/gtk/conversations/show_timestamps", TRUE);
5874 gaim_prefs_add_bool("/gaim/gtk/conversations/show_urls_as_links", TRUE); 5852 gaim_prefs_add_bool("/gaim/gtk/conversations/show_urls_as_links", TRUE);
5875 gaim_prefs_add_bool("/gaim/gtk/conversations/spellcheck", TRUE); 5853 gaim_prefs_add_bool("/gaim/gtk/conversations/spellcheck", TRUE);
5876 gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_colors", FALSE); 5854 gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_colors", FALSE);
5877 gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_fonts", FALSE); 5855 gaim_prefs_add_bool("/gaim/gtk/conversations/ignore_fonts", FALSE);
5920 escape_closes_pref_cb, NULL); 5898 escape_closes_pref_cb, NULL);
5921 gaim_prefs_connect_callback("/gaim/gtk/conversations/icons_on_tabs", 5899 gaim_prefs_connect_callback("/gaim/gtk/conversations/icons_on_tabs",
5922 icons_on_tabs_pref_cb, NULL); 5900 icons_on_tabs_pref_cb, NULL);
5923 gaim_prefs_connect_callback("/gaim/gtk/conversations/close_on_tabs", 5901 gaim_prefs_connect_callback("/gaim/gtk/conversations/close_on_tabs",
5924 close_on_tabs_pref_cb, NULL); 5902 close_on_tabs_pref_cb, NULL);
5925 gaim_prefs_connect_callback("/gaim/gtk/conversations/show_smileys",
5926 show_smileys_pref_cb, NULL);
5927 gaim_prefs_connect_callback("/gaim/gtk/conversations/show_timestamps", 5903 gaim_prefs_connect_callback("/gaim/gtk/conversations/show_timestamps",
5928 show_timestamps_pref_cb, NULL); 5904 show_timestamps_pref_cb, NULL);
5929 gaim_prefs_connect_callback("/gaim/gtk/conversations/html_shortcuts", 5905 gaim_prefs_connect_callback("/gaim/gtk/conversations/html_shortcuts",
5930 html_shortcuts_pref_cb, NULL); 5906 html_shortcuts_pref_cb, NULL);
5931 gaim_prefs_connect_callback("/gaim/gtk/conversations/smiley_shortcuts", 5907 gaim_prefs_connect_callback("/gaim/gtk/conversations/smiley_shortcuts",

mercurial