From d51fb8ba1ca31f1f66f2855c4e514b80b88b15de Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Sun, 3 Mar 2013 16:53:06 +0300 Subject: Fix warnings and add workspace-changed signal Removed the code attempting to bind to the brightness setting since that functionality was removed. In xfdesktop-settings connect to the workspace-changed signal to properly update the image_iconview. --- settings/main.c | 4 ++++ src/xfce-workspace.c | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/settings/main.c b/settings/main.c index d0d79960..239eab1f 100644 --- a/settings/main.c +++ b/settings/main.c @@ -1158,8 +1158,12 @@ xfdesktop_settings_dialog_setup_tabs(GtkBuilder *main_gxml, if(wnck_window == NULL) wnck_window = wnck_screen_get_active_window(wnck_screen); + /* These callbacks are for updating the image_iconview when the window + * moves to another monitor or workspace */ g_signal_connect(wnck_window, "geometry-changed", G_CALLBACK(cb_update_background_tab), panel); + g_signal_connect(wnck_window, "workspace-changed", + G_CALLBACK(cb_update_background_tab), panel); /* send invalid numbers so that the update_background_tab will update everything */ panel->monitor = -1; diff --git a/src/xfce-workspace.c b/src/xfce-workspace.c index 1775fe94..eeb131b3 100644 --- a/src/xfce-workspace.c +++ b/src/xfce-workspace.c @@ -363,11 +363,6 @@ xfce_workspace_connect_backdrop_settings(XfceWorkspace *workspace, xfconf_g_property_bind(channel, buf, XFCE_TYPE_BACKDROP_IMAGE_STYLE, G_OBJECT(backdrop), "image-style"); - buf[pp_len] = 0; - g_strlcat(buf, "brightness", sizeof(buf)); - xfconf_g_property_bind(channel, buf, G_TYPE_INT, - G_OBJECT(backdrop), "brightness"); - buf[pp_len] = 0; g_strlcat(buf, "backdrop-cycle-enable", sizeof(buf)); xfconf_g_property_bind(channel, buf, G_TYPE_BOOLEAN, -- cgit v1.2.1