[eog] Prevent from opening multiple toolbar editor windows
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Prevent from opening multiple toolbar editor windows
- Date: Tue, 26 Apr 2011 20:45:11 +0000 (UTC)
commit d55706b2780bd135450423625a1cffb04d79598a
Author: Felix Riemann <friemann gnome org>
Date: Tue Apr 26 22:43:48 2011 +0200
Prevent from opening multiple toolbar editor windows
Multiple windows where useless as the toolbar became read-only again
when the first window was closed.
src/eog-window.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 911968d..8815fba 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2520,6 +2520,13 @@ eog_window_cmd_edit_toolbar (GtkAction *action, gpointer *user_data)
tb_action, "sensitive",
G_BINDING_SYNC_CREATE |
G_BINDING_INVERT_BOOLEAN);
+ /* Do the same for the EditToolbar action to avoid spawning
+ * additional (useless) editor windows. */
+ g_object_bind_property (dialog, "visible",
+ action, "sensitive",
+ G_BINDING_SYNC_CREATE |
+ G_BINDING_INVERT_BOOLEAN);
+
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]