[gthumb: 8/23] call the gth-browser-file-list-key-press hook only if the list widget is realized
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 8/23] call the gth-browser-file-list-key-press hook only if the list widget is realized
- Date: Sun, 4 Mar 2012 17:55:54 +0000 (UTC)
commit 43d9ac254da9d06d77242e1cead74decc86e8801
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Feb 19 15:07:51 2012 +0100
call the gth-browser-file-list-key-press hook only if the list widget is realized
gthumb/gth-browser.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 715d76a..c7d49de 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5121,7 +5121,10 @@ gth_browser_viewer_key_press_cb (GthBrowser *browser,
}
}
- return gth_hook_invoke_get ("gth-browser-file-list-key-press", browser, event) != NULL;
+ if (gtk_widget_get_realized (browser->priv->file_list))
+ return gth_hook_invoke_get ("gth-browser-file-list-key-press", browser, event) != NULL;
+ else
+ return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]