After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 730613 - Drop last uses of GtkMisc
Drop last uses of GtkMisc
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-05-23 03:08 UTC by Matthias Clasen
Modified: 2017-01-15 03:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH 2/9] GtkLabel: Drop use of GtkMisc::x/yalign (4.74 KB, patch)
2014-05-23 03:08 UTC, Matthias Clasen
committed Details | Review
[PATCH 3/9] GtkImage: Drop use of GtkMisc::x/yalign (3.52 KB, patch)
2014-05-23 03:09 UTC, Matthias Clasen
committed Details | Review
[PATCH 4/9] GtkAccelLabel: Drop use of GtkMisc (1.21 KB, patch)
2014-05-23 03:10 UTC, Matthias Clasen
committed Details | Review
[PATCH 5/9] GtkAssistant: Drop use of GtkMisc (1.31 KB, patch)
2014-05-23 03:10 UTC, Matthias Clasen
committed Details | Review
[PATCH 6/9] GtkToolButton: Drop use of GtkMisc (3.81 KB, patch)
2014-05-23 03:11 UTC, Matthias Clasen
committed Details | Review
[PATCH 7/9] GtkLabel: Stop deriving from GtkMisc (2.55 KB, patch)
2014-05-23 03:11 UTC, Matthias Clasen
none Details | Review
[PATCH 8/9] GtkImage: Stop deriving from GtkMisc (2.13 KB, patch)
2014-05-23 03:12 UTC, Matthias Clasen
none Details | Review
[PATCH 9/9] GtkButton: No more special treatment for GtkMisc (1.75 KB, patch)
2014-05-23 03:12 UTC, Matthias Clasen
none Details | Review
GtkMisc: Keep gtk_misc_set_alignment working (1.52 KB, patch)
2014-05-23 10:00 UTC, Matthias Clasen
reviewed Details | Review

Description Matthias Clasen 2014-05-23 03:08:54 UTC
Created attachment 277021 [details] [review]
[PATCH 2/9] GtkLabel: Drop use of GtkMisc::x/yalign

The following patches make us stop using GtkMisc altogether.
Comment 1 Matthias Clasen 2014-05-23 03:09:41 UTC
Created attachment 277022 [details] [review]
[PATCH 3/9] GtkImage: Drop use of GtkMisc::x/yalign
Comment 2 Matthias Clasen 2014-05-23 03:10:17 UTC
Created attachment 277023 [details] [review]
[PATCH 4/9] GtkAccelLabel: Drop use of GtkMisc
Comment 3 Matthias Clasen 2014-05-23 03:10:50 UTC
Created attachment 277024 [details] [review]
[PATCH 5/9] GtkAssistant: Drop use of GtkMisc
Comment 4 Matthias Clasen 2014-05-23 03:11:17 UTC
Created attachment 277025 [details] [review]
[PATCH 6/9] GtkToolButton: Drop use of GtkMisc
Comment 5 Matthias Clasen 2014-05-23 03:11:52 UTC
Created attachment 277026 [details] [review]
[PATCH 7/9] GtkLabel: Stop deriving from GtkMisc
Comment 6 Matthias Clasen 2014-05-23 03:12:20 UTC
Created attachment 277027 [details] [review]
[PATCH 8/9] GtkImage: Stop deriving from GtkMisc
Comment 7 Matthias Clasen 2014-05-23 03:12:50 UTC
Created attachment 277028 [details] [review]
[PATCH 9/9] GtkButton: No more special treatment for GtkMisc
Comment 8 Matthias Clasen 2014-05-23 10:00:41 UTC
Created attachment 277040 [details] [review]
GtkMisc: Keep gtk_misc_set_alignment working

Patches 7 and 8 should be deferred until 4.0 when GtkMisc actually disappears. Until then, here is a patch to keep gtk_misc_set_alignment somewhat working until then.
Comment 9 Matthias Clasen 2014-05-24 04:49:57 UTC
Review of attachment 277021 [details] [review]:

.
Comment 10 Robert Ancell 2015-10-21 22:59:17 UTC
Review of attachment 277027 [details] [review]:

There's also the following documentation that should be removed:

 * When handling events on the event box, keep in mind that coordinates
 * in the image may be different from event box coordinates due to
 * the alignment and padding settings on the image (see #GtkMisc).
 * The simplest way to solve this is to set the alignment to 0.0
 * (left/top), and set the padding to zero. Then the origin of
 * the image will be the same as the origin of the event box.
Comment 11 Thierry Vignaud 2016-10-13 14:11:07 UTC
IMHO It's a bit dirty to copy/paste eg: halign_to_float(), valign_to_float() in every widget.
Couldn't those be common internal helpers?
Comment 12 Matthias Clasen 2017-01-15 03:44:17 UTC
all done now, afaics