Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
releng:4.14:roadmap:deprecated-widgets [2015/03/15 21:19] bluesabrereleng:4.14:roadmap:deprecated-widgets [2015/05/26 00:17] (current) – [New Widgets in Gtk3 that we might want to use] ochosi
Line 10: Line 10:
 ==== Deprecations until Gtk3.14 ==== ==== Deprecations until Gtk3.14 ====
  
-GTK_STOCK: Use normal translatable strings and icons instead.+  * GTK_STOCK: Use normal translatable strings and icons instead
 +  * Starting with gtk+-3.10 (by this [[https://git.gnome.org/browse/gtk+/commit/?id=2d79334bb069224966b3dcd8456967c9800e8fd0|commit]]), menu accelerators can no longer be changed with gtk-can-change-accels. Possible alternatives yet to be considered: Reimplement that code in custom GtkImageMenuItem, or use a separate dialog like other apps do (using [[https://developer.gnome.org/gtk3/stable/GtkCellRendererAccel.html|GtkCellRendererAccel]] and [[https://developer.gnome.org/gtk3/stable/gtk3-Accelerator-Maps.html|gtk3-Accelerator-Maps]]). This especially affects thunar which uses this functionality to assign shortcuts to custom actions. If we only want to support this and not editing all other accels, it would be enough to provide a shortcut assign button in the custom actions configuration dialog.
  
 ^ Old Widget ^ New Widget ^ ^ Old Widget ^ New Widget ^
-| GtkAlignment | None. Use padding and margin in GtkWidget |+| GtkAlignment | None. Use padding and margin in GtkWidget (e.g. GtkBox with margin-start) |
 | GtkHBox | GtkBox | | GtkHBox | GtkBox |
 +| GtkHButtonBox | GtkButtonBox (might be deprecated in one of the next releases) | 
 | GtkHScale | GtkScale | | GtkHScale | GtkScale |
 | GtkImageMenuItem | GtkMenuItem, packed with GtkBox that holds GtkImage and GtkLabel | | GtkImageMenuItem | GtkMenuItem, packed with GtkBox that holds GtkImage and GtkLabel |
Line 26: Line 28:
   * [[https://developer.gnome.org/gtk3/stable/GtkStack.html|GtkStack]] (as replacement for GtkNotebook in some contexts)   * [[https://developer.gnome.org/gtk3/stable/GtkStack.html|GtkStack]] (as replacement for GtkNotebook in some contexts)
   * GtkSwitch (instead of GtkCheckButton in some cases)   * GtkSwitch (instead of GtkCheckButton in some cases)
 +  * [[https://developer.gnome.org/gtk3/stable/GtkPopover.html|GtkPopover]] for simple single-button menus