comparison pidgin/gtkthemes.c @ 32616:6eb0a2a860b3

Workaround the bug that causes a crash when closing a gtkwindow. This bug was caused by some data corruption when using the webview as a GtkIMHtml in the smile themes code.
author masca@cpw.pidgin.im
date Fri, 16 Sep 2011 04:49:17 +0000
parents e1cc8d07fe07
children 68fe7b5211a7
comparison
equal deleted inserted replaced
32615:20dfcc9aa471 32616:6eb0a2a860b3
120 g_free(theme_dir); 120 g_free(theme_dir);
121 } 121 }
122 122
123 static void _pidgin_themes_smiley_themeize(GtkWidget *imhtml, gboolean custom) 123 static void _pidgin_themes_smiley_themeize(GtkWidget *imhtml, gboolean custom)
124 { 124 {
125 /* FIXME: move imhtml dependency to use webview. */
126 #if 0
125 struct smiley_list *list; 127 struct smiley_list *list;
126 if (!current_smiley_theme) 128 if (!current_smiley_theme)
127 return; 129 return;
128 130
129 gtk_imhtml_remove_smileys(GTK_IMHTML(imhtml)); 131 gtk_imhtml_remove_smileys(GTK_IMHTML(imhtml));
145 } 147 }
146 } 148 }
147 149
148 list = list->next; 150 list = list->next;
149 } 151 }
152 #endif
150 } 153 }
151 154
152 void pidgin_themes_smiley_themeize(GtkWidget *imhtml) 155 void pidgin_themes_smiley_themeize(GtkWidget *imhtml)
153 { 156 {
154 _pidgin_themes_smiley_themeize(imhtml, FALSE); 157 _pidgin_themes_smiley_themeize(imhtml, FALSE);