[gthumb] allow to use the context menu even when the file list is empty



commit 8a111d311c36909be5ab41d37340e3e51cb06e9d
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Feb 20 16:33:01 2011 +0100

    allow to use the context menu even when the file list is empty

 gthumb/gth-browser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index d15ac9b..36453f2 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4220,6 +4220,10 @@ _gth_browser_construct (GthBrowser *browser)
 			  "button-press-event",
 			  G_CALLBACK (gth_file_list_button_press_cb),
 			  browser);
+	g_signal_connect (gth_file_list_get_empty_view (GTH_FILE_LIST (browser->priv->file_list)),
+			  "button-press-event",
+			  G_CALLBACK (gth_file_list_button_press_cb),
+			  browser);
 	g_signal_connect (browser->priv->file_list,
 			  "popup-menu",
 			  G_CALLBACK (gth_file_list_popup_menu_cb),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]