diff --git a/src/process-window.c b/src/process-window.c index 36c01ca..1e63e9a 100644 --- a/src/process-window.c +++ b/src/process-window.c @@ -299,8 +299,9 @@ xtm_process_window_init (XtmProcessWindow *window) gtk_widget_show (window->treeview); gtk_container_add (GTK_CONTAINER (gtk_builder_get_object (window->builder, "scrolledwindow")), window->treeview); - g_object_bind_property (gtk_builder_get_object (window->builder, "legend"), "visible", - window->settings, "show-legend", G_BINDING_BIDIRECTIONAL); + g_object_bind_property(window->settings, "show-legend", + gtk_builder_get_object(window->builder, "legend"), "visible", + G_BINDING_SYNC_CREATE); window->filter_entry = GTK_WIDGET(gtk_builder_get_object (window->builder, "filter-entry")); g_signal_connect (G_OBJECT(window->filter_entry), "icon-press", G_CALLBACK(filter_entry_icon_pressed_cb), NULL); diff --git a/src/settings.c b/src/settings.c index c555188..6b5e62c 100644 --- a/src/settings.c +++ b/src/settings.c @@ -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,