summaryrefslogtreecommitdiff
path: root/gtk/gtkrc.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-25 14:26:39 -0500
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:46 +0100
commitf8a874abb1d1d8925b0f841e95bbef6cdcb21ac4 (patch)
treee4c0c3ec7f7ae9e0c53ad9caba534eca74247628 /gtk/gtkrc.c
parente374f7e4b544a963dfd3ee795870517ad3e45412 (diff)
downloadgtk+-f8a874abb1d1d8925b0f841e95bbef6cdcb21ac4.tar.gz
Initial attempt at deprecating GtkStyle api
This will probably need some finetuning.
Diffstat (limited to 'gtk/gtkrc.c')
-rw-r--r--gtk/gtkrc.c49
1 files changed, 41 insertions, 8 deletions
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index 11918715d6..54cf2fcd76 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -541,9 +541,11 @@ gtk_rc_add_initial_default_files (void)
* gtk_rc_add_default_file:
* @filename: the pathname to the file. If @filename is not absolute, it
* is searched in the current directory.
- *
+ *
* Adds a file to the list of files to be parsed at the
* end of gtk_init().
+ *
+ * Deprecated:3.0: Use #GtkStyleContext with a custom #GtkStyleProvider instead
**/
void
gtk_rc_add_default_file (const gchar *filename)
@@ -571,9 +573,11 @@ gtk_rc_add_default_file (const gchar *filename)
/**
* gtk_rc_set_default_files:
* @filenames: A %NULL-terminated list of filenames.
- *
+ *
* Sets the list of files that GTK+ will read at the
* end of gtk_init().
+ *
+ * Deprecated:3.0: Use #GtkStyleContext with a custom #GtkStyleProvider instead
**/
void
gtk_rc_set_default_files (gchar **filenames)
@@ -608,6 +612,8 @@ gtk_rc_set_default_files (gchar **filenames)
* Return value: (transfer none): A %NULL-terminated array of filenames.
* This memory is owned by GTK+ and must not be freed by the application.
* If you want to store this information, you should make a copy.
+ *
+ * Deprecated:3.0: Use #GtkStyleContext instead
**/
gchar **
gtk_rc_get_default_files (void)
@@ -1964,17 +1970,19 @@ sort_and_dereference_sets (GSList *styles)
/**
* gtk_rc_get_style:
* @widget: a #GtkWidget
- *
+ *
* Finds all matching RC styles for a given widget,
- * composites them together, and then creates a
+ * composites them together, and then creates a
* #GtkStyle representing the composite appearance.
- * (GTK+ actually keeps a cache of previously
+ * (GTK+ actually keeps a cache of previously
* created styles, so a new style may not be
* created.)
- *
+ *
* Returns: the resulting style. No refcount is added
* to the returned style, so if you want to save this
* style around, you should add a reference yourself.
+ *
+ * Deprecated:3.0: Use #GtkStyleContext instead
**/
GtkStyle *
gtk_rc_get_style (GtkWidget *widget)
@@ -2082,16 +2090,18 @@ gtk_rc_get_style (GtkWidget *widget)
* |[
* gtk_widget_path (widget, NULL, &path, NULL);
* gtk_widget_class_path (widget, NULL, &class_path, NULL);
- * gtk_rc_get_style_by_paths (gtk_widget_get_settings (widget),
+ * gtk_rc_get_style_by_paths (gtk_widget_get_settings (widget),
* path, class_path,
* G_OBJECT_TYPE (widget));
* ]|
- *
+ *
* Return value: (transfer none): A style created by matching with the
* supplied paths, or %NULL if nothing matching was specified and the
* default style should be used. The returned value is owned by GTK+
* as part of an internal cache, so you must call g_object_ref() on
* the returned value if you want to keep a reference to it.
+ *
+ * Deprecated:3.0: Use #GtkStyleContext instead
**/
GtkStyle *
gtk_rc_get_style_by_paths (GtkSettings *settings,
@@ -2171,6 +2181,11 @@ gtk_rc_get_style_by_paths (GtkSettings *settings,
return NULL;
}
+/**
+ * gtk_rc_scanner_new:
+ *
+ * Deprecated:3.0: Use #GtkCssProvider instead
+ */
GScanner*
gtk_rc_scanner_new (void)
{
@@ -3711,6 +3726,13 @@ gtk_rc_parse_engine (GtkRcContext *context,
return result;
}
+/**
+ * gtk_rc_parse_state:
+ * @scanner:
+ * @state:
+ *
+ * Deprecated:3.0: Use #GtkCssProvider instead
+ */
guint
gtk_rc_parse_state (GScanner *scanner,
GtkStateType *state)
@@ -3762,6 +3784,13 @@ gtk_rc_parse_state (GScanner *scanner,
return G_TOKEN_NONE;
}
+/**
+ * gtk_rc_parse_priority:
+ * @scanner:
+ * @priority:
+ *
+ * Deprecated:3.0: Use #GtkCssProvider instead
+ */
guint
gtk_rc_parse_priority (GScanner *scanner,
GtkPathPriorityType *priority)
@@ -3825,6 +3854,8 @@ gtk_rc_parse_priority (GScanner *scanner,
*
* Returns: %G_TOKEN_NONE if parsing succeeded, otherwise the token
* that was expected but not found
+ *
+ * Deprecated:3.0: Use #GtkCssProvider instead
*/
guint
gtk_rc_parse_color (GScanner *scanner,
@@ -3847,6 +3878,8 @@ gtk_rc_parse_color (GScanner *scanner,
* that was expected but not found
*
* Since: 2.12
+ *
+ * Deprecated:3.0: Use #GtkCssProvider instead
*/
guint
gtk_rc_parse_color_full (GScanner *scanner,