#3042 "Open torrent dialog focus not restored" -- fixed. patch by ijuxda.

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.
This commit is contained in:
Jordan Lee 2011-01-25 04:26:10 +00:00
parent 8bb6aae324
commit 1127463a1c
1 changed files with 2 additions and 1 deletions

View 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