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 713991 - Remove deprecated GTK widgets
Remove deprecated GTK widgets
Status: RESOLVED FIXED
Product: geary
Classification: Other
Component: client
unspecified
Other All
: High normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-13 08:49 UTC by Jim Nelson
Modified: 2019-01-29 05:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[Patch] Port Gtk.Action to GLib.Action and remove UiManager (81.72 KB, patch)
2017-05-21 09:33 UTC, Niels De Graef
none Details | Review
[Patch v2] Port Gtk.Action to GLib.Action and remove UiManager (82.73 KB, patch)
2017-05-21 13:28 UTC, Niels De Graef
committed Details | Review

Description Charles Lindsay 2013-11-21 20:23:55 UTC


---- Reported by jim@yorba.org 2013-09-13 13:49:00 -0700 ----

Original Redmine bug id: 7485
Original URL: http://redmine.yorba.org/issues/7485
Searchable id: yorba-bug-7485
Original author: Jim Nelson
Original description:

A number of widgets are being deprecated in GTK that directly affect Geary.
Gtk.ActionGroup has been, and we should anticipate deprecation of
Gtk.UIManager and more later.

Replacing all this is a bit of work, but it's the only way to prepare Geary to
be ready for GTK 4.

The completion of this ticket should include removing the "--enable-
deprecations" flag we currently use with valac.

Related issues:
related to geary - 7457: Deprecations in latest Vala 0.21.2 (Fixed)



---- Additional Comments From geary-maint@gnome.bugs 2013-11-14 17:16:00 -0800 ----

### History

####

#1

Updated by Jim Nelson 2 months ago

  * **Description** updated (diff)

####

#2

Updated by Jim Nelson 7 days ago

  * **Target version** deleted (<strike>_0.5.0_</strike>)



--- Bug imported by chaz@yorba.org 2013-11-21 20:24 UTC  ---

This bug was previously known as _bug_ 7485 at http://redmine.yorba.org/show_bug.cgi?id=7485

Unknown version " in product geary. 
   Setting version to "!unspecified".
Unknown milestone "unknown in product geary. 
   Setting to default milestone for this product, "---".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.
Resolution set on an open status.
   Dropping resolution 

Comment 1 Niels De Graef 2017-05-21 09:33:19 UTC
Created attachment 352259 [details] [review]
[Patch] Port Gtk.Action to GLib.Action and remove UiManager

Got really annoyed with the Gtk.Actions in the GearyController (and were in my way as well for the action needed to implement GNotifications), so I got rid of them and ported them to GAction's. That led to a lot of code being able to be deleted (and getting rid of Gtk.UiManager), which led me to post the patch to this bug.

Some remarks of my own (read the commit message for most of the info):
* There is now an extra action ACTION_MARK_AS_NOT_SPAM. Normally, one would give ACTION_MARK_AS_SPAM a boolean state, but that give an ugly, unavoidable checkbox in the mark menu.
* Porting the keybindings to CSS should not be too much a problem, which is good news for the keybindings-related bugs
* I'm not really sure how to handle the Gtk.MenuButtons for the move & copy menu more properly, since setting their action_name property doesn't seem to make them open their popover.
Comment 2 Niels De Graef 2017-05-21 13:28:16 UTC
Created attachment 352273 [details] [review]
[Patch v2] Port Gtk.Action to GLib.Action and remove UiManager

Same patch, but this time added the necessary lines to POTFILES.in.
Comment 3 Michael Gratton 2017-10-20 01:19:53 UTC
Review of attachment 352273 [details] [review]:

Looks good! Pushed to master as commit 1dddceb.
Comment 4 Michael Gratton 2019-01-29 05:33:47 UTC
This all landed a long time ago.