[Xfce4-commits] <parole:master> Only give focus to media list when it is visible.
Ali Abdallah
noreply at xfce.org
Sat Nov 21 14:34:01 CET 2009
Updating branch refs/heads/master
to 11b9a581afb233fb71a64c2fbebaa672d65e6353 (commit)
from f3eb5e90549fca2e95d6d2cef9ecdc775ec819a5 (commit)
commit 11b9a581afb233fb71a64c2fbebaa672d65e6353
Author: Ali Abdallah <ali at ali-xfce.org>
Date: Fri Nov 20 15:42:47 2009 +0100
Only give focus to media list when it is visible.
src/parole-medialist.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/parole-medialist.c b/src/parole-medialist.c
index db9f8e2..1244811 100644
--- a/src/parole-medialist.c
+++ b/src/parole-medialist.c
@@ -1377,5 +1377,6 @@ static gboolean parole_media_list_dbus_add_disc (ParoleMediaList *list,
void parole_media_list_grab_focus (ParoleMediaList *list)
{
- gtk_widget_grab_focus (list->priv->view);
+ if (GTK_WIDGET_VISIBLE (list->priv->view) )
+ gtk_widget_grab_focus (list->priv->view);
}
More information about the Xfce4-commits
mailing list