GTK+ 2.18 est disponible
Découvrez les nouveautés de cette bibliothèque graphique multiplateformes

Le , par gege2061, Rédacteur
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 
http://library.gnome.org/devel/gtk/2...deWindows.html 
   for information about possible problems when moving to 
   client-side windows.

Ce devrait être l'une des dernières versions avec la prochaine version majeur 3.0. Une conférence via IRC étant prévue pour Mardi prochain (20h00 UTC) pour discuter, entre autre, de la branche 2.90 : GTK+ Meetings Space.

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 aimé cette actualité ? Alors partagez-la avec vos amis en cliquant sur les boutons ci-dessous :


 Poster une réponse

Avatar de gege2061 gege2061 - Rédacteur https://www.developpez.com
le 02/10/2009 à 15:34
A noter un petit soucis sous Windows, selon le thème utilisé, vous pouvez rencontrer des problèmes de rafraichissement de votre applications.
Offres d'emploi IT
Dev. linux avec composantes desktop et sécurité - H/F
Preevio - Ile de France - Paris (75000)
Développeur .net
HUMANLOG - Provence Alpes Côte d'Azur - Sophia Antipolis
Traffic & customer success manager H/F
EXTERNATIC - Pays de la Loire - Nantes (44000)

Voir plus d'offres Voir la carte des offres IT
Contacter le responsable de la rubrique GTK+