Mercurial > pidgin.yaz
diff src/gtkconv.c @ 10164:3f71f7282dbf
[gaim-migrate @ 11250]
Remove some code left over from the HTML shortcut pref and the smiley
shortcut pref for gtkimhtml windows.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 09 Nov 2004 05:36:06 +0000 |
parents | 4d484e455839 |
children | 53410b84336f |
line wrap: on
line diff
--- a/src/gtkconv.c Tue Nov 09 05:24:04 2004 +0000 +++ b/src/gtkconv.c Tue Nov 09 05:36:06 2004 +0000 @@ -4204,10 +4204,6 @@ gtkconv->entry = gtk_imhtml_new(NULL, NULL); gtk_widget_set_name(gtkconv->entry, "gaim_gtkconv_entry"); - gtk_imhtml_smiley_shortcuts(GTK_IMHTML(gtkconv->entry), - gaim_prefs_get_bool("/gaim/gtk/conversations/smiley_shortcuts")); - gtk_imhtml_html_shortcuts(GTK_IMHTML(gtkconv->entry), - gaim_prefs_get_bool("/gaim/gtk/conversations/html_shortcuts")); gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->entry), gaim_account_get_protocol_name(conv->account)); @@ -4336,7 +4332,7 @@ /* Build the toolbar. */ gtkconv->toolbar = gtk_imhtmltoolbar_new(); gtk_box_pack_start(GTK_BOX(vbox3), gtkconv->toolbar, FALSE, FALSE, 0); - + sep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox3), sep, FALSE, FALSE, 0); gtk_widget_show(sep); @@ -4352,11 +4348,6 @@ gtkconv->entry = gtk_imhtml_new(NULL, NULL); gtk_widget_set_name(gtkconv->entry, "gaim_gtkconv_entry"); - gtk_imhtml_smiley_shortcuts(GTK_IMHTML(gtkconv->entry), - gaim_prefs_get_bool("/gaim/gtk/conversations/smiley_shortcuts")); - gtk_imhtml_html_shortcuts(GTK_IMHTML(gtkconv->entry), - gaim_prefs_get_bool("/gaim/gtk/conversations/html_shortcuts")); - gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->entry), gaim_account_get_protocol_name(conv->account)); gtkconv->entry_buffer = @@ -6157,48 +6148,6 @@ } static void -html_shortcuts_pref_cb(const char *name, GaimPrefType type, - gpointer value, gpointer data) -{ - GList *l; - GaimConversation *conv; - GaimGtkConversation *gtkconv; - - for(l = gaim_get_conversations(); l != NULL; l = l->next) { - conv = (GaimConversation *)l->data; - - if(!GAIM_IS_GTK_CONVERSATION(conv)) - continue; - - gtkconv = GAIM_GTK_CONVERSATION(conv); - - gtk_imhtml_html_shortcuts(GTK_IMHTML(gtkconv->entry), - (gboolean)GPOINTER_TO_INT(value)); - } -} - -static void -smiley_shortcuts_pref_cb(const char *name, GaimPrefType type, - gpointer value, gpointer data) -{ - GList *l; - GaimConversation *conv; - GaimGtkConversation *gtkconv; - - for(l = gaim_get_conversations(); l != NULL; l = l->next) { - conv = (GaimConversation *)l->data; - - if(!GAIM_IS_GTK_CONVERSATION(conv)) - continue; - - gtkconv = GAIM_GTK_CONVERSATION(conv); - - gtk_imhtml_smiley_shortcuts(GTK_IMHTML(gtkconv->entry), - (gboolean)GPOINTER_TO_INT(value)); - } -} - -static void show_formatting_toolbar_pref_cb(const char *name, GaimPrefType type, gpointer value, gpointer data) { @@ -6384,10 +6333,6 @@ close_on_tabs_pref_cb, NULL); gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/show_timestamps", show_timestamps_pref_cb, NULL); - gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/html_shortcuts", - html_shortcuts_pref_cb, NULL); - gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/smiley_shortcuts", - smiley_shortcuts_pref_cb, NULL); gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/show_formatting_toolbar", show_formatting_toolbar_pref_cb, NULL); gaim_prefs_connect_callback(handle, "/gaim/gtk/conversations/spellcheck",