[gtk+] gtk+: Fix GI warnings about missing parameters
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk+: Fix GI warnings about missing parameters
- Date: Mon, 17 Oct 2016 14:07:44 +0000 (UTC)
commit 7173df1dd1a8f45c47b75d30bfbfaa67f33d8e9b
Author: Garrett Regier <garrettregier gmail com>
Date: Mon Oct 17 07:02:37 2016 -0700
gtk+: Fix GI warnings about missing parameters
These were removed for GTK+ 4.
gtk/deprecated/gtksymboliccolor.c | 10 +---------
gtk/gtkstylecontext.c | 7 +------
2 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/gtk/deprecated/gtksymboliccolor.c b/gtk/deprecated/gtksymboliccolor.c
index 4190337..c2b9d49 100644
--- a/gtk/deprecated/gtksymboliccolor.c
+++ b/gtk/deprecated/gtksymboliccolor.c
@@ -270,18 +270,10 @@ gtk_symbolic_color_unref (GtkSymbolicColor *color)
/**
* gtk_symbolic_color_resolve:
* @color: a #GtkSymbolicColor
- * @props: (allow-none): #GtkStyleProperties to use when resolving
- * named colors, or %NULL
* @resolved_color: (out): return location for the resolved color
*
* If @color is resolvable, @resolved_color will be filled in
- * with the resolved color, and %TRUE will be returned. Generally,
- * if @color can’t be resolved, it is due to it being defined on
- * top of a named color that doesn’t exist in @props.
- *
- * When @props is %NULL, resolving of named colors will fail, so if
- * your @color is or references such a color, this function will
- * return %FALSE.
+ * with the resolved color, and %TRUE will be returned.
*
* Returns: %TRUE if the color has been resolved
*
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index ecf0eff..07ed5a7 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -741,20 +741,15 @@ gtk_style_context_query_func (guint id,
* gtk_style_context_get_property:
* @context: a #GtkStyleContext
* @property: style property name
- * @state: state to retrieve the property value for
* @value: (out) (transfer full): return location for the style property value
*
- * Gets a style property from @context for the given state.
+ * Gets a style property from @context for the current state.
*
* Note that not all CSS properties that are supported by GTK+ can be
* retrieved in this way, since they may not be representable as #GValue.
* GTK+ defines macros for a number of properties that can be used
* with this function.
*
- * Note that passing a state other than the current state of @context
- * is not recommended unless the style context has been saved with
- * gtk_style_context_save().
- *
* When @value is no longer needed, g_value_unset() must be called
* to free any allocated memory.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]