Commit 2417e472 authored by Sébastien Wilmet's avatar Sébastien Wilmet

Revert "view: do not depend on GSettings in show_line_numbers_menu()"

This reverts commit c8cbf12f.

The GtkSourceView property is set at other places in the code. E.g. for
the statusbar setting which should only change the setting for the
current document, not change the GSetting.
parent c8cbf12f
......@@ -215,7 +215,7 @@ gedit_view_constructed (GObject *object)
GEDIT_SETTINGS_DISPLAY_LINE_NUMBERS,
view,
"show-line-numbers",
G_SETTINGS_BIND_DEFAULT);
G_SETTINGS_BIND_GET);
g_settings_bind (priv->editor_settings,
GEDIT_SETTINGS_AUTO_INDENT,
......@@ -521,9 +521,11 @@ show_line_numbers_menu (GeditView *view,
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item),
gtk_source_view_get_show_line_numbers (GTK_SOURCE_VIEW (view)));
g_object_bind_property (item, "active",
view, "show-line-numbers",
G_BINDING_DEFAULT);
g_settings_bind (view->priv->editor_settings,
GEDIT_SETTINGS_DISPLAY_LINE_NUMBERS,
item,
"active",
G_SETTINGS_BIND_SET);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment