diff options
author | infirit <[email protected]> | 2014-07-27 22:29:45 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-27 22:29:45 +0200 |
commit | 4d827d913415d9bad36266d160dbf9c5bb5f1739 (patch) | |
tree | 5ef0dcd2e36fdcda5d808d09c5c195f3820bdbda /src/eom-window.c | |
parent | c5595fd97929b0b38ccde0caa955b9240c3fd82e (diff) | |
download | eom-4d827d913415d9bad36266d160dbf9c5bb5f1739.tar.bz2 eom-4d827d913415d9bad36266d160dbf9c5bb5f1739.tar.xz |
Set transparency style using GSettings
Based on eog commit acdafc3563c5c88d3c2d2a25e4602d774dad92fa
From Felix Riemann <[email protected]>
Diffstat (limited to 'src/eom-window.c')
-rw-r--r-- | src/eom-window.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/eom-window.c b/src/eom-window.c index e00897b..7daa08f 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -226,37 +226,6 @@ eom_window_error_quark (void) } static void -eom_window_transparency_changed_cb (GSettings *settings, gchar *key, gpointer user_data) -{ - EomWindowPrivate *priv; - gchar *value = NULL; - - g_return_if_fail (EOM_IS_WINDOW (user_data)); - - eom_debug (DEBUG_PREFERENCES); - - priv = EOM_WINDOW (user_data)->priv; - - g_return_if_fail (EOM_IS_SCROLL_VIEW (priv->view)); - - value = g_settings_get_string (settings, key); - - if (value == NULL) { - return; - } else if (g_ascii_strcasecmp (value, "COLOR") == 0) { - eom_scroll_view_set_transparency (EOM_SCROLL_VIEW (priv->view), - EOM_TRANSP_COLOR); - } else if (g_ascii_strcasecmp (value, "CHECK_PATTERN") == 0) { - eom_scroll_view_set_transparency (EOM_SCROLL_VIEW (priv->view), - EOM_TRANSP_CHECKED); - } else { - eom_scroll_view_set_transparency (EOM_SCROLL_VIEW (priv->view), - EOM_TRANSP_BACKGROUND); - } - g_free (value); -} - -static void eom_window_collection_mode_changed_cb (GSettings *settings, gchar *key, gpointer user_data) { EomWindowPrivate *priv; @@ -4413,9 +4382,6 @@ eom_window_construct_ui (EomWindow *window) gtk_box_pack_end (GTK_BOX (priv->cbox), priv->layout, TRUE, TRUE, 0); - eom_window_transparency_changed_cb (priv->view_settings, - EOM_CONF_VIEW_TRANSPARENCY, - window); eom_window_collection_mode_changed_cb (priv->ui_settings, EOM_CONF_UI_IMAGE_COLLECTION_POSITION, window); @@ -4455,11 +4421,6 @@ eom_window_init (EomWindow *window) priv->fullscreen_settings = g_settings_new (EOM_CONF_FULLSCREEN); priv->lockdown_settings = g_settings_new (EOM_CONF_LOCKDOWN_SCHEMA); - g_signal_connect (priv->view_settings, - "changed::" EOM_CONF_VIEW_TRANSPARENCY, - G_CALLBACK (eom_window_transparency_changed_cb), - window); - g_signal_connect (priv->ui_settings, "changed::" EOM_CONF_UI_IMAGE_COLLECTION_POSITION, G_CALLBACK (eom_window_collection_mode_changed_cb), |