summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-06-22 16:31:46 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-06-22 17:03:51 -0400
commit35a88c144008f0ccac87ce85d17e32d76c23250b (patch)
tree043da04397df9d5cac42603eef037b2ad62647f1 /gtk/gtkwidget.c
parentd1f4068b9471184bd431f04b87c3201fd721d898 (diff)
downloadgtk+-35a88c144008f0ccac87ce85d17e32d76c23250b.tar.gz
widget: Rename a function
set_enabled is shorter and more to the point than enabled_changed, now that we no longer have a callback to query the state. Adapt all callers.
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r--gtk/gtkwidget.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 926d61fa00..d1394613f6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -13567,19 +13567,18 @@ gtk_widget_class_install_property_action (GtkWidgetClass *widget_class,
}
/**
- * gtk_widget_action_enabled_changed:
+ * gtk_widget_action_set_enabled:
* @widget: a #GtkWidget
* @action_name: action name, such as "clipboard.paste"
* @enabled: whether the action is now enabled
*
- * Notify when an action installed with
- * gtk_widget_class_install_action() changes its
- * enabled state.
+ * Enable or disable an action installed with
+ * gtk_widget_class_install_action().
*/
void
-gtk_widget_action_enabled_changed (GtkWidget *widget,
- const char *action_name,
- gboolean enabled)
+gtk_widget_action_set_enabled (GtkWidget *widget,
+ const char *action_name,
+ gboolean enabled)
{
GtkActionMuxer *muxer;