[gtk+/wip/otte/gtk4: 85/118] testsensitive: Use state-flags-changed instead of state-changed



commit e3afa46286ce9ce09d0cdfc1dbac8be0b76709ef
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 4 18:46:39 2016 +0200

    testsensitive: Use state-flags-changed instead of state-changed

 tests/testsensitive.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testsensitive.c b/tests/testsensitive.c
index b7c8f63..7ecaf36 100644
--- a/tests/testsensitive.c
+++ b/tests/testsensitive.c
@@ -7,7 +7,7 @@ set_insensitive (GtkButton *b, GtkWidget *w)
 }
 
 static void
-state_changed (GtkWidget *widget)
+state_flags_changed (GtkWidget *widget)
 {
   GtkStateFlags flags;
   const gchar *sep;
@@ -75,7 +75,7 @@ int main (int argc, char *argv[])
   gtk_widget_set_valign (c, GTK_ALIGN_CENTER);
   gtk_box_pack_start (GTK_BOX (box), c, TRUE, TRUE);
   g_signal_connect (bu, "clicked", G_CALLBACK (set_insensitive), w);
-  g_signal_connect (bu, "state-changed", G_CALLBACK (state_changed), NULL);
+  g_signal_connect (bu, "state-flags-changed", G_CALLBACK (state_flags_changed), NULL);
 
   g_object_bind_property (c, "active", w, "sensitive", G_BINDING_BIDIRECTIONAL);
 


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