[gtk+] examples, gtk-demo: Fix copy-pasta in signal name



commit 7f300c9da77e1995ad28aa653ee75f0d5ccc34fe
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Wed Jan 3 09:59:19 2018 +0100

    examples, gtk-demo: Fix copy-pasta in signal name

 demos/gtk-demo/drawingarea.c |    2 +-
 examples/drawing.c           |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c
index 8f15f89..7417862 100644
--- a/demos/gtk-demo/drawingarea.c
+++ b/demos/gtk-demo/drawingarea.c
@@ -250,7 +250,7 @@ do_drawingarea (GtkWidget *do_widget)
 
       g_signal_connect (drag, "drag-begin", G_CALLBACK (drag_begin), da);
       g_signal_connect (drag, "drag-update", G_CALLBACK (drag_update), da);
-      g_signal_connect (drag, "drag-begin", G_CALLBACK (drag_end), da);
+      g_signal_connect (drag, "drag-end", G_CALLBACK (drag_end), da);
     }
 
   if (!gtk_widget_get_visible (window))
diff --git a/examples/drawing.c b/examples/drawing.c
index c1f64b7..1eebb34 100644
--- a/examples/drawing.c
+++ b/examples/drawing.c
@@ -42,8 +42,8 @@ size_allocate_cb (GtkWidget     *widget,
     }
 }
 
-/* Redraw the screen from the surface. Note that the ::draw
- * signal receives a ready-to-be-used cairo_t that is already
+/* Redraw the screen from the surface. Note that the draw
+ * callback receives a ready-to-be-used cairo_t that is already
  * clipped to only draw the exposed areas of the widget
  */
 static void
@@ -164,7 +164,7 @@ activate (GtkApplication *app,
 
   g_signal_connect (drag, "drag-begin", G_CALLBACK (drag_begin), drawing_area);
   g_signal_connect (drag, "drag-update", G_CALLBACK (drag_update), drawing_area);
-  g_signal_connect (drag, "drag-begin", G_CALLBACK (drag_end), drawing_area);
+  g_signal_connect (drag, "drag-end", G_CALLBACK (drag_end), drawing_area);
 
   press = gtk_gesture_multi_press_new (drawing_area);
   gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (press), GDK_BUTTON_SECONDARY);


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