[Goodies-commits] r3798 - in xfce4-dict-plugin/trunk: . panel-plugin

Enrico Troeger enrico at xfce.org
Sat Jan 12 11:55:10 CET 2008


Author: enrico
Date: 2008-01-12 10:55:10 +0000 (Sat, 12 Jan 2008)
New Revision: 3798

Modified:
   xfce4-dict-plugin/trunk/ChangeLog
   xfce4-dict-plugin/trunk/panel-plugin/dict.c
Log:
When changing the search method in the main window, put the input focus back to the text entry.	  


Modified: xfce4-dict-plugin/trunk/ChangeLog
===================================================================
--- xfce4-dict-plugin/trunk/ChangeLog	2008-01-12 09:35:35 UTC (rev 3797)
+++ xfce4-dict-plugin/trunk/ChangeLog	2008-01-12 10:55:10 UTC (rev 3798)
@@ -1,6 +1,12 @@
+2008-01-12  Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+	* When changing the search method in the main window, put the input
+	  focus back to the text entry.
+
+
 2008-01-04  Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
 
-	* Add xfce4-popup-dict command to show the main window and/or grad the input
+	* Add xfce4-popup-dict command to show the main window and/or grab the input
 	  focus to the text field in the panel.
 	* Change year in copyright notes to 2008.
 

Modified: xfce4-dict-plugin/trunk/panel-plugin/dict.c
===================================================================
--- xfce4-dict-plugin/trunk/panel-plugin/dict.c	2008-01-12 09:35:35 UTC (rev 3797)
+++ xfce4-dict-plugin/trunk/panel-plugin/dict.c	2008-01-12 10:55:10 UTC (rev 3798)
@@ -1345,21 +1345,30 @@
 static void dict_search_mode_dict_toggled(GtkToggleButton *togglebutton, DictData *dd)
 {
 	if (gtk_toggle_button_get_active(togglebutton))
+	{
 		dd->mode = DICTMODE_DICT;
+		gtk_widget_grab_focus(dd->main_entry);
+	}
 }
 
 
 static void dict_search_mode_web_toggled(GtkToggleButton *togglebutton, DictData *dd)
 {
 	if (gtk_toggle_button_get_active(togglebutton))
+	{
 		dd->mode = DICTMODE_WEB;
+		gtk_widget_grab_focus(dd->main_entry);
+	}
 }
 
 
 static void dict_search_mode_spell_toggled(GtkToggleButton *togglebutton, DictData *dd)
 {
 	if (gtk_toggle_button_get_active(togglebutton))
+	{
 		dd->mode = DICTMODE_SPELL;
+		gtk_widget_grab_focus(dd->main_entry);
+	}
 }
 
 




More information about the Goodies-commits mailing list