From 4ba10a8106ee2ed8a8499ae29932724a1f69cda3 Mon Sep 17 00:00:00 2001 From: William Wold Date: Wed, 11 Nov 2020 13:44:13 -0800 Subject: Drop panel_profile_set_background_gdk_rgba() and getter (duplicates of panel_profile_set_background_color ()) --- mate-panel/panel-profile.c | 20 +++----------------- mate-panel/panel-profile.h | 5 ----- mate-panel/panel-properties-dialog.c | 2 +- 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 @@ -238,20 +238,6 @@ panel_profile_get_background_type (PanelToplevel *toplevel) 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; @@ -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); } -- cgit v1.2.1