[gthumb/gthumb-2-14] 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/gthumb-2-14] call the gth-browser-file-list-key-press hook only if the list widget is realized
- Date: Sun, 19 Feb 2012 14:59:05 +0000 (UTC)
commit f51e3c8f05b3ecce08de639dfd4ac88454465922
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 31288ee..caf9ad1 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5118,7 +5118,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]