mirror of
https://github.com/transmission/transmission
synced 2025-02-22 14:10:34 +00:00
#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:
parent
8bb6aae324
commit
1127463a1c
1 changed files with 2 additions and 1 deletions
|
@ -1287,7 +1287,7 @@ on_core_error( TrCore * core UNUSED, guint code, const char * msg, struct cbdata
|
||||||
}
|
}
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION( 2, 8, 0 )
|
#if GTK_CHECK_VERSION( 2, 8, 0 )
|
||||||
static void
|
static gboolean
|
||||||
on_main_window_focus_in( GtkWidget * widget UNUSED,
|
on_main_window_focus_in( GtkWidget * widget UNUSED,
|
||||||
GdkEventFocus * event UNUSED,
|
GdkEventFocus * event UNUSED,
|
||||||
gpointer gdata )
|
gpointer gdata )
|
||||||
|
@ -1296,6 +1296,7 @@ on_main_window_focus_in( GtkWidget * widget UNUSED,
|
||||||
|
|
||||||
if( cbdata->wind )
|
if( cbdata->wind )
|
||||||
gtk_window_set_urgency_hint( cbdata->wind, FALSE );
|
gtk_window_set_urgency_hint( cbdata->wind, FALSE );
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue