[uim-commit] r2942 - trunk/helper

ekato at freedesktop.org ekato at freedesktop.org
Thu Jan 19 10:51:41 PST 2006


Author: ekato
Date: 2006-01-19 10:51:01 -0800 (Thu, 19 Jan 2006)
New Revision: 2942

Modified:
   trunk/helper/im-switcher-gtk.c
Log:
* helper/im-switcher-gtk.c (create_switcher) : Set default focus
  to tree view.
(reload_im_list) : Change return type of the function, and return
  FALSE to enable IM selection by cursor key.


Modified: trunk/helper/im-switcher-gtk.c
===================================================================
--- trunk/helper/im-switcher-gtk.c	2006-01-19 11:00:58 UTC (rev 2941)
+++ trunk/helper/im-switcher-gtk.c	2006-01-19 18:51:01 UTC (rev 2942)
@@ -49,7 +49,7 @@
 static gchar *im_list_str_old; /* To compare new im_list_str */
 static GtkWidget *switcher_tree_view;
 
-static void
+static gboolean
 reload_im_list(GtkWindow *window, gpointer user_data);
 static void
 parse_helper_str(const char *sent_str);
@@ -401,15 +401,19 @@
     gtk_window_set_position(GTK_WINDOW(switcher_win),
 			    GTK_WIN_POS_CENTER_ALWAYS);
   }
+  gtk_widget_grab_focus(switcher_tree_view);
   gtk_widget_show_all(switcher_win);
+
   return 0;
 }
 
-static void
+static gboolean
 reload_im_list(GtkWindow *window, gpointer user_data)
 {
   check_helper_connection();
   uim_helper_send_message(uim_fd, "im_list_get\n"); 
+
+  return FALSE;
 }
 
 static void



More information about the uim-commit mailing list