]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkstyle.c
wayland: Add another cursor (left-ptr)
[~andy/gtk] / gtk / gtkstyle.c
index 5347119ef05cf3e6e5a5ab64d5192afac74ac7c7..cf88d1d07a601dd8a48a9d9a0f10301ed86d4261 100644 (file)
@@ -822,6 +822,7 @@ _gtk_style_new_for_path (GdkScreen     *screen,
 
   if (screen)
     gtk_style_context_set_screen (context, screen);
+
   gtk_style_context_set_path (context, path);
 
   style = g_object_new (GTK_TYPE_STYLE,
@@ -857,6 +858,16 @@ gtk_style_new (void)
   return style;
 }
 
+/**
+ * gtk_style_has_context:
+ * @style: a #GtkStyle
+ *
+ * Returns whether @style has an associated #GtkStyleContext.
+ *
+ * Returns: %TRUE if @style has a #GtkStyleContext
+ *
+ * Since: 3.0
+ */
 gboolean
 gtk_style_has_context (GtkStyle *style)
 {