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 733594 - universal-cp: Avoid deprecated GTK+ widget/property use
universal-cp: Avoid deprecated GTK+ widget/property use
Status: RESOLVED FIXED
Product: gupnp-tools
Classification: Other
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: GUPnP Maintainers
GUPnP Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-23 08:46 UTC by Jussi Kukkonen
Modified: 2019-02-22 05:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
universal-cp: Remove deprecated GTK+ widget/property use (40.96 KB, patch)
2014-07-23 08:46 UTC, Jussi Kukkonen
none Details | Review
universal-cp: Remove deprecated GTK+ widget/property use (41.19 KB, patch)
2014-07-28 12:19 UTC, Jussi Kukkonen
none Details | Review
universal-cp: Workaround for Label alignment issues (4.42 KB, patch)
2014-07-28 12:19 UTC, Jussi Kukkonen
none Details | Review
universal-cp: Workaround for Label alignment issues (4.42 KB, patch)
2014-07-31 15:35 UTC, Jussi Kukkonen
committed Details | Review
universal-cp: Remove deprecated GTK+ widget/property use (43.67 KB, patch)
2014-07-31 15:35 UTC, Jussi Kukkonen
committed Details | Review

Description Jussi Kukkonen 2014-07-23 08:46:21 UTC
This should silence the deprecation warnings for universal-cp for some time.
The UI conversion is not pixel perfect but it's pretty close.
Comment 1 Jussi Kukkonen 2014-07-23 08:46:24 UTC
Created attachment 281465 [details] [review]
universal-cp: Remove deprecated GTK+ widget/property use

Don't use Box, VBox, Hbox or Table: use Grid instead. Don't use
HPaned or VPaned, use Paned instead. Don't use properties in Misc,
but those in Widget.

Stop using stock items.

Remove size groups: Grid should be able to offer everything we need.
Comment 2 Jussi Kukkonen 2014-07-23 09:24:52 UTC
Actually, there is one case of size group usage that I didn't replicate yet: in and out argument entries can be different width (and I think they used to be the same). I can fix that...
Comment 3 Jens Georg 2014-07-23 10:35:48 UTC
Ah, nice. I started that but it looked horrible so I gave up.
Comment 4 Jussi Kukkonen 2014-07-28 12:19:02 UTC
Created attachment 281861 [details] [review]
universal-cp: Remove deprecated GTK+ widget/property use

Don't use Box, VBox, Hbox or Table: use Grid instead. Don't use
HPaned or VPaned, use Paned instead. Don't use properties in Misc,
but those in Widget.

Stop using stock items.
Comment 5 Jussi Kukkonen 2014-07-28 12:19:08 UTC
Created attachment 281862 [details] [review]
universal-cp: Workaround for Label alignment issues

It seems Labels in a size group won't correctly align to start with
GTK+ 3.13. Work around this by adding an extra container around each
label, and adding the containers in the size group instead.
Comment 6 Jussi Kukkonen 2014-07-28 12:26:19 UTC
It's possible that I've missed something and the workaround patch isn't needed --  or that it's a bug that will be fixed. I'll follow up on that when I know more...  so the patches can either go in or they can wait until I get that cleared up.

With GTK master there's still one warning about Misc:xalign usage but I believe that's from GTK itself (GtkMenuItem).
Comment 7 Jussi Kukkonen 2014-07-31 08:16:29 UTC
According to bug 733981, that label alignment issue is in fact a GTK+ problem -- using GtkMisc or the workaround I used is required.

I think these patches are ready to merge.
Comment 8 Jens Georg 2014-07-31 09:04:46 UTC
Do we need to bump the required GTK version in configure? Otherwise go ahead, please :)
Comment 9 Jussi Kukkonen 2014-07-31 15:15:18 UTC
I've not actually compiled it on 3.0, but it should work: Code does not use newer functions/properties and Glade reports no version mismatches with 3.0. 

I noticed one more VBox left in there: I'll remove that and then push.
Comment 10 Jussi Kukkonen 2014-07-31 15:35:04 UTC
The following fixes have been pushed:
4679e71 universal-cp: Workaround for Label alignment issues
80798bd universal-cp: Remove deprecated GTK+ widget/property use
Comment 11 Jussi Kukkonen 2014-07-31 15:35:09 UTC
Created attachment 282167 [details] [review]
universal-cp: Workaround for Label alignment issues

It seems Labels in a size group won't correctly align to start with
GTK+ 3.13. Work around this by adding an extra container around each
label, and adding the containers in the size group instead.
Comment 12 Jussi Kukkonen 2014-07-31 15:35:15 UTC
Created attachment 282168 [details] [review]
universal-cp: Remove deprecated GTK+ widget/property use

Don't use Box, VBox, Hbox or Table: use Grid instead. Don't use
HPaned or VPaned, use Paned instead. Don't use properties in Misc,
but those in Widget.

Stop using stock items.