]> granicus.if.org Git - transmission/commitdiff
#3042 "Open torrent dialog focus not restored" -- fixed. patch by ijuxda.
authorJordan Lee <jordan@transmissionbt.com>
Tue, 25 Jan 2011 04:26:10 +0000 (04:26 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 25 Jan 2011 04:26:10 +0000 (04:26 +0000)
the callback function for GtkWidget's focus-in-event should return TRUE to stop other handlers from being invoked for the event or FALSE to propagate the event further.

gtk/main.c

index 9b40feb68570c8d874ee495fea80d9a094ae68a6..5b64f1b739896153758c871129dae060be29ce79 100644 (file)
@@ -1287,7 +1287,7 @@ on_core_error( TrCore * core UNUSED, guint code, const char * msg, struct cbdata
 }
 
 #if GTK_CHECK_VERSION( 2, 8, 0 )
-static void
+static gboolean
 on_main_window_focus_in( GtkWidget      * widget UNUSED,
                          GdkEventFocus  * event  UNUSED,
                          gpointer                gdata )
@@ -1296,6 +1296,7 @@ on_main_window_focus_in( GtkWidget      * widget UNUSED,
 
     if( cbdata->wind )
         gtk_window_set_urgency_hint( cbdata->wind, FALSE );
+    return FALSE;
 }
 
 #endif