Fix bindings related to the "show-legend" setting

- Bind to xfconf so the "show-legend" setting is saved when toggled in
  the settings dialog.
- Flip the binding in xtm_process_window_init so the visibility of the
  legend is initialized from XtmSettings.
This commit is contained in:
Evangelos Foutras
2022-04-15 14:39:32 +03:00
committed by Simon Steinbeiß
parent dc832a12b3
commit fa7c8dd091
2 changed files with 5 additions and 2 deletions

View File

@@ -165,6 +165,8 @@ xtm_settings_bind_xfconf (XtmSettings *settings, XfconfChannel *channel)
G_OBJECT (settings), "show-all-processes");
xfconf_g_property_bind (channel, SETTING_SHOW_APPLICATION_ICONS, G_TYPE_BOOLEAN,
G_OBJECT (settings), "show-application-icons");
xfconf_g_property_bind (channel, SETTING_SHOW_LEGEND, G_TYPE_BOOLEAN,
G_OBJECT (settings), "show-legend");
xfconf_g_property_bind (channel, SETTING_FULL_COMMAND_LINE, G_TYPE_BOOLEAN,
G_OBJECT (settings), "full-command-line");
xfconf_g_property_bind (channel, SETTING_MORE_PRECISION, G_TYPE_BOOLEAN,