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:
committed by
Simon Steinbeiß
parent
dc832a12b3
commit
fa7c8dd091
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user