should build without GTK deprecations

Bug #655628 reported by Sebastien Bacher
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Indicator Applet
Fix Released
Low
Michael Terry
indicator-applet (Ubuntu)
Fix Released
Low
Michael Terry

Bug Description

Binary package hint: indicator-applet

Ubuntu will start using GTK3 in its default installation next cycle, as a first step to be ready for that your sources should build on GTK 2.22 with GTK deprecations disabled which is not the case for indicator-applet

You can set CFLAGS='-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGSEAL_ENABLE -DG_DISABLE_DEPRECATED' to testbuild it.

You can also find documentation on how to port code on http://library.gnome.org/devel/gtk/2.91/gtk-migrating-2-to-3.html

Tags: gnome3-gtk3
Changed in indicator-applet (Ubuntu):
importance: Undecided → Low
tags: added: gnome3-gtk3
Michael Terry (mterry)
Changed in indicator-applet:
assignee: nobody → Michael Terry (mterry)
Michael Terry (mterry)
Changed in indicator-applet:
assignee: Michael Terry (mterry) → nobody
Michael Terry (mterry)
Changed in indicator-applet (Ubuntu):
assignee: nobody → Michael Terry (mterry)
status: New → In Progress
Revision history for this message
Michael Terry (mterry) wrote :

I have a branch for this (linked to this bug), but there was a problem with the hotkey handling. It used some secret attributes of a GtkMenuShell that aren't there with deprecated API disabled. I couldn't figure out how to get the same result using published API (except perhaps to fake a keyboard press?).

 if (!GTK_MENU_SHELL(data)->active) {
  gtk_grab_add (GTK_WIDGET(data));
  GTK_MENU_SHELL(data)->have_grab = TRUE;
  GTK_MENU_SHELL(data)->active = TRUE;
 }

You'll see this in hotkey_filter(). Ted, any ideas on how to do that bit the right way? For now I've commented it out in my branch, but it isn't recommended for merging because of this issue.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Ted, could you reply to the previous comment?

Kalle Valo (kvalo)
Changed in indicator-applet:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Ted Gould (ted) wrote :

So, this bug needs more comments :-)

I'm not sure exactly what to do with that code. It's needed to handle the case where the menu is open and has grabs so that they get closed properly on exit. It'll cause the grabs to remain even when the menus are closed. That's a bad thing.

I think we might need to propose a function in GTK for the menu code to do the proper display (the code was inspired by code in GTK Menu) but I don't believe the function was exposed properly.

Changed in indicator-applet:
status: Triaged → Fix Released
assignee: nobody → Heru Herdianto (herdiantoheru-yahoo)
assignee: Heru Herdianto (herdiantoheru-yahoo) → Michael Terry (mterry)
Changed in indicator-applet (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.