[gtk+] Deprecate GtkWidget override APIs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Deprecate GtkWidget override APIs
- Date: Tue, 30 Sep 2014 04:09:24 +0000 (UTC)
commit 63efdca223812936683b9d3c3ed7ef3edb2edf9a
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 30 00:07:22 2014 -0400
Deprecate GtkWidget override APIs
This is better done with css and style classes nowadays.
gtk/gtkwidget.c | 10 ++++++++++
gtk/gtkwidget.h | 10 +++++-----
2 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2593cbf..b2d3424 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -9644,6 +9644,8 @@ _gtk_widget_get_modifier_properties (GtkWidget *widget)
* priority.
*
* Since: 3.0
+ *
+ * Deprecated:3.16: Use a custom style provider and style classes instead
*/
void
gtk_widget_override_color (GtkWidget *widget,
@@ -9671,6 +9673,8 @@ gtk_widget_override_color (GtkWidget *widget,
* See gtk_widget_override_color().
*
* Since: 3.0
+ *
+ * Deprecated:3.16: Use a custom style provider and style classes instead
*/
void
gtk_widget_override_background_color (GtkWidget *widget,
@@ -9695,6 +9699,8 @@ gtk_widget_override_background_color (GtkWidget *widget,
* left untouched. See gtk_widget_override_color().
*
* Since: 3.0
+ *
+ * Deprecated:3.16: Use a custom style provider and style classes instead
*/
void
gtk_widget_override_font (GtkWidget *widget,
@@ -9723,6 +9729,8 @@ gtk_widget_override_font (GtkWidget *widget,
* or background color.
*
* Since: 3.0
+ *
+ * Deprecated:3.16: Use a custom style provider and style classes instead
*/
void
gtk_widget_override_symbolic_color (GtkWidget *widget,
@@ -9756,6 +9764,8 @@ gtk_widget_override_symbolic_color (GtkWidget *widget,
* so the alpha value in @primary and @secondary will be ignored.
*
* Since: 3.0
+ *
+ * Deprecated:3.16: Use a custom style provider and style classes instead
*/
void
gtk_widget_override_cursor (GtkWidget *widget,
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 9321fbb..ca961a0 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -1149,24 +1149,24 @@ GDK_AVAILABLE_IN_ALL
gboolean gtk_widget_hide_on_delete (GtkWidget *widget);
/* Functions to override widget styling */
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_widget_override_color (GtkWidget *widget,
GtkStateFlags state,
const GdkRGBA *color);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_widget_override_background_color (GtkWidget *widget,
GtkStateFlags state,
const GdkRGBA *color);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_widget_override_font (GtkWidget *widget,
const PangoFontDescription *font_desc);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_widget_override_symbolic_color (GtkWidget *widget,
const gchar *name,
const GdkRGBA *color);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_widget_override_cursor (GtkWidget *widget,
const GdkRGBA *cursor,
const GdkRGBA *secondary_cursor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]