summaryrefslogtreecommitdiff
path: root/mate-panel/panel-properties-dialog.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-03 00:48:07 +0200
committerraveit65 <[email protected]>2016-08-31 15:10:57 +0200
commitd45dd88c9028fa69e543ded6909cd1da1a7ae842 (patch)
treef2adb877bccb6198b55d69327a99b1a871ed7385 /mate-panel/panel-properties-dialog.c
parentfedde22f81f466a2a558f59706fec7fe97f5493c (diff)
downloadmate-panel-d45dd88c9028fa69e543ded6909cd1da1a7ae842.tar.bz2
mate-panel-d45dd88c9028fa69e543ded6909cd1da1a7ae842.tar.xz
properties-dialog: drop usage of MateColorButton
Use GtkColorButton instead
Diffstat (limited to 'mate-panel/panel-properties-dialog.c')
-rw-r--r--mate-panel/panel-properties-dialog.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/mate-panel/panel-properties-dialog.c b/mate-panel/panel-properties-dialog.c
index e3790fd5..490940a5 100644
--- a/mate-panel/panel-properties-dialog.c
+++ b/mate-panel/panel-properties-dialog.c
@@ -36,8 +36,6 @@
#include <libpanel-util/panel-icon-chooser.h>
#include <libpanel-util/panel-show.h>
-#include <libmate-desktop/mate-colorbutton.h>
-
#include "nothing.h"
#include "panel-profile.h"
#include "panel-schemas.h"
@@ -329,7 +327,7 @@ SETUP_TOGGLE_BUTTON ("arrows_toggle", arrows_toggle, enable_arrows,
static void
panel_properties_dialog_color_changed (PanelPropertiesDialog *dialog,
- MateColorButton *color_button)
+ GtkColorButton *color_button)
{
#if GTK_CHECK_VERSION (3, 0, 0)
GdkRGBA color;
@@ -340,11 +338,11 @@ panel_properties_dialog_color_changed (PanelPropertiesDialog *dialog,
g_assert (dialog->color_button == GTK_WIDGET (color_button));
#if GTK_CHECK_VERSION (3, 0, 0)
- mate_color_button_get_rgba (color_button, &color);
+ gtk_color_button_get_rgba (color_button, &color);
panel_profile_set_background_gdk_rgba (dialog->toplevel, &color);
panel_properties_dialog_opacity_changed (dialog);
#else
- mate_color_button_get_color (color_button, &color);
+ gtk_color_button_get_color (color_button, &color);
panel_profile_set_background_gdk_color (dialog->toplevel, &color);
#endif
}
@@ -367,10 +365,10 @@ panel_properties_dialog_setup_color_button (PanelPropertiesDialog *dialog,
panel_profile_get_background_color (dialog->toplevel, &color);
#if GTK_CHECK_VERSION (3, 0, 0)
- mate_color_button_set_rgba (MATE_COLOR_BUTTON (dialog->color_button),
+ gtk_color_button_set_rgba (GTK_COLOR_BUTTON (dialog->color_button),
&color);
#else
- mate_color_button_set_color (MATE_COLOR_BUTTON (dialog->color_button),
+ gtk_color_button_set_color (GTK_COLOR_BUTTON (dialog->color_button),
&(color.gdk));
#endif
@@ -723,11 +721,11 @@ panel_properties_dialog_update_background_color (PanelPropertiesDialog *dialog,
if (!gdk_rgba_parse (&new_color, str_color))
return;
- mate_color_button_get_rgba (MATE_COLOR_BUTTON (dialog->color_button),
+ gtk_color_button_get_rgba (GTK_COLOR_BUTTON (dialog->color_button),
&old_color);
if (!gdk_rgba_equal (&old_color, &new_color))
- mate_color_button_set_rgba (MATE_COLOR_BUTTON (dialog->color_button),
+ gtk_color_button_set_rgba (GTK_COLOR_BUTTON (dialog->color_button),
&new_color);
#else
GdkColor new_color = { 0, };
@@ -736,11 +734,11 @@ panel_properties_dialog_update_background_color (PanelPropertiesDialog *dialog,
if (!gdk_color_parse (str_color, &new_color))
return;
- mate_color_button_get_color (MATE_COLOR_BUTTON (dialog->color_button),
+ gtk_color_button_get_color (GTK_COLOR_BUTTON (dialog->color_button),
&old_color);
if (!gdk_color_equal (&old_color, &new_color))
- mate_color_button_set_color (MATE_COLOR_BUTTON (dialog->color_button),
+ gtk_color_button_set_color (GTK_COLOR_BUTTON (dialog->color_button),
&new_color);
#endif
}