summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2020-11-11 13:44:13 -0800
committerraveit65 <[email protected]>2020-12-04 21:45:39 +0100
commit4ba10a8106ee2ed8a8499ae29932724a1f69cda3 (patch)
treedab54361230f5305f1f2c4c9d34b0300293deebd
parent6b0fe07189c693d6b31da2063721a24959984452 (diff)
downloadmate-panel-4ba10a8106ee2ed8a8499ae29932724a1f69cda3.tar.bz2
mate-panel-4ba10a8106ee2ed8a8499ae29932724a1f69cda3.tar.xz
Drop panel_profile_set_background_gdk_rgba() and getter (duplicates of panel_profile_set_background_color ())
-rw-r--r--mate-panel/panel-profile.c20
-rw-r--r--mate-panel/panel-profile.h5
-rw-r--r--mate-panel/panel-properties-dialog.c2
3 files changed, 4 insertions, 23 deletions
diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c
index 883dcba6..7625f6a8 100644
--- a/mate-panel/panel-profile.c
+++ b/mate-panel/panel-profile.c
@@ -239,20 +239,6 @@ void
panel_profile_set_background_color (PanelToplevel *toplevel,
GdkRGBA *color)
{
- panel_profile_set_background_gdk_rgba (toplevel, color);
-}
-
-void
-panel_profile_get_background_color (PanelToplevel *toplevel,
- GdkRGBA *color)
-{
- panel_profile_get_background_gdk_rgba (toplevel, color);
-}
-
-void
-panel_profile_set_background_gdk_rgba (PanelToplevel *toplevel,
- GdkRGBA *color)
-{
char *color_str;
color_str = gdk_rgba_to_string (color);
@@ -263,8 +249,8 @@ panel_profile_set_background_gdk_rgba (PanelToplevel *toplevel,
}
void
-panel_profile_get_background_gdk_rgba (PanelToplevel *toplevel,
- GdkRGBA *color)
+panel_profile_get_background_color (PanelToplevel *toplevel,
+ GdkRGBA *color)
{
char *color_str;
@@ -524,7 +510,7 @@ panel_profile_load_background (PanelToplevel *toplevel)
background = &panel_widget->toplevel->background;
background_type = panel_profile_get_background_type (toplevel);
- panel_profile_get_background_gdk_rgba (toplevel, &color);
+ panel_profile_get_background_color (toplevel, &color);
image = get_background_image (toplevel, &fit, &stretch, &rotate);
diff --git a/mate-panel/panel-profile.h b/mate-panel/panel-profile.h
index 3648d82d..359714b5 100644
--- a/mate-panel/panel-profile.h
+++ b/mate-panel/panel-profile.h
@@ -114,11 +114,6 @@ void panel_profile_set_background_color (PanelToplevel *topl
void panel_profile_get_background_color (PanelToplevel *toplevel,
GdkRGBA *color);
-void panel_profile_set_background_gdk_rgba (PanelToplevel *toplevel,
- GdkRGBA *color);
-void panel_profile_get_background_gdk_rgba (PanelToplevel *toplevel,
- GdkRGBA *color);
-
void panel_profile_set_background_opacity (PanelToplevel *toplevel,
guint16 opacity);
guint16 panel_profile_get_background_opacity (PanelToplevel *toplevel);
diff --git a/mate-panel/panel-properties-dialog.c b/mate-panel/panel-properties-dialog.c
index 95ffd00d..c5fc2c11 100644
--- a/mate-panel/panel-properties-dialog.c
+++ b/mate-panel/panel-properties-dialog.c
@@ -332,7 +332,7 @@ panel_properties_dialog_color_changed (PanelPropertiesDialog *dialog,
g_assert (dialog->color_button == GTK_WIDGET (color_button));
gtk_color_chooser_get_rgba (color_button, &color);
- panel_profile_set_background_gdk_rgba (dialog->toplevel, &color);
+ panel_profile_set_background_color (dialog->toplevel, &color);
panel_properties_dialog_opacity_changed (dialog);
}