GtkOptionMenu needs replacing with GtkComboBox
Bug #903671 reported by
Alex Valavanis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
John Smith |
Bug Description
There are a few uses of the GtkOptionMenu API, which has been deprecated since gtk 2.4 and is removed in gtk3. This needs to be replaced by the GtkComboBox API.
There is some guidance available at http://
Remaining source files that use GtkOptionMenu:
* widgets/
Changed in inkscape: | |
status: | New → Triaged |
Changed in inkscape: | |
assignee: | nobody → John Smith (john-smithi) |
Changed in inkscape: | |
status: | Triaged → Fix Committed |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Be carefull with the guidance: in the Gnome dev center they said that functions such as :
gtk_combo_ box_new_ text() box_append_ text()
gtk_combo_
(and maybe others)
That are used in the guidance as a replacement of the old way are deprecated since GTK 2.24. We should use a dedicated class : GtkComboBoxText
See http:// developer. gnome.org/ gtk/stable/ GtkComboBox. html#gtk- combo-box- new-text
It's crasy that the same website propose to replace deprecated functions by others deprecated functions!
I've looked at the source files, Inkscape uses mainly GtkOptionMenu (the old way) for combo box that show items with pictures (gradients or stops). So the GtkComboBoxText could be not usefull here.