[gtk+] Mark gtk_widget_style_attach() as deprecated.



commit 42ad651914916c720cb2720559f09afdeb2b7b59
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 10 23:11:00 2011 +0100

    Mark gtk_widget_style_attach() as deprecated.
    
    This isn't needed anymore.

 gtk/gtkwidget.c |    2 ++
 gtk/gtkwidget.h |    3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index d1eee5b..45b548a 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7792,6 +7792,8 @@ gtk_widget_get_parent (GtkWidget *widget)
  * (finally #GtkWidget) would attach the style itself.
  *
  * Since: 2.20
+ *
+ * Deprecated: 3.0. This step is unnecessary with #GtkStyleContext.
  **/
 void
 gtk_widget_style_attach (GtkWidget *widget)
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 090cc3b..269807f 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -784,11 +784,10 @@ void         gtk_widget_override_cursor           (GtkWidget       *widget,
                                                    const GdkRGBA   *cursor,
                                                    const GdkRGBA   *secondary_cursor);
 
+#if !defined(GTK_DISABLE_DEPRECATED) || defined(GTK_COMPILATION)
 
 void        gtk_widget_style_attach               (GtkWidget     *widget);
 
-#if !defined(GTK_DISABLE_DEPRECATED) || defined(GTK_COMPILATION)
-
 /* Widget styles.
  */
 gboolean    gtk_widget_has_rc_style       (GtkWidget            *widget);



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