[gtk/widget-class-actions: 21/22] color chooser: Adapt
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/widget-class-actions: 21/22] color chooser: Adapt
- Date: Tue, 18 Jun 2019 11:34:58 +0000 (UTC)
commit 492fe8467e534085b8495436561eec4501b1c784
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 18 11:30:21 2019 +0000
color chooser: Adapt
gtk/gtkcolorchooserwidget.c | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 77551490d2..08cc503199 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -521,18 +521,6 @@ gtk_color_chooser_widget_activate_color_select (GtkWidget *widget,
_gtk_color_chooser_color_activated (GTK_COLOR_CHOOSER (cc), &color);
}
-static void
-gtk_color_chooser_widget_query_action (GtkWidget *widget,
- const char *name,
- gboolean *enabled,
- const GVariantType **parameter_type)
-{
- if (enabled)
- *enabled = TRUE;
- if (parameter_type)
- *parameter_type = G_VARIANT_TYPE ("(dddd)");
-}
-
static void
gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
{
@@ -727,10 +715,10 @@ gtk_color_chooser_widget_class_init (GtkColorChooserWidgetClass *class)
gtk_widget_class_install_action (GTK_WIDGET_CLASS (class), "color.select",
gtk_color_chooser_widget_activate_color_select,
- gtk_color_chooser_widget_query_action);
+ "(dddd)");
gtk_widget_class_install_action (GTK_WIDGET_CLASS (class), "color.customize",
gtk_color_chooser_widget_activate_color_customize,
- gtk_color_chooser_widget_query_action);
+ "(dddd)");
}
/* GtkColorChooser implementation {{{1 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]