[gtk+] Remove unused function modify_color_property
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove unused function modify_color_property
- Date: Sun, 5 Dec 2010 21:53:34 +0000 (UTC)
commit 561346bd4060a6ce08b10edd683f2e559d9226a5
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Dec 5 21:11:34 2010 +0100
Remove unused function modify_color_property
gtk/gtkwidget.c | 30 ------------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9f1d65e..c82b6ea 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8322,36 +8322,6 @@ gtk_widget_modify_base (GtkWidget *widget,
gtk_widget_modify_color_component (widget, GTK_RC_BASE, state, color);
}
-static void
-modify_color_property (GtkWidget *widget,
- GtkRcStyle *rc_style,
- const char *name,
- const GdkColor *color)
-{
- GQuark type_name = g_type_qname (G_OBJECT_TYPE (widget));
- GQuark property_name = g_quark_from_string (name);
-
- if (color)
- {
- GtkRcProperty rc_property = {0};
- char *color_name;
-
- rc_property.type_name = type_name;
- rc_property.property_name = property_name;
- rc_property.origin = NULL;
-
- color_name = gdk_color_to_string (color);
- g_value_init (&rc_property.value, G_TYPE_STRING);
- g_value_take_string (&rc_property.value, color_name);
-
- _gtk_rc_style_set_rc_property (rc_style, &rc_property);
-
- g_value_unset (&rc_property.value);
- }
- else
- _gtk_rc_style_unset_rc_property (rc_style, type_name, property_name);
-}
-
/**
* gtk_widget_modify_cursor:
* @widget: a #GtkWidget
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]