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 | |
| parent | fe6fcd0cade610e4f1e64863969cc2ab566fccbf (diff) | |
| download | eom-f8490e5ac710bc925f1e3c77e706846ffb7c76e9.tar.bz2 eom-f8490e5ac710bc925f1e3c77e706846ffb7c76e9.tar.xz | |
Use MateColorButton
| -rw-r--r-- | data/eom-preferences-dialog.ui | 4 | ||||
| -rw-r--r-- | src/eom-preferences-dialog.c | 10 | 
2 files changed, 8 insertions, 6 deletions
| diff --git a/data/eom-preferences-dialog.ui b/data/eom-preferences-dialog.ui index 0dc8945..479a4b7 100644 --- a/data/eom-preferences-dialog.ui +++ b/data/eom-preferences-dialog.ui @@ -201,7 +201,7 @@                                </packing>                              </child>                              <child> -                              <object class="GtkColorButton" id="bg_color_button"> +                              <object class="MateColorButton" id="bg_color_button">                                  <property name="visible">True</property>                                  <property name="can_focus">True</property>                                  <property name="receives_default">True</property> @@ -300,7 +300,7 @@                                    </packing>                                  </child>                                  <child> -                                  <object class="GtkColorButton" id="color_button"> +                                  <object class="MateColorButton" id="color_button">                                      <property name="visible">True</property>                                      <property name="can_focus">True</property>                                      <property name="receives_default">False</property> 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);  	} | 
