Une nouvelle version stable de GTK+ est sortie le 25 Septembre.Au niveau des nouveautés importantes, on peux noter :
- Un nouveau widget GtkInfoBar, qui permet d'afficher un message à l'intérieur d'une fenêtre à la place d'utiliser une boite de dialogue (comme le fait déjà GEdit),
- La possibilité d'afficher des url dans un GtkLabel,
- Refactorisation de la classe GtkEntry pour suivre le pattern MVC,
- GDK a été réécrit pour utiliser les fenêtres côté client : client-side windows.
Le changelog complet pour les plus curieux :
| Code x : | Sélectionner tout |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | GtkInfoBar - A new widget to show a transient 'message area' inside a content pane. The API is similar to GtkDialog and supports theming for different message types (warnings, errors, etc) Changes in GtkBuilder - Scale marks can be specified in builder markup - GtkAssistant action widgets can be added in builder markup Changes in GtkLabel - GtkLabel can show embedded URLs, much like SexyUrlLabel Changes in GtkEntry - GtkEntry has been refactored to follow the model-view pattern, with GtkEntryBuffer as model. One intended use case for this is to support 'secure memory' for password entries Changes in the file chooser - Backup files are hidden by default - GTK+ remembers the sorting state of the file list - File sizes are shown by default - The 'Create Folder' button can be disabled with the the ::create-folders property Changes in printing support - GTK+ supports authentication against CUPS servers - A backend for the PAPI printing system has been added - The file and lpr backends can print multiple pages per sheet - The file backend can produce svg files - GTK+ supports printing an application-defined 'selection' in addition to the usual page ranges - The print dialog can optinally include the page setup controls, avoiding the need for a separate page setup dialog in many situations Changes in theming support - The bullet character used in invisible entries can be set by themes with the ::invisible-char style property - The file chooser can show different icons for xdg user dirs. The icon names are folder-documents, folder-download, folder-music, folder-pictures, folder-publicshare, folder-templates and folder-video - The GtkInfoBar uses symbolic colors for theming its background color depending on the message type. The color names are info_fg_color, info_bg_color, warning_fg_color", warning_bg_color, etc. GDK changes - GDK has been rewritten to use 'client-side windows'. This means that GDK maintains its own window hierarchy and only uses X windows where it is necessary or explicitly requested. Some of the benefits of this change are * Reduced flicker * The ability to do transformed and animated rendering of widgets * Easier embedding of GTK+ widgets, e.g. into Clutter scene graphs See gdk-demo for some simple examples of client-side windows in action. See [url]http://library.gnome.org/devel/gtk/2.18/gtk-migrating-ClientSideWindows.html[/url] for information about possible problems when moving to client-side windows. |
Peut de temps avant, la GLib nous offrait également une nouvelle version, 2.22, sans grand changement :
| Code x : | Sélectionner tout |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | Major new features include: * GArray, GPtrArray, GByteArray, GTree and GMappedFile can be reference counted. * GLib can be forced to reload the XDG user directory mapping. * The GLib mainloop supports per-thread default contexts. * GIO now provides types and methods for IP addresses and UNIX domain socket addresses. * GResolver provides asynchronous and cancellable APIs for resolving hostnames, reverse lookup of IP addresses and resolving SRV records. * Support for network IO has been added to GIO, including low-level socket API and high-level API for network connections and services. * GIOStream and its subclasses have gained support for read-write access. * GIO supports starting and stopping of drives, which can be used in connection with external hard disk enclosures, disk arrays, iSCSI devices, etc. * GIO supports user interaction during unmount and eject operations. * GIO can store and retrieve per-file metadata. |
Vous avez lu gratuitement 865 articles depuis plus d'un an.
Soutenez le club developpez.com en souscrivant un abonnement pour que nous puissions continuer à vous proposer des publications.
Soutenez le club developpez.com en souscrivant un abonnement pour que nous puissions continuer à vous proposer des publications.