[gtk/matthiasc/for-master: 5/16] colorchooser: Bring back gtk_color_chooser_widget_new




commit 93d9a2ceda132537ce6c47eafec6789c4daed2d7
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 13 21:44:50 2020 -0400

    colorchooser: Bring back gtk_color_chooser_widget_new
    
    This was removed by accident in commit f392fbfb6d6f1116728b.

 gtk/gtkcolorchooserwidget.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 4f3b23fac1..6e5fa6281e 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -766,3 +766,19 @@ gtk_color_chooser_widget_iface_init (GtkColorChooserInterface *iface)
   iface->add_palette = gtk_color_chooser_widget_add_palette;
 }
 
+/* Public API {{{1 */
+
+/**
+ * gtk_color_chooser_widget_new:
+ *
+ * Creates a new #GtkColorChooserWidget.
+ *
+ * Returns: a new #GtkColorChooserWidget
+ */
+GtkWidget *
+gtk_color_chooser_widget_new (void)
+{
+  return g_object_new (GTK_TYPE_COLOR_CHOOSER_WIDGET, NULL);
+}
+
+/* vim:set foldmethod=marker: */


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