[gtk+/gtk-2-90: 15/146] Remove deprecated GtkRcStyle functions



commit 771cfb9155689020beaaf4d9dc392572384cce62
Author: Christian Dywan <christian twotoasts de>
Date:   Wed Oct 7 17:55:08 2009 +0200

    Remove deprecated GtkRcStyle functions

 gtk/gtkrc.c |   58 ----------------------------------------------------------
 gtk/gtkrc.h |   15 ---------------
 2 files changed, 0 insertions(+), 73 deletions(-)
---
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index 70540a3..7fecd24 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -1304,22 +1304,6 @@ _gtk_rc_style_unset_rc_property (GtkRcStyle *rc_style,
     }
 }
 
-void      
-gtk_rc_style_ref (GtkRcStyle *rc_style)
-{
-  g_return_if_fail (GTK_IS_RC_STYLE (rc_style));
-
-  g_object_ref (rc_style);
-}
-
-void      
-gtk_rc_style_unref (GtkRcStyle *rc_style)
-{
-  g_return_if_fail (GTK_IS_RC_STYLE (rc_style));
-
-  g_object_unref (rc_style);
-}
-
 static GtkRcStyle *
 gtk_rc_style_real_create_rc_style (GtkRcStyle *style)
 {
@@ -2172,48 +2156,6 @@ gtk_rc_add_rc_sets (GSList      *slist,
   return g_slist_prepend (slist, rc_set);
 }
 
-void
-gtk_rc_add_widget_name_style (GtkRcStyle  *rc_style,
-			      const gchar *pattern)
-{
-  GtkRcContext *context;
-  
-  g_return_if_fail (rc_style != NULL);
-  g_return_if_fail (pattern != NULL);
-
-  context = gtk_rc_context_get (gtk_settings_get_default ());
-  
-  context->rc_sets_widget = gtk_rc_add_rc_sets (context->rc_sets_widget, rc_style, pattern, GTK_PATH_WIDGET);
-}
-
-void
-gtk_rc_add_widget_class_style (GtkRcStyle  *rc_style,
-			       const gchar *pattern)
-{
-  GtkRcContext *context;
-  
-  g_return_if_fail (rc_style != NULL);
-  g_return_if_fail (pattern != NULL);
-
-  context = gtk_rc_context_get (gtk_settings_get_default ());
-  
-  context->rc_sets_widget_class = gtk_rc_add_rc_sets (context->rc_sets_widget_class, rc_style, pattern, GTK_PATH_WIDGET_CLASS);
-}
-
-void
-gtk_rc_add_class_style (GtkRcStyle  *rc_style,
-			const gchar *pattern)
-{
-  GtkRcContext *context;
-  
-  g_return_if_fail (rc_style != NULL);
-  g_return_if_fail (pattern != NULL);
-
-  context = gtk_rc_context_get (gtk_settings_get_default ());
-  
-  context->rc_sets_class = gtk_rc_add_rc_sets (context->rc_sets_class, rc_style, pattern, GTK_PATH_CLASS);
-}
-
 GScanner*
 gtk_rc_scanner_new (void)
 {
diff --git a/gtk/gtkrc.h b/gtk/gtkrc.h
index 1ca2d33..e3e0255 100644
--- a/gtk/gtkrc.h
+++ b/gtk/gtkrc.h
@@ -159,25 +159,10 @@ void	  gtk_rc_parse			(const gchar *filename);
 void	  gtk_rc_parse_string		(const gchar *rc_string);
 gboolean  gtk_rc_reparse_all		(void);
 
-#ifndef GTK_DISABLE_DEPRECATED
-void	  gtk_rc_add_widget_name_style	(GtkRcStyle   *rc_style,
-					 const gchar  *pattern);
-void	  gtk_rc_add_widget_class_style (GtkRcStyle   *rc_style,
-					 const gchar  *pattern);
-void	  gtk_rc_add_class_style	(GtkRcStyle   *rc_style,
-					 const gchar  *pattern);
-#endif /* GTK_DISABLE_DEPRECATED */
-
-
 GType       gtk_rc_style_get_type   (void) G_GNUC_CONST;
 GtkRcStyle* gtk_rc_style_new        (void);
 GtkRcStyle* gtk_rc_style_copy       (GtkRcStyle *orig);
 
-#ifndef GTK_DISABLE_DEPRECATED
-void        gtk_rc_style_ref        (GtkRcStyle *rc_style);
-void        gtk_rc_style_unref      (GtkRcStyle *rc_style);
-#endif
-
 gchar*		gtk_rc_find_module_in_path	(const gchar 	*module_file);
 gchar*		gtk_rc_get_theme_dir		(void);
 gchar*		gtk_rc_get_module_dir		(void);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]