[gtk+/wip/baedert/drawing: 387/396] label: Remove GtkEventBox mention from docs
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 387/396] label: Remove GtkEventBox mention from docs
- Date: Wed, 19 Jul 2017 11:42:55 +0000 (UTC)
commit 294d1193e46139b6f32a1c6e4b4c23de8976dab2
Author: Timm Bäder <mail baedert org>
Date: Sun Jul 16 16:45:36 2017 +0200
label: Remove GtkEventBox mention from docs
Packing the label inside a GtkEventBox is not necessary anymore for it
to receive events.
gtk/gtklabel.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index ab8ce36..41d7c3c 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -5433,10 +5433,7 @@ gtk_label_get_layout (GtkLabel *label)
* Obtains the coordinates where the label will draw the #PangoLayout
* representing the text in the label; useful to convert mouse events
* into coordinates inside the #PangoLayout, e.g. to take some action
- * if some part of the label is clicked. Of course you will need to
- * create a #GtkEventBox to receive the events, and pack the label
- * inside it, since labels are windowless (they return %FALSE from
- * gtk_widget_get_has_window()). Remember
+ * if some part of the label is clicked. Remember
* when using the #PangoLayout functions you need to convert to
* and from pixels using PANGO_PIXELS() or #PANGO_SCALE.
**/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]