[Xfce4-commits] <xfce4-panel:devel> Drop rgba function. Now used in the internal code only.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:31:05 CEST 2009
Updating branch refs/heads/devel
to 14d86cd04fb8b0a91f9a8acee4cc89a518b7e22c (commit)
from b550cc00fed8e6415d73eb3be41161c8e0bb8fb3 (commit)
commit 14d86cd04fb8b0a91f9a8acee4cc89a518b7e22c
Author: Nick Schermer <nick at xfce.org>
Date: Fri May 1 12:07:24 2009 +0200
Drop rgba function. Now used in the internal code only.
libxfce4panel/xfce-panel-convenience.c | 30 ------------------------------
libxfce4panel/xfce-panel-convenience.h | 5 -----
2 files changed, 0 insertions(+), 35 deletions(-)
diff --git a/libxfce4panel/xfce-panel-convenience.c b/libxfce4panel/xfce-panel-convenience.c
index 734e150..4d7900b 100644
--- a/libxfce4panel/xfce-panel-convenience.c
+++ b/libxfce4panel/xfce-panel-convenience.c
@@ -101,33 +101,3 @@ xfce_panel_allow_customization (void)
return allow_customization;
}
-
-
-
-PANEL_SYMBOL_EXPORT void
-xfce_panel_cairo_set_source_rgba (cairo_t *cr,
- GdkColor *color,
- gdouble alpha)
-{
- g_return_if_fail (cr != NULL);
- g_return_if_fail (color != NULL);
- g_return_if_fail (alpha >= 0.00 && alpha <= 1.00);
-
- if (alpha >= 1.00)
- {
- /* set normal source color */
- cairo_set_source_rgb (cr,
- color->red / 65535.00,
- color->green / 65535.00,
- color->blue / 65535.00);
- }
- else
- {
- /* set source color with alpha */
- cairo_set_source_rgba (cr,
- color->red / 65535.00,
- color->green / 65535.00,
- color->blue / 65535.00,
- alpha);
- }
-}
diff --git a/libxfce4panel/xfce-panel-convenience.h b/libxfce4panel/xfce-panel-convenience.h
index 10f01e7..5c25f5b 100644
--- a/libxfce4panel/xfce-panel-convenience.h
+++ b/libxfce4panel/xfce-panel-convenience.h
@@ -35,11 +35,6 @@ GtkWidget *xfce_panel_create_toggle_button (void) G_GNUC_MALLOC G_GNUC_WARN_UNU
gboolean xfce_panel_allow_customization (void);
-/* TODO this one should be removed... */
-void xfce_panel_cairo_set_source_rgba (cairo_t *cr,
- GdkColor *color,
- gdouble alpha);
-
G_END_DECLS
#endif /* !__XFCE_PANEL_CONVENIENCE_H__ */
More information about the Xfce4-commits
mailing list