Revision: 6757
Author: nogu.dev
Date: Sat Sep 11 01:15:58 2010
Log: * helper/dict-word-win-gtk.c
- (word_window_add, word_window_response, message_dialog_response_cb):
Use g_idle_add() instead of deprecated gtk_idle_add().
* helper/pref-gtk.c
- (main): Ditto.
http://code.google.com/p/uim/source/detail?r=6757
Modified:
/trunk/helper/dict-word-win-gtk.c
/trunk/helper/pref-gtk.c
=======================================
--- /trunk/helper/dict-word-win-gtk.c Sun Apr 4 20:35:54 2010
+++ /trunk/helper/dict-word-win-gtk.c Sat Sep 11 01:15:58 2010
@@ -516,7 +516,7 @@
/* do not destroy the window when the continuance check box is checked */
if (!word_window_is_continuance_mode(window)) {
- gtk_idle_add(idle_wordwin_destroy, window);
+ g_idle_add(idle_wordwin_destroy, window);
uim_dict_unref(window->dict);
}
}
@@ -603,7 +603,7 @@
break;
case GTK_RESPONSE_CLOSE:
case GTK_RESPONSE_CANCEL:
- gtk_idle_add(idle_wordwin_destroy, dialog);
+ g_idle_add(idle_wordwin_destroy, dialog);
uim_dict_unref(WORD_WINDOW(dialog)->dict);
break;
default:
@@ -617,7 +617,7 @@
switch (arg)
{
case GTK_RESPONSE_CLOSE:
- gtk_idle_add(idle_wordwin_destroy, dialog);
+ g_idle_add(idle_wordwin_destroy, dialog);
break;
default:
break;
=======================================
--- /trunk/helper/pref-gtk.c Sat Sep 11 01:14:31 2010
+++ /trunk/helper/pref-gtk.c Sat Sep 11 01:15:58 2010
@@ -624,7 +624,7 @@
GtkWidget *pref;
im_uim_init_modifier_keys();
- gtk_idle_add((GtkFunction) check_dot_uim_file, NULL);
+ g_idle_add((GtkFunction) check_dot_uim_file, NULL);
pref = create_pref_window();
gtk_widget_show_all(pref);