diff options
author | infirit <[email protected]> | 2014-07-24 19:43:25 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-24 19:47:33 +0200 |
commit | f8490e5ac710bc925f1e3c77e706846ffb7c76e9 (patch) | |
tree | 6a3e72589db58ab6a08fb93eb53f1474fbdbd428 /src | |
parent | fe6fcd0cade610e4f1e64863969cc2ab566fccbf (diff) | |
download | eom-f8490e5ac710bc925f1e3c77e706846ffb7c76e9.tar.bz2 eom-f8490e5ac710bc925f1e3c77e706846ffb7c76e9.tar.xz |
Use MateColorButton
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-preferences-dialog.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/eom-preferences-dialog.c b/src/eom-preferences-dialog.c index 0a46606..d551341 100644 --- a/src/eom-preferences-dialog.c +++ b/src/eom-preferences-dialog.c @@ -37,6 +37,8 @@ #include <gtk/gtk.h> #include <gio/gio.h> +#include <libmate-desktop/mate-colorbutton.h> + #define EOM_PREFERENCES_DIALOG_GET_PRIVATE(object) \ (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_PREFERENCES_DIALOG, EomPreferencesDialogPrivate)) @@ -54,13 +56,13 @@ struct _EomPreferencesDialogPrivate { static GObject *instance = NULL; static void -pd_color_change_cb (GtkColorButton *button, GSettings *settings) +pd_color_change_cb (MateColorButton *button, GSettings *settings) { GdkColor color; char *key = NULL; char *value = NULL; - gtk_color_button_get_color (button, &color); + mate_color_button_get_color (button, &color); value = g_strdup_printf ("#%02X%02X%02X", color.red / 256, @@ -196,7 +198,7 @@ eom_preferences_dialog_constructor (GType type, value = g_settings_get_string (priv->view_settings, EOM_CONF_VIEW_BACKGROUND_COLOR); if (gdk_color_parse (value, &color)){ - gtk_color_button_set_color (GTK_COLOR_BUTTON (bg_color_button), + mate_color_button_set_color (MATE_COLOR_BUTTON (bg_color_button), &color); } g_free (value); @@ -268,7 +270,7 @@ eom_preferences_dialog_constructor (GType type, EOM_CONF_VIEW_TRANS_COLOR); if (gdk_color_parse (value, &color)) { - gtk_color_button_set_color (GTK_COLOR_BUTTON (color_button), + mate_color_button_set_color (MATE_COLOR_BUTTON (color_button), &color); } |