[gedit] ViewFrame: fixes for the minimap setting
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] ViewFrame: fixes for the minimap setting
- Date: Sun, 10 May 2015 11:35:45 +0000 (UTC)
commit 887988bb4b3a8b9e029aaf2e42ca1041c65d7be2
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun May 10 13:25:56 2015 +0200
ViewFrame: fixes for the minimap setting
If the minimap setting is not writable, the sensitivity should be
applied to the menu action, not to the minimap widget. Because if the
minimap setting is TRUE (but not writable), the minimap widget should be
sensitive.
gedit/gedit-view-frame.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 8d73e2b..14fb915 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -154,6 +154,7 @@ gedit_view_frame_dispose (GObject *object)
gtk_source_file_set_mount_operation_factory (file, NULL, NULL, NULL);
}
+ g_clear_object (&frame->ui_settings);
g_clear_object (&frame->entry_tag);
g_clear_object (&frame->search_settings);
g_clear_object (&frame->old_search_settings);
@@ -1548,7 +1549,7 @@ gedit_view_frame_init (GeditViewFrame *frame)
GEDIT_SETTINGS_MINIMAP_VISIBLE,
frame->map_frame,
"visible",
- G_SETTINGS_BIND_GET);
+ G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY);
gtk_widget_override_background_color (GTK_WIDGET (frame), 0, &transparent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]