[gtk/overlay-cleanup] gtk-demo: Use gtk_widget_set_can_pick
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/overlay-cleanup] gtk-demo: Use gtk_widget_set_can_pick
- Date: Fri, 22 Feb 2019 02:59:08 +0000 (UTC)
commit f202707210f7d329287bc828edacc0ed437ec654
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 21 21:55:56 2019 -0500
gtk-demo: Use gtk_widget_set_can_pick
Use gtk_widget_set_can_pick instead of
overlay-specific functions with the same purpose.
demos/gtk-demo/overlay.c | 2 +-
demos/gtk-demo/overlay2.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/overlay.c b/demos/gtk-demo/overlay.c
index e396f8e54e..cc6551b98c 100644
--- a/demos/gtk-demo/overlay.c
+++ b/demos/gtk-demo/overlay.c
@@ -57,7 +57,7 @@ do_overlay (GtkWidget *do_widget)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), vbox);
- gtk_overlay_set_overlay_pass_through (GTK_OVERLAY (overlay), vbox, TRUE);
+ gtk_widget_set_can_pick (vbox, FALSE);
gtk_widget_set_halign (vbox, GTK_ALIGN_CENTER);
gtk_widget_set_valign (vbox, GTK_ALIGN_CENTER);
diff --git a/demos/gtk-demo/overlay2.c b/demos/gtk-demo/overlay2.c
index 0145d4a740..67c72a0a2c 100644
--- a/demos/gtk-demo/overlay2.c
+++ b/demos/gtk-demo/overlay2.c
@@ -66,13 +66,13 @@ do_overlay2 (GtkWidget *do_widget)
image = gtk_picture_new_for_resource ("/overlay2/decor1.png");
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), image);
- gtk_overlay_set_overlay_pass_through (GTK_OVERLAY (overlay), image, TRUE);
+ gtk_widget_set_can_pick (image, FALSE);
gtk_widget_set_halign (image, GTK_ALIGN_START);
gtk_widget_set_valign (image, GTK_ALIGN_START);
image = gtk_picture_new_for_resource ("/overlay2/decor2.png");
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), image);
- gtk_overlay_set_overlay_pass_through (GTK_OVERLAY (overlay), image, TRUE);
+ gtk_widget_set_can_pick (image, FALSE);
gtk_widget_set_halign (image, GTK_ALIGN_END);
gtk_widget_set_valign (image, GTK_ALIGN_END);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]