qulogic/libgnt

Deprecate gnt_boolean_handled_accumulator.
release-2.x.y
2019-04-20, Elliott Sales de Andrade
77ea217eb3b9
Parents 1fecc17b2bb5
Children 1acd4a8e9ed7
Deprecate gnt_boolean_handled_accumulator.

Use g_signal_accumulator_true_handled instead.
  • +8 -1
    gntutils.h
  • +3 -3
    gntwidget.c
  • +3 -3
    gntwm.c
  • --- a/gntutils.h Sat Apr 20 22:51:41 2019 -0400
    +++ b/gntutils.h Sat Apr 20 22:54:00 2019 -0400
    @@ -107,8 +107,15 @@
    *
    * To be used with g_signal_new. Look in the key_pressed signal-definition in
    * gntwidget.c for usage.
    + *
    + * Deprecated: 2.14.0: Use g_signal_accumulator_true_handled() instead.
    */
    -gboolean gnt_boolean_handled_accumulator(GSignalInvocationHint *ihint, GValue *return_accu, const GValue *handler_return, gpointer dummy);
    +#ifndef GNT_DISABLE_DEPRECATED
    +gboolean gnt_boolean_handled_accumulator(GSignalInvocationHint *ihint,
    + GValue *return_accu,
    + const GValue *handler_return,
    + gpointer dummy) G_GNUC_DEPRECATED;
    +#endif
    /**
    * gnt_widget_bindings_view:
    --- a/gntwidget.c Sat Apr 20 22:51:41 2019 -0400
    +++ b/gntwidget.c Sat Apr 20 22:54:00 2019 -0400
    @@ -240,7 +240,7 @@
    G_TYPE_FROM_CLASS(klass),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET(GntWidgetClass, key_pressed),
    - gnt_boolean_handled_accumulator, NULL,
    + g_signal_accumulator_true_handled, NULL,
    gnt_closure_marshal_BOOLEAN__STRING,
    G_TYPE_BOOLEAN, 1, G_TYPE_STRING);
    @@ -249,7 +249,7 @@
    G_TYPE_FROM_CLASS(klass),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET(GntWidgetClass, clicked),
    - gnt_boolean_handled_accumulator, NULL,
    + g_signal_accumulator_true_handled, NULL,
    gnt_closure_marshal_BOOLEAN__INT_INT_INT,
    G_TYPE_BOOLEAN, 3, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT);
    @@ -258,7 +258,7 @@
    G_TYPE_FROM_CLASS(klass),
    G_SIGNAL_RUN_LAST,
    0,
    - gnt_boolean_handled_accumulator, NULL,
    + g_signal_accumulator_true_handled, NULL,
    gnt_closure_marshal_BOOLEAN__VOID,
    G_TYPE_BOOLEAN, 0);
    --- a/gntwm.c Sat Apr 20 22:51:41 2019 -0400
    +++ b/gntwm.c Sat Apr 20 22:54:00 2019 -0400
    @@ -1444,7 +1444,7 @@
    G_TYPE_FROM_CLASS(klass),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET(GntWMClass, window_resize_confirm),
    - gnt_boolean_handled_accumulator, NULL,
    + g_signal_accumulator_true_handled, NULL,
    gnt_closure_marshal_BOOLEAN__POINTER_POINTER_POINTER,
    G_TYPE_BOOLEAN, 3, G_TYPE_POINTER, G_TYPE_POINTER, G_TYPE_POINTER);
    @@ -1453,7 +1453,7 @@
    G_TYPE_FROM_CLASS(klass),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET(GntWMClass, window_move_confirm),
    - gnt_boolean_handled_accumulator, NULL,
    + g_signal_accumulator_true_handled, NULL,
    gnt_closure_marshal_BOOLEAN__POINTER_POINTER_POINTER,
    G_TYPE_BOOLEAN, 3, G_TYPE_POINTER, G_TYPE_POINTER, G_TYPE_POINTER);
    @@ -1496,7 +1496,7 @@
    G_TYPE_FROM_CLASS(klass),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET(GntWMClass, mouse_clicked),
    - gnt_boolean_handled_accumulator, NULL,
    + g_signal_accumulator_true_handled, NULL,
    gnt_closure_marshal_BOOLEAN__INT_INT_INT_POINTER,
    G_TYPE_BOOLEAN, 4, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_POINTER);