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:
parent
54a8c6c616
commit
97e1b0a9ec
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue