xed-view: Fix a crash when right clicking the left gutter (#166)

Two values were swapped in the g_settings_bind() function causing it to look
for a key that didn't exist.
This commit is contained in:
JosephMcc 2017-09-05 00:21:40 -07:00 committed by Clement Lefebvre
parent 54a8c6c616
commit 97e1b0a9ec
1 changed files with 5 additions and 5 deletions

View File

@ -385,9 +385,9 @@ create_line_numbers_menu (GtkWidget *view)
gtk_source_view_get_show_line_numbers (GTK_SOURCE_VIEW (view)));
g_settings_bind (XED_VIEW (view)->priv->editor_settings,
"active",
item,
XED_SETTINGS_DISPLAY_LINE_NUMBERS,
item,
"active",
G_SETTINGS_BIND_SET);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);