Index: gdictsrc/gdict-applet.c
===================================================================
RCS file: /cvs/gnome/gdict/gdict/gdict-applet.c,v
retrieving revision 1.84
diff -p -u -r1.84 gdict-applet.c
--- gdictsrc/gdict-applet.c	23 Dec 2004 15:41:45 -0000	1.84
+++ gdictsrc/gdict-applet.c	6 Jan 2005 09:31:59 -0000
@@ -54,6 +54,20 @@ entry_activate_cb (GtkEntry *entry, gpoi
 }
 
 static gboolean
+entry_button_press_event (GtkWidget *widget,
+			  GdkEventButton *event,
+			  GDictApplet *applet)
+{
+       panel_applet_request_focus (PANEL_APPLET (applet->applet_widget),
+				   event->time);
+
+       /* We just wanted to insert the above function call before the
+	* default action...
+	*/
+       return FALSE;
+}
+
+static gboolean
 image_clicked (GtkWidget *w, GdkEventButton *event, gpointer data)
 {
 	GDictApplet *applet = data;
@@ -153,6 +167,8 @@ setup_applet_widgets (GDictApplet *apple
 
  	g_signal_connect (G_OBJECT (applet->entry_widget), "activate",
  			  G_CALLBACK (entry_activate_cb), applet);
+	g_signal_connect (G_OBJECT (applet->entry_widget), "button_press_event",
+			  G_CALLBACK (entry_button_press_event), applet);
 	g_signal_connect (G_OBJECT (eventbox), "button_release_event",
  			  G_CALLBACK (image_clicked), applet);
  	g_signal_connect (G_OBJECT (eventbox), "drag_data_received",
