ਡਿਵੈਲਪਰਾਂ ਲਈ ਨਵਾਂ ਕੀ ਹੈ
The following changes are important for developers using the GNOME 2.24 developer platform. If you're not interested in changes for developers, you can skip forward to ਸ਼ੈਕਸ਼ਨ 5 ― ਮੋਬਾਇਲ 'ਚ ਨਵਾਂ ਕੀ ਹੈ.
- 4.1. GLib/GTK+ 3.0 ਲਈ ਤਿਆਰੀ
- 4.2. GLib 2.18
- 4.3. GTK+ 2.14
- 4.4. ਤੁਰੰਤ ਸੁਨੇਹੇਦਾਰ ਲਾਇਬਰੇਰੀਆਂ
- 4.5. ਡੈਸਕਬਾਰ
4.1. GLib/GTK+ 3.0 ਲਈ ਤਿਆਰੀ
In order to begin preparing developers for GLib and GTK+ 3.0, upcoming releases of both libraries will include flags to enforce stricter compatibility.
GLib, GTK+ and ATK 3.0 will require that only top-level headers (e.g. glib.h, gobject.h, gio.h) are included in applications. This change is important to allow individual headers to be removed, renamed and rearranged without affecting source code compatibility for applications.
To allow developers to test their applications for compatibility now, new compile-time options have been provided: G_DISABLE_SINGLE_INCLUDES for GLib, GTK_DISABLE_SINGLE_INCLUDES for GTK+ and ATK_DISABLE_SINGLE_INCLUDES for ATK.
Simply pass these as compile-time flags when building your application (e.g. -DG_DISABLE_SINGLE_INCLUDES) to ensure that your application is correct.
GLib, GTK+ and associated libraries also provide other compile-time options that you can use to test compatibility with GTK+ 3.0.
You can disable support for deprecated symbols and classes that will be removed in version 3.0 by defining the following when compiling: ATK_DISABLE_DEPRECATED, PANGO_DISABLE_DEPRECATED, G_DISABLE_DEPRECATED, GDK_PIXBUF_DISABLE_DEPRECATED, GDK_DISABLE_DEPRECATED and GTK_DISABLE_DEPRECATED for ATK, Pango, GLib, GdkPixbuf, GDK and GTK+ respectively.
You can test that your program only uses functions that properly support multihead (multiple monitor) systems by defining GDK_MULTIHEAD_SAFE and GTK_MULTIHEAD_SAFE.
4.2. GLib 2.18
ਗਨੋਮ 2.24 ਵਿੱਚ GLib 2.18 ਦੇ ਅਧਾਰ ਉੱਤੇ ਗਨੋਮ ਦਾ ਪਹਿਲਾਂ ਰੀਲਿਜ਼ ਹੈ।
GLib 2.18 features better support for providing context in string translations with C_() and NC_() macros as well as additional API in GIO.
4.3. GTK+ 2.14
ਗਨੋਮ 2.24 ਵਿੱਚ GTK+ 2.14 ਦੇ ਅਧਾਰਿਤ ਉੱਤੇ ਪਹਿਲਾਂ ਗਨੋਮ ਰੀਲਿਜ਼ ਹੈ।
An important change in this version of GTK+ is that all widgets that inherit from GtkAdjustment (e.g. spinbuttons and sliders) now strictly enforce their range as [lower, upper - page size], as per the documentation. If you want to ensure a range of [lower, upper], set page_size to 0.
All versions of Glade (including 3.4.1) currently create GtkSpinButton, GtkHScale and GtkVScale with a page_size of 10 by default. Developers should check any Glade files they have created to ensure the page size is a value that makes sense.
A new class, GtkMountOperation has been provided for passing to g_volume_mount. GtkMountOperation is a GMountOperation that is able to display an authentication dialog to the user if required.
A portable method for opening files and other URIs using the default application is now available using the function gtk_show_uri(), rather than having to depend on libgnome. GDK now provides an implementation of GAppLaunchContext for handling graphical applications (including startup notification and focus stealing prevention), GdkAppLaunchContext.
Also new in GTK+ 2.14 is a GFile-based API for GtkFileChooser and the ability for GtkBuilder to build fragments of an XML tree.
4.4. ਤੁਰੰਤ ਸੁਨੇਹੇਦਾਰ ਲਾਇਬਰੇਰੀਆਂ
Along with its new instant messaging client (see ਸ਼ੈਕਸ਼ਨ 2.1 ― ਸੰਪਰਕ 'ਚ ਰਹੋ), GNOME 2.24 includes the libraries libempathy, libempathy-gtk and telepathy-glib that can be used to integrate instant messaging features into any GNOME application.
4.5. ਡੈਸਕਬਾਰ
The Match interface now includes two new methods: set_snippet and get_snippet. If a snippet is set it will be displayed in a new line underneath the match's get_verb value.
The Action interface has gained a new method get_tooltip. Overriding this method allows a tooltip to be shown when the user hovers the mouse over a match or action.