[anjuta] Remove unused anjuta_util_convert_color (and avoid including anjuta-preferences)
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjuta] Remove unused anjuta_util_convert_color (and avoid including anjuta-preferences)
- Date: Sun, 5 Jul 2009 21:20:52 +0000 (UTC)
commit 0979863ec73497d9cd13e7761b3cec0c4c1caef7
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sun Jul 5 17:08:15 2009 +0200
Remove unused anjuta_util_convert_color (and avoid including anjuta-preferences)
libanjuta/anjuta-utils.c | 10 ----------
libanjuta/anjuta-utils.h | 4 ----
2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/libanjuta/anjuta-utils.c b/libanjuta/anjuta-utils.c
index 771d9c4..f85e817 100644
--- a/libanjuta/anjuta-utils.c
+++ b/libanjuta/anjuta-utils.c
@@ -170,16 +170,6 @@ anjuta_util_string_from_color (guint16 r, guint16 g, guint16 b)
return g_strdup_printf("#%02x%02x%02x", r >> 8, g >> 8, b >> 8);
}
-/* Get a GdkColor from preferences. Free the color with gdk_color_free() */
-GdkColor*
-anjuta_util_convert_color(AnjutaPreferences* prefs, const gchar* pref_name)
-{
- GdkColor* color = g_new0(GdkColor, 1);
- gchar* color_string = anjuta_preferences_get(prefs, pref_name);
- gdk_color_parse(color_string, color);
- return color;
-}
-
GtkWidget*
anjuta_util_button_new_with_stock_image (const gchar* text,
const gchar* stock_id)
diff --git a/libanjuta/anjuta-utils.h b/libanjuta/anjuta-utils.h
index 5fc0f8f..dccfe0b 100644
--- a/libanjuta/anjuta-utils.h
+++ b/libanjuta/anjuta-utils.h
@@ -25,8 +25,6 @@
#include <sys/types.h>
#include <gio/gio.h>
-#include <libanjuta/anjuta-preferences.h>
-
G_BEGIN_DECLS
gboolean anjuta_util_copy_file (const gchar * src, const gchar * dest, gboolean show_error);
@@ -38,8 +36,6 @@ void anjuta_util_color_from_string (const gchar * val, guint16 * r,
gchar* anjuta_util_string_from_color (guint16 r, guint16 g, guint16 b);
-GdkColor* anjuta_util_convert_color(AnjutaPreferences* prefs, const gchar* pref_name);
-
GtkWidget* anjuta_util_button_new_with_stock_image (const gchar* text,
const gchar* stock_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]