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);
|
||||
|
||||
Reference in New Issue
Block a user