[gtk+/gtk-2-90: 120/127] Remove obsolete helper function gtk_rc_add_rc_sets
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 120/127] Remove obsolete helper function gtk_rc_add_rc_sets
- Date: Tue, 17 Nov 2009 19:34:53 +0000 (UTC)
commit 9ccb6034f402f5dbd730864f877d3bb0cc3e1683
Author: Christian Dywan <christian twotoasts de>
Date: Fri Oct 23 01:57:15 2009 +0200
Remove obsolete helper function gtk_rc_add_rc_sets
gtk/gtkrc.c | 38 --------------------------------------
1 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index 7fecd24..102adda 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -2118,44 +2118,6 @@ gtk_rc_get_style_by_paths (GtkSettings *settings,
return NULL;
}
-static GSList *
-gtk_rc_add_rc_sets (GSList *slist,
- GtkRcStyle *rc_style,
- const gchar *pattern,
- GtkPathType path_type)
-{
- GtkRcStyle *new_style;
- GtkRcSet *rc_set;
- guint i;
-
- new_style = gtk_rc_style_new ();
- *new_style = *rc_style;
- new_style->name = g_strdup (rc_style->name);
- if (rc_style->font_desc)
- new_style->font_desc = pango_font_description_copy (rc_style->font_desc);
-
- for (i = 0; i < 5; i++)
- new_style->bg_pixmap_name[i] = g_strdup (rc_style->bg_pixmap_name[i]);
-
- rc_set = g_new (GtkRcSet, 1);
- rc_set->type = path_type;
-
- if (path_type == GTK_PATH_WIDGET_CLASS)
- {
- rc_set->pspec = NULL;
- rc_set->path = _gtk_rc_parse_widget_class_path (pattern);
- }
- else
- {
- rc_set->pspec = g_pattern_spec_new (pattern);
- rc_set->path = NULL;
- }
-
- rc_set->rc_style = rc_style;
-
- return g_slist_prepend (slist, rc_set);
-}
-
GScanner*
gtk_rc_scanner_new (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]