]> Pileus Git - ~andy/gtk/blob - ChangeLog
set the maximum of the "year" property to G_MAXINT >> 8 instead of
[~andy/gtk] / ChangeLog
1 2008-06-18  Michael Natterer  <mitch@imendio.com>
2
3         * gtk/gtkcalendar.c: set the maximum of the "year" property to
4         G_MAXINT >> 8 instead of G_MAXINT to fix overflows in internal
5         calculations which in turn caused writing beyond the boundaries of
6         the calendar->day_month[] and day[] arrays which in turn caused a
7         SEGV. This limits the lifetime of GTK+ to the year 8,388,608 ;)
8
9 2008-06-18  Michael Natterer  <mitch@imendio.com>
10
11         * tests/Makefile.am
12         * tests/autotestfilechooser.c
13         * tests/buildertest.c
14         * tests/defaultvaluetest.c
15         * tests/floatingtest.c
16         * tests/objecttests.c
17         * tests/pixbuf-init.c
18         * tests/textbuffertest.c: remove unit tests here...
19
20         * gtk/tests/Makefile.am
21         * gtk/tests/builder.c
22         * gtk/tests/defaultvalue.c
23         * gtk/tests/filechooser.c
24         * gtk/tests/floating.c
25         * gtk/tests/object.c
26         * gtk/tests/pixbuf-init.c
27         * gtk/tests/textbuffer.c: ...and add them here.
28
29 2008-06-18  Michael Natterer  <mitch@imendio.com>
30
31         * gdk/gdk.h: deprecate GdkDestroyNotify.
32
33         * gdk/gdkevents.c
34         * gdk/gdktypes.h
35         * gdk/x11/gdkevents-x11.c
36         * gtk/gtkmain.c: s/GdkDestroyNotify/GDestroyNotify/g.
37
38 2008-06-18  Michael Natterer  <mitch@imendio.com>
39
40         * gtk/gtktypeutils.h: deprecate GtkDestroyNotify.
41
42         * gtk/gtkactiongroup.[ch]
43         * gtk/gtkcombobox.[ch]
44         * gtk/gtkcontainer.[ch]
45         * gtk/gtkliststore.[ch]
46         * gtk/gtkmain.[ch]
47         * gtk/gtkmenu.c
48         * gtk/gtkstock.[ch]
49         * gtk/gtktreedatalist.[ch]
50         * gtk/gtktreemodelfilter.[ch]
51         * gtk/gtktreemodelsort.[ch]
52         * gtk/gtktreeprivate.h
53         * gtk/gtktreeselection.[ch]
54         * gtk/gtktreesortable.[ch]
55         * gtk/gtktreestore.[ch]
56         * gtk/gtktreeview.[ch]
57         * gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g.
58
59 2008-06-18  Michael Natterer  <mitch@imendio.com>
60
61         * tests/testgtk.c: some more undeprecation.
62
63 2008-06-18  Michael Natterer  <mitch@imendio.com>
64
65         * gtk/gtktypeutils.h: deprecate GtkType, GtkSignalFunc and
66         GTK_SIGNAL_FUNC().
67
68         (struct GtkArg): s/GtkType/GType/ and s/GtkSignalFunc/GCallback/
69
70 2008-06-18  Michael Natterer  <mitch@imendio.com>
71
72         * gtk/gtktypeutils.[ch]: deprecate gtk_type_class().
73
74         * gtk/gtk.symbols: changed accordingly.
75
76         * gtk/gtksettings.c (gtk_settings_install_property)
77         (gtk_settings_install_property_parser): get rid of using
78         gtk_type_class() by keeping a static reference to GtkSettingsClass
79         around in both functions and passing that pointer on to
80         settings_install_property_parser().
81
82         * tests/testgtk.c: use g_type_class_ref()/unref() instead of
83         gtk_type_class().
84
85         * gtk/gtkobject.c: #undef GTK_DISABLE_DEPRECATED around including
86         gtktypeutils.h.
87
88 2008-06-17  Johan Dahlin  <jdahlin@async.com.br>
89
90         * gtk/gtkstyle.c: Add deprecated version
91         and change the deprecation markup used by ref/unref 
92
93 2008-06-17  Johan Dahlin  <jdahlin@async.com.br>
94
95         * gtk/gtkwidget.c: 
96         Add deprecated versions and fixup markup.
97
98 2008-06-17  Johan Dahlin  <jdahlin@async.com.br>
99
100         * gtk/gtkaboutdialog.c:
101         * gtk/gtkbutton.c (gtk_button_class_init):
102         Don't markup deprecated in italics.
103
104 2008-06-18  Carlos Garnacho  <carlos@imendio.com>
105
106         * gtk/gtkfilesystem.[ch]: Remove GtkFileSystemError, use
107         GtkFileChooserError instead. (#538378, patch by Matthias Clasen)
108
109 2008-06-17  Michael Natterer  <mitch@imendio.com>
110
111         * examples/gtkdial/gtkdial.[ch]: undeprecate.
112
113 2008-06-17  Michael Natterer  <mitch@imendio.com>
114
115         * gtk/gtkobject.c: remove bogus extern declaration of non-existing
116         function gtk_object_init_type().
117
118 2008-06-17  Michael Natterer  <mitch@imendio.com>
119
120         * gtk/gtkbindings.c (gtk_binding_entry_add_signal):
121         * gtk/gtktoolbutton.c (gtk_tool_button_get_type): 
122         * examples/gtkdial/gtkdial.h (gtk_dial_get_type): 
123         s/GtkType/GType/
124
125 2008-06-17  Tor Lillqvist  <tml@novell.com>
126
127         * gtk/gtknotebook.c: Need to do the GTK_DISABLE_DEPRECATED
128         #undef/#define dance here, too, because
129         gtk_notebook_set_group_id() is deprecated but used here before it
130         is defined, and gcc complains about conflicting type from the
131         implicit int declaration when it sees the actual void definition.
132
133         * modules/input/gtkimcontextime.h: Don't use the deprecated GTK_*
134         GtkType macros.
135
136 2008-06-17  Michael Natterer  <mitch@imendio.com>
137
138         * gtk/Makefile.am: build with GTK_DISABLE_DEPRECATED.
139
140         * gtk/gtkclist.c
141         * gtk/gtkcombo.c
142         * gtk/gtkctree.c
143         * gtk/gtklist.c
144         * gtk/gtklistitem.c
145         * gtk/gtkoldeditable.c
146         * gtk/gtkpixmap.c
147         * gtk/gtktext.c
148         * gtk/gtktipsquery.c
149         * gtk/gtktree.c
150         * gtk/gtktreeitem.c: whenever we #undef GTK_DISABLE_DEPRECATED and
151         actually use deprecated symbols (not just types or macros),
152         #define it again before #include "gtkalias.h" so the symbols match
153         and the beast links.
154
155 2008-06-17  Paolo Borelli  <pborelli@katamail.com>
156
157         * gtk/tests/recentmanager.c: more tests for GtkRecentManager.
158
159 2008-06-17  Michael Natterer  <mitch@imendio.com>
160
161         * modules/input/gtkimcontextmultipress.h
162         * modules/input/gtkimcontextthai.h
163         * modules/input/gtkimcontextxim.h: use G_TYPE instead of GTK_CHECK
164         type checking macros.
165
166 2008-06-17  Michael Natterer  <mitch@imendio.com>
167
168         * gtk/gtktypeutils.h: really move the GtkType typedef to an
169         undeprecated section.
170
171 2008-06-17  Michael Natterer  <mitch@imendio.com>
172
173         * gtk/gtktypeutils.h: deprecate GTK_CHECK_CAST, GTK_CHECK_CLASS_CAST,
174         GTK_CHECK_GET_CLASS, GTK_CHECK_TYPE and GTK_CHECK_CLASS_TYPE.
175         Move the GtkType typedef to an undeprecated section.
176
177 2008-06-17  Michael Natterer  <mitch@imendio.com>
178
179         * gtk/gtkprogress.h: use G_TYPE macros for type checking instead
180         of GTK_CHECK ones because it's the parent class of an undeprecated
181         class and the GTK_CHECK stuff will soon be deprecated.
182
183 2008-06-17  Michael Natterer  <mitch@imendio.com>
184
185         * gtk/gtkfilesel.c
186         * gtk/gtkinputdialog.c
187         * gtk/gtkmenutoolbutton.c
188         * gtk/gtkoptionmenu.c
189         * gtk/gtktoolitem.c
190         * gtk/gtktooltips.c: add or move around
191         #undef GTK_DISABLE_DEPRECATED so it's possible to build without
192         deprecated stuff again (with the minor glitch that it doesn't
193         link ;) but at least it's a tool to keep the code clean).
194
195 2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>
196
197         * gtk/gtkrecentmanager.c:
198         (gtk_recent_manager_remove_item): Fix dumb typo in the previous
199         commit.
200
201 2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>
202
203         * gtk/gtkrecentmanager.c:
204         (gtk_recent_manager_remove_item),
205         (gtk_recent_manager_move_item): Increase the consistency of the
206         errors returned by GtkRecentManager. (Paolo Borelli)
207
208 2008-06-17  Paolo Borelli  <pborelli@katamail.com>
209
210         * gtk/tests/recentmanager.c: add some unit tests for GtkRecentManager.
211
212 2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>
213
214         * gtk/gtkrecentmanager.c:
215         (gtk_recent_manager_remove_item): Consistently use the same
216         error when removing a URI from an empty GtkRecentManager.
217
218 2008-06-17  Michael Natterer  <mitch@imendio.com>
219
220         * gtk/gtkfilechooserdefault.c: remove static integer variables
221         which hold the number of members in GtkTargetEntry arrays and use
222         G_N_ELEMENTS() directly instead.
223
224 2008-06-17  Michael Natterer  <mitch@imendio.com>
225
226         * gtk/gtk.symbols: move some deprecated symbols into
227         #ifndef GTK_DISABLE_DEPRECATED.
228
229 2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>
230
231         * gtk/gtkfilechooserdefault.c:
232         (gtk_file_chooser_default_init),
233         (gtk_file_chooser_default_constructor),
234         (gtk_file_chooser_default_screen_changed),
235         (recent_start_loading): Remove the GtkRecentManager screen
236         dance, as it has been deprecated since 2.12. Now we get the
237         GtkRecentManager singleton whewn we create the FileChooserDefault
238         instance. (Michael Natterer)
239
240 2008-06-17  Michael Natterer  <mitch@imendio.com>
241
242         * gtk/gtkoptionmenu.c (gtk_option_menu_position): cast menu's
243         toplevel to GtkWindow when passing to gtk_window_set_type_hint().
244
245 2008-06-17  Michael Natterer  <mitch@imendio.com>
246
247         * gtk/gtktestutils.c: #undef GTK_DISABLE_DEPRECATED, clean up
248         includes a bit.
249
250         * gtk/gtkuimanager.c: #include "gtkwindow.h", it was only pulled
251         in via deprecated headers.
252
253 2008-06-16  Matthias Clasen  <mclasen@redhat.com>
254
255         Bug 508751 – gnome-terminal crashed with SIGSEGV after keypress
256
257         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): Protect
258         against XKB being stupid. Reported by Pedro Villavicencio.
259
260 2008-06-17  Michael Natterer  <mitch@imendio.com>
261
262         * gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref()
263         and unref() instead of the deprecated gtk_widget_ref() and unref().
264
265 2008-06-16  Michael Natterer  <mitch@imendio.com>
266
267         * gtk/gtkentry.c: removed function drag_begin_cb(), which was in
268         svn since 2.8 but was never used.
269
270 2008-06-16  Michael Natterer  <mitch@imendio.com>
271
272         * gtk/gtkbindings.c (_gtk_binding_entry_add_signall): use
273         gtk_binding_entry_clear() instead of gtk_binding_entry_add()
274         (the former is deprecated and #defined to gtk_binding_entry_clear)
275
276 2008-06-16  Michael Natterer  <mitch@imendio.com>
277
278         * gtk/gtkprintoperation-unix.c: don't include the deprecated (and
279         unused) "gtkmarshal.h".
280
281 2008-06-16  Behdad Esfahbod  <behdad@gnome.org>
282
283         Bug 538182 – pango_cairo_context_update_layout is not noop after
284         gtk_widget_create_pango_layout
285
286         * gtk/gtksettings.c (settings_update_font_options): Make sure all
287         font option fields are set to non-DEFAULT values.
288
289 2008-06-16  Michael Natterer  <mitch@imendio.com>
290
291         * gtk/gtkfontsel.c
292         * gtk/gtkrc.c
293         * gtk/gtkstyle.c
294         * gtk/gtkwidget.c: use g_object_unref() instead of the deprecated
295         gtk_rc_style_unref().
296
297 2008-06-16  Michael Natterer  <mitch@imendio.com>
298
299         * gtk/gtkcombobox.c (gtk_combo_box_class_init): use
300         _gtk_marshal_BOOLEAN__VOID instead of the deprecated
301         gtk_marshal_BOOLEAN__VOID.
302
303 2008-06-16  Michael Natterer  <mitch@imendio.com>
304
305         * gtk/gtkcellrendereraccel.h
306         * gtk/gtkiconview.h
307         * gtk/gtkobject.h: use G_TYPE macros instead of the old GTK_CHECK
308         macros for type checking.
309
310         (gtk_object_get_type): change prototype to return GType instead of
311         GtkType.
312
313 2008-06-16  Matthias Clasen  <mclasen@redhat.com>
314
315         * gtk/Makefile.am: Make folder, user-home and user-desktop links 
316         to gtk-directory in the builtin icon theme, so that we can
317         use these icon names without risk of ending up without an icon.
318
319 2008-06-16  Tor Lillqvist  <tml@novell.com>
320
321         Bug 538362 - Get Win32 icons back in the file chooser
322
323         * gtk/gtkicontheme.c (choose_icon): Check if the icon name is a
324         reference to an icon resource in a DLL or .EXE in the same format
325         as the DefaultIcon strings in the Registry. In that case, extract
326         the icon and convert to a GdkPixbuf. Patch by Hans Breuer. This
327         code has to be in sync with the corresponding code in
328         glib/gio/gcontenttype.c.
329
330 2008-06-16  Matthias Clasen  <mclasen@redhat.com>
331
332         * gtk/stock-icons/24/audio-volume*: Add icons used by GtkVolumeButton
333         to the builtin icon theme, to avoid showing broken images when
334         there is no icon theme around.  The new icons are thanks to
335         Lapo Calamandrei.
336
337 2008-06-16  Michael Natterer  <mitch@imendio.com>
338
339         * gtk/gtkfilechooserprivate.h: remove GtkTooltips member from the
340         GtkFileChooserDefault struct.
341
342         * gtk/gtkfilechooserdefault.c: don't allocate and free the
343         GtkTooltips.
344
345 2008-06-16  Carlos Garnacho  <carlos@imendio.com>
346
347         Bug 538519 – GtkCellRendererPixbuf doesn't allow unsetting the icon
348         anymore
349
350         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
351         Allow again setting any of the properties to render an image back to
352         NULL.
353
354 2008-06-15  Matthias Clasen  <mclasen@redhat.com>
355
356         * gtk/gtkimage.c: When pixel-size is specified, use
357         GTK_ICON_LOOKUP_FORCE_SIZE when loading themed icons.
358
359 2008-06-15  Carlos Garnacho  <carlos@imendio.com>
360
361         * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Return full 
362         path here as expected, not just the basename.
363
364         * gtk/gtkfilechooserdefault.c
365         (gtk_file_chooser_default_update_current_folder): Ensure that we keep
366         a reference to file, since it can be destroyed when switching back to
367         browse mode.
368
369         * gtk/gtkfilesystem.c (get_icon_for_special_directory): Removed, home
370         and desktop directories are dealt by the filechooser as normal files,
371         not volumes, so the icon for these is handled directly by GIO.
372         (_gtk_file_system_volume_render_icon): Update caller.
373
374 2008-06-15  Matthias Clasen  <mclasen@redhat.com>
375
376         * gtk/gtkcellrendererpixbuf.c: Add a gicon property.
377
378 2008-06-14  Cody Russell  <bratsche@gnome.org>
379
380         * gdk/win32/gdkselection-win32.c (gdk_win32_selection_add_targets):
381
382         Initialize hwnd to NULL.  This fixes OpenClipboard() failure and,
383         according to MSDN docs, associates the open clipboard with the
384         current task.  (#378158, reported by Andreas Köhler)
385
386 2008-06-13  Matthias Clasen  <mclasen@redhat.com>
387
388         * configure.in: Bump version
389
390         * === Released 2.13.3 ===
391
392 2008-06-13  Matthias Clasen  <mclasen@redhat.com>
393
394         * gtk/gtkaccelgroup.c: Add some docs
395
396         * gdk/gdkwindow.c: Fix doc typos
397
398 2008-06-13  Matthias Clasen  <mclasen@redhat.com>
399
400         * gtk/gtkfilesystem.c: Avoid PLT entries by including
401         gtkalias.h
402
403 2008-06-13  Matthias Clasen  <mclasen@redhat.com>
404
405         * gtk/gtkfilechooserbutton.c:
406         * gtk/gtkfilechooserdefault.c:
407         * gtk/gtkfilechooserentry.c:
408         * gtk/gtkfilesystem.c:
409         * gtk/gtkfilesystem.h:
410         * gtk/gtkfilesystemmodel.c:
411         * gtk/gtkpathbar.c: Really make GtkFileSystem private
412         by _-prefixing all functions.
413
414 2008-06-13  Matthias Clasen  <mclasen@redhat.com>
415
416         * docs/RELEASE-HOWTO: Updates
417         * INSTALL.in: Bump version
418
419 2008-06-13  Matthias Clasen  <mclasen@redhat.com>
420
421         * NEWS: Updates
422
423 2008-06-13  Michael Natterer  <mitch@imendio.com>
424
425         * gtk/gtkcellrendereraccel.h
426         * gtk/gtkfilechooser.h
427         * gtk/gtkfilechooserdialog.h
428         * gtk/gtkfilechooserwidget.h
429         * gtk/gtkmenutoolbutton.h
430         * gtk/gtkpagesetup.h
431         * gtk/gtkpapersize.h
432         * gtk/gtkprintcontext.h
433         * gtk/gtkprintoperation.h
434         * gtk/gtkprintoperationpreview.h
435         * gtk/gtkprintsettings.h
436         * gtk/gtkradiotoolbutton.h
437         * gtk/gtkrecentchooser.h
438         * gtk/gtkrecentchooserdialog.h
439         * gtk/gtkrecentchoosermenu.h
440         * gtk/gtkrecentchooserwidget.h
441         * gtk/gtkseparatortoolitem.h
442         * gtk/gtkshow.h
443         * gtk/gtktoggletoolbutton.h
444         * gtk/gtktoolbar.h
445         * gtk/gtktoolbutton.h
446         * gtk/gtktooltip.h: #include <gtk/gtkfoo.h> instead of
447         "gtk/gtkfoo.h" or even just "gtkfoo.h" in public headers.
448
449 2008-06-13  Michael Natterer  <mitch@imendio.com>
450
451         * gtk/gtktexttagtable.h: remove double inclusion of
452         <gtk/gtktexttag.h>.
453
454 2008-06-13  Michael Natterer  <mitch@imendio.com>
455
456         * gtk/gtkaction.c (gtk_action_set_short_label): change type of
457         local "image" variable from GtkImage to GtkWidget to fix warning.
458
459 2008-06-13  Michael Natterer  <mitch@imendio.com>
460
461         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): cast menu's
462         toplevel to GtkWindow when passing to gtk_window_set_type_hint().
463
464 2008-06-13  Michael Natterer  <mitch@imendio.com>
465
466         * gtk/gtkuimanager.c (start_element_handler): silently skip
467         unknown attributes instead of bailing out with an error in order
468         to be compatible with possible future attribute names.
469
470         This is related to the discussion in bug #516425 but actually
471         needed for any kind of XML format extension.
472
473 2008-05-23  Hans Breuer  <hans@breuer.org>
474
475         * gtk/gtkprintoperation.c : check surface status after ceating a pdf.
476         Avoids crashing when the target can not be written, bug #537685
477
478         * gdk/win32/gdkdisplay-win32.c : runtime linking of ProcessIdToSessionId
479
480         * gtk/gtkfilesystem.c : variadic macros are not supported with c89 and
481         it was not needed here anyway.
482
483 2008-06-13 Matthias Clasen  <mclasen@redhat.com>
484
485         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix frame size allocation.
486         Patch by Jan Arne Peterson
487
488 2008-06-12  Matthias Clasen  <mclasen@redhat.com>
489
490         Bug 537985 – gtk_init_with_args() doesn't open a display after
491         gtk_parse_args()
492
493         * gtk/gtkmain.c (gtk_init_with_args): Open the default display
494         even when gtk_parse_args() has already been called.
495         Patch by Mathias Hasselmann
496
497 2008-06-12  Matthias Clasen  <mclasen@redhat.com>
498
499         Bug 524222 – GtkToolbar with mix of buttons with and without 
500         icons looks "bad"
501
502         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents):
503         Improve appearance of "both vertical" mode toolbuttons.
504         Patch by Peter Johanson
505
506 2008-06-12  Matthias Clasen  <mclasen@redhat.com>
507
508         Bug 519092 – Add accessibility support to GtkVolumeButton
509
510         * gtk/gtkvolumebutton.c: Set accessibility descriptions.
511         Patch by Jonh Wendell
512
513 2008-06-12  Matthias Clasen  <mclasen@redhat.com>
514
515         Bug 517706 – Connecting GtkButton with "use-stock" == FALSE to a
516         GtkAction has problems
517         Patch by Peter Johanson
518
519         * gtk/gtkaction.c (connect_proxy): Set the image of a button
520         proxy to the "icon-name" property.
521
522         (gtk_action_set_short_label):  If the "image" property is set 
523         on the button proxy, also tries to set the "label" property on 
524         the GtkButton.
525
526 2008-06-12  Michael Natterer  <mitch@imendio.com>
527
528         * gtk/gtkmain.c
529         * gtk/gtktrayicon-x11.c: don't #include <libintl.h>, it's pulled
530         in via "gtkintl.h" from <glib/gi18n-lib.h>.
531
532 2008-06-12  Matthias Clasen  <mclasen@redhat.com>
533
534         RH bug 248245 and 449379: cups client printing from gnome
535         applications fail
536
537         * modules/printbackends/cups/gtkprintbackendcups.c: Really fix
538         printer URI construction. Patch by Marek Kasik
539         
540 2008-06-12  Michael Natterer  <mitch@imendio.com>
541
542         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
543         limit the number of displayed items by the actual screen height
544         instead of some arbitrary value (Bug #408154, Xan Lopez and
545         Christian Dywan).
546
547 2008-06-11  Behdad Esfahbod  <behdad@gnome.org>
548
549         Bug 503071 – Application direction changes to right to left even if
550         theres no translation
551
552         * configure.in: Bump glib requirement.
553
554         * gtk/gtkaccellabel.c
555         (_gtk_accel_label_class_get_accelerator_label):
556         * gtk/gtkactiongroup.c (dgettext_swapped):
557         * gtk/gtkbuilder.c (gtk_builder_class_init):
558         * gtk/gtkbuilderparser.c (_dpgettext),
559         (_gtk_builder_parser_translate):
560         * gtk/gtkfilechooserdefault.c (list_size_data_func):
561         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
562         * gtk/gtkintl.h:
563         * gtk/gtkmain.c (setlocale_initialization),
564         (do_pre_parse_initialization), (gettext_initialization):
565         * gtk/gtkstock.c (gtk_stock_lookup), (sgettext_swapped):
566         Use g_dgettext() and g_dngettext().
567
568 2008-06-11  Matthias Clasen <mclasen@redhat.com>
569
570         * docs/RELEASE-HOWTO: Updates
571
572 2008-06-11  Tor Lillqvist  <tml@novell.com>
573
574         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): As we don't
575         support Win9x anyway, we can use ProcessIdToSessionId()
576         unconditionally.
577
578 2008-06-11  Michael Natterer  <mitch@imendio.com>
579
580         * gtk/gtkfilechooserbutton.c: fix local prototype of
581         _gtk_file_chooser_label_for_file() (takes a GFile, not const gchar*).
582
583 2008-06-10  Matthias Clasen <mclasen@redhat.com>
584
585         Bug 536765 – GtkComboBox should set COMBO type hint for its menu
586
587         * gtk/gtkoptionmenu.c:
588         * gtk/gtkcombobox.c: Set the window type hint on popups.
589         Patch by Danny Baumann
590
591 2008-06-10  Matthias Clasen <mclasen@redhat.com>
592
593         * gtk/gtkfilesystem.c (get_icon_for_special_directory):
594         (gtk_file_system_volume_render_icon): Add standard icon names,
595         and also fall back to builtin gtk stock icons.
596
597 2008-06-10  Christian Persch  <chpe@gnome.org>
598
599         * gtk/gtktreeview.c: (destroy_info), (set_destination_row),
600         (gtk_tree_view_maybe_begin_dragging_row),
601         (gtk_tree_view_set_reorderable),
602         (gtk_tree_view_enable_model_drag_source),
603         (gtk_tree_view_enable_model_drag_dest),
604         (gtk_tree_view_unset_rows_drag_source),
605         (gtk_tree_view_unset_rows_drag_dest): Make
606         gtk_tree_view_enable_model_drag_[source|dest] compatible with
607         gtk_drag_[source|dest]_add_*_targets. Bug #506853.
608
609 2008-06-10  Christian Persch  <chpe@gnome.org>
610
611         * gtk/gtktreeview.c: (gtk_tree_view_button_release_drag_column),
612         (dest_row_free), (set_dest_row), (ensure_info),
613         (gtk_tree_view_remove), (gtk_tree_view_put),
614         (gtk_tree_view_set_column_drag_info): Use GSlice. Patch from
615         bug #506853.
616
617 2008-06-10  Paolo Borelli  <pborelli@katamail.com>
618
619         * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder_uri)
620         use g_file_new_for_uri.
621
622 2008-06-10  Paolo Borelli  <pborelli@katamail.com>
623
624         * gtk/gtkfilesystem.c (gtk_file_system_volume_render_icon): do not
625         leak the GIcon.
626
627 2008-06-10  Carlos Garnacho  <carlos@imendio.com>
628
629         * configure.in:
630         * gtk/Makefile.am:
631         * gtk/xdgmime: removed local xdgmime copy as Matthias suggested in bug
632         #520874, comment #8. It's no longer used directly by GTK+.
633
634 2008-06-10  Carlos Garnacho  <carlos@imendio.com>
635
636         Bug 520874 - Should use gio directly.
637
638         * gtk/gtkfilesystem.[ch]: Turn into a private object, which mostly
639         provides helper functions for asynchronous calls, folder abstraction
640         and uniform handling of volumes/drives/mounts.
641
642         * gtk/gtkfilesystemwin32.[ch]:
643         * gtk/gtkfilesystemunix.[ch]: Removed, these are no longer required.
644
645         * gtk/gtkfilechooser.c:
646         * gtk/gtkfilechooserbutton.c:
647         * gtk/gtkfilechooserdefault.c:
648         * gtk/gtkfilechooserentry.[ch]:
649         * gtk/gtkfilechooserprivate.h:
650         * gtk/gtkfilechooserutils.c:
651         * gtk/gtkfilesystemmodel.[ch]:
652         * gtk/gtkpathbar.[ch]: Use GIO internally. Adapt to GtkFileSystem API.
653         Do not load filesystem implementation modules.
654
655         * gtk/Makefile.am:
656         * gtk/gtk.symbols: the gtkfilesystem.h private header isn't installed
657         anymore, nor the unix/win32 implementations.
658
659         * README.in: Add blurb about these changes.
660
661 2008-06-09  Kristian Rietveld  <kris@gtk.org>
662
663         Bug 526987 - GtkCellRendererCombo should allow model to be NULL
664
665         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init),
666         (gtk_cell_renderer_combo_set_property),
667         (gtk_cell_renderer_combo_editing_done),
668         (gtk_cell_renderer_combo_start_editing): introduce private class
669         struct, allow model to be set to NULL.
670
671 2008-06-08  Björn Lindqvist  <bjourne@gmail.com>
672
673         Bug 131920 – gtkNotebook sends incorrect switch_page value
674
675         * gtk/gtknotebook.c (gtk_notebook_real_remove): Make switch-page
676         signal send correct page index when page index 0 is active and
677         removed. (#131920, Samuel Fogh)
678
679 2008-06-08  Kristian Rietveld  <kris@gtk.org>
680
681         Bug 536730 - memory corruption in gtktreeview
682
683         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): first
684         remove the expand/collapse timeout and node, then free the rbtree.
685
686 2008-06-08  Kristian Rietveld  <kris@gtk.org>
687
688         Bug 488119 - critical warnings from gtk_tree_view_get_visible_range
689
690         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): only try to
691         find path if we found valid nodes, return FALSE otherwise.  (Patch
692         from Matthias Clasen).
693
694 2008-06-08  Matthias Clasen  <mclasen@redhat.com>
695
696         * gtk/gtkrecentmanager.c:
697         * gtk/gtkrecentfilter.c:
698         * gtk/gtkfilefilter.c: Replace uses of xdgmime with
699         g_content_type.
700         
701 2008-06-08  Christian Persch <chpe@gnome.org>
702
703         Bug 535608 – do not string-copy accel paths in the menu code
704
705         * gtk/gtkaccelgroup.c:
706         * gtk/gtkaccelmap.c:
707         * gtk/gtkaction.c:
708         * gtk/gtkmenu.c:
709         * gtk/gtkmenuitem.c:
710         * gtk/gtkwidget.c:  Don't store the accel path as a string in
711         gtkmenu/gtkmenuitem. The accel path will be interned anyway, so
712         keeping a string copy around is just a waste of memory.
713         Improve the documentation to mention this.
714
715 2008-06-07  Tor Lillqvist  <tml@novell.com>
716
717         Bug 536990 - updateiconcache.c: 'close ()' is redundant
718
719         * gtk/updateiconcache.c (build_cache): Drop redundant close()
720         calls. fclose() on a fdopen()ed stream closes the underlying file
721         descriptor.
722
723 2008-06-06  Matthias Clasen  <mclasen@redhat.com>
724
725         Bug 536757 – regression: openoffice.org menus are placed at wrong
726         position since 2.12.10
727
728         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
729         Return the right coordinates.  
730
731 2008-06-06  Behdad Esfahbod  <behdad@gnome.org>
732
733         Bug 536185 – monitor font configuration
734
735         * configure.in:
736         * gdk/x11/gdksettings.c:
737         * gtk/gtksettings.c (gtk_settings_class_init),
738         (gtk_settings_notify), (settings_update_fontconfig):
739         Monitor xsettings key Fontconfig/Timestamp and upon change,
740         reread fontconfig configuration, clear Pango's caches, and
741         redraw all widgets.
742
743 2008-06-06  Ross Burton  <ross@burtonini.com>
744
745         * gtk/gtkwindow.c:
746         Fix trivial typo in documentation.
747
748 2008-06-06  Tor Lillqvist  <tml@novell.com>
749
750         * config.h.win32.in: Slight update to match what configure
751         produces.
752
753 2008-06-05  Johan Dahlin  <jdahlin@async.com.br>
754
755         * gtk/gtkbuilder.h (enum): Add the new version mismatch error
756         constant to the end of the list, to avoid breaking the stable ABI
757
758 2008-06-05  Michael Natterer  <mitch@imendio.com>
759
760         * configure.in: add -DATK_DISABLE_SINGLE_INCLUDES to CPPFLAGS.
761
762 2008-06-05  Li Yuan  <li.yuan@sun.com>
763
764         * gail-uninstalled.pc.in:
765         Bug #536430. Patch from Damien Carbery <damien.carbery@sun.com>.
766         Correct paths to gail headers and libraries in gail-uninstalled.pc.in.
767
768 2008-06-03  Matthias Clasen  <mclasen@redhat.com>
769
770         * docs/RELEASE-HOWTO: Update a bit
771
772 2008-06-03  Matthias Clasen  <mclasen@redhat.com>
773
774         * configure.in: Bump version
775
776         * === Released 2.13.2 ===
777
778 2008-06-03  Federico Mena Quintero  <federico@novell.com>
779
780         * gtk/gtkfilechooserentry.c (install_completion_feedback_timer):
781         If the user presses Tab while the completion feedback window is
782         active, then we'll assert.  Remove the assertion and just re-set
783         the timer.  Fixes https://bugzilla.novell.com/show_bug.cgi?id=355225
784
785 2008-06-03  Colin Walters  <walters@redhat.com>
786         
787         Bug 535303 – add _get_implementation to GtkStatusIcon
788
789         * gtk/gtkstatusicon.c (gtk_status_icon_get_x11_window_id): New
790         function to retrieve internal X11 window ID, useful for libnotify.
791         * gtk/gtkstatusicon.h: Prototype it.
792         * docs/reference/gtk/gtk-sections.txt: Add to docs.
793         * gtk/gtk.symbols: Export it.
794
795 2008-06-03  Tor Lillqvist  <tml@novell.com>
796
797         * gtk/updateiconcache.c (build_cache): Use g_open().
798
799 2008-06-03  Michael Natterer  <mitch@imendio.com>
800
801         * gtk/gtkclist.h
802         * gtk/gtkctree.h: revert includes to how they have been before the
803         GTK_DISABLE_SINGLE_INCLUDES changes. Apparently I missed the fact
804         that you can't include <gtk/gtk.h> from two headers where one is a
805         parent class of the other and expect them both to be includable
806         individually.
807
808 2008-06-03  Michael Natterer  <mitch@imendio.com>
809
810         * gtk/gtkprinteroptionset.h: remove newline at beginning of file.
811
812 2008-06-02  Matthias Clasen  <mclasen@redhat.com>
813         
814         Bug 536092 – GtkEntryCompletion's popup window should set type hint
815
816         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): Set
817         a type hint on the popup window to help compiz.
818         Patch by Vaclav Slavik.
819
820 2008-06-02  Claudio Saavedra  <csaavedra@igalia.com>
821
822         Bug 535862 – gtk_action_create_icon can't create icons from the
823         icon themes
824
825         * gtk/gtkaction.c: (gtk_action_create_icon): Look for the icon in
826         the default factories as it's supposed.
827
828 2008-06-02  Yevgen Muntyan  <muntyan@tamu.edu>
829
830         Bug 535497 – Print preview doesn't work.
831
832         * gtk/Makefile.am: GTK_PRINT_PREVIEW_COMMAND on quartz: use open
833         instead of launching Preview.app directly.
834
835 2008-06-02  Michael Natterer  <mitch@imendio.com>
836
837         * gtk/gtksignal.h: put back #include <gtk/gtkmarshal.h>, it's not
838         in <gtk/gtk.h>. Fixes stuff that uses deprecated cruft.
839         (bug #536126).
840
841 2008-05-31  Emmanuele Bassi  <ebassi@gnome.org>
842
843         Bug 535830 – wrong content type adding an item
844
845         * gtk/gtkrecentmanager.c:
846         (gtk_recent_manager_add_item_query_info): Use the correct API
847         for retrieving the fast MIME type of a URI. (Carlos Garcia
848         Campos)
849
850 2008-05-31  Kristian Rietveld  <kris@imendio.com>
851
852         Bug 530146 - Setting non-string tooltip with
853         gtk_tree_view_set_tooltip_column() segfaults
854
855         * gtk/gtktreeview.c (gtk_tree_view_set_tooltip_query_cb): use
856         gtk_tree_model_get_value() and explicitly transform the value to a
857         string before setting it as tooltip.
858
859 2008-05-30  Tor Lillqvist  <tml@novell.com>
860
861         * modules/engines/ms-windows/msw_style.h
862         * modules/engines/ms-windows/msw_rc_style.h: Include gtk.h.
863
864 2008-05-30  Michael Natterer  <mitch@imendio.com>
865
866         * gtk/gtkmenu.c (get_attach_info): cast attach_info_free() to
867         GDestroyNotify when using it in g_object_set_data_full().
868
869 2008-05-30  Michael Natterer  <mitch@imendio.com>
870
871         * gdk/gdkapplaunchcontext.h
872         * gdk/gdktestutils.h
873         * gtk/gtkmountoperation.h
874         * gtk/gtkshow.h
875         * gtk/gtktestutils.h
876         * gtk/gtktoolshell.h: no need to allow disabling single includes
877         conditionally in these new files. Simply forbid including them
878         individually from the beginning.
879
880 2008-05-30  Tor Lillqvist  <tml@novell.com>
881
882         Bug 533108 - leak of GDI region in function 'handle_wm_paint'
883
884         * gdk/win32/gdkevents-win32.c (handle_wm_paint): Patch by Daniel
885         Atallah.
886
887 2008-05-29  Matthias Clasen <mclasen@redhat.com>
888
889         * configure.in: Bump version 
890
891         * === Released 2.13.1 ===
892
893         * NEWS: Updates
894
895 2008-05-29  Matthias Clasen <mclasen@redhat.com>
896
897         * gtk/gtkwidget.c: s/2.16/2.14/ in Since tags
898
899 2008-05-29  Matthias Clasen <mclasen@redhat.com>
900
901         * tests/Makefile.am: Don't add testmountoperation to TEST_PROGS.
902
903 2008-05-29  Tor Lillqvist  <tml@novell.com>
904
905         Bug 535526 - updateiconcache.c: using open/close without prototype
906
907         * gtk/updateiconcache.c: Include <io.h> if _MSC_VER. Also, use
908         g_utime() when available instead of utime() for UTF-8 pathname
909         support on Windows.
910
911 2008-05-29  Jan Arne Petersen  <jpetersen@jpetersen.org>
912
913         Bug 56355 – GtkLabel - Not all changes propagate correctly
914
915         * gtk/gtklabel.c: (gtk_label_recalculate), (gtk_label_set_label),
916         (gtk_label_set_markup_with_mnemonic), (gtk_label_parse_uline),
917         (gtk_label_set_text_with_mnemonic), (gtk_label_set_use_underline):
918         Call gtk_label_setup_mnemonic from gtk_label_recalculate. Add
919         notifications of mnemonic-keyval changes.
920
921 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
922
923         Bug 522084 – GIcon support for GtkIconTheme & GtkImage
924
925         * gtk/gtkicontheme.[hc]: Add support for GIcon based lookups.
926         * gtk/gtkimage.[hc]: Allow setting an image from a GIcon.
927         * gtk/gtk.symbols: Additions
928         * tests/testimage.c: Add a GIcon test
929
930 2008-05-29  Michael Natterer  <mitch@imendio.org>
931
932         * gtk/Makefile.am
933         * gtk/gtkunixprint.h: add a single-include header for the unix
934         print stuff.
935
936         * gtk/gtkpagesetupunixdialog.h
937         * gtk/gtkprinter.h
938         * gtk/gtkprintjob.h
939         * gtk/gtkprintunixdialog.h: add single-include guards that #error
940         out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these
941         files is included individually.
942
943         * gtk/gtkprintbackend.h
944         * gtk/gtkprinter-private.h
945         * modules/printbackends/cups/gtkprintbackendcups.c
946         * modules/printbackends/cups/gtkprintercups.h
947         * modules/printbackends/lpr/gtkprintbackendlpr.c
948         * tests/buildertest.c
949         * tests/defaultvaluetest.c
950         * docs/tools/widgets.c: include <gtk/gtkunixprint.h> instead of
951         individual files.
952
953 2008-05-28  Michael Natterer  <mitch@imendio.com>
954
955         * gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and
956         excess newlines and sprinkled some newlines where needed. Zero
957         code or formatting changes included.
958
959 2008-05-28  Michael Natterer  <mitch@imendio.com>
960
961         * gtk/gtkprinter.h: fix formatting of details_acquired() signal.
962
963 2008-05-28  Michael Natterer  <mitch@imendio.com>
964
965         * gtk/gtkcolorbutton.h: fix comment: the widget is called
966         GtkColorButton, not GtkColorSelectButton. Remove trailing
967         whitespace and excess newlines.
968
969 2008-05-28  Michael Natterer  <mitch@imendio.com>
970
971         * configure.in: last but not least, add G_DISABLE_SINGLE_INCLUDES,
972         GDK_PIXBUF_DISABLE_SINGLE_INCLUDES and GTK_DISABLE_SINGLE_INCLUDES
973         to CPPFLAGS so it's impossible to commit code that would break
974         apps which use DISABLE_INCLUDE defines.
975
976 2008-05-28  Michael Natterer  <mitch@imendio.com>
977
978         * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
979         headers.
980
981         * gtk/gtktypebuiltins.h.template
982         * gtk/gtkversion.h.in
983         * gtk/gtk*.h: add single-include guards that #error out if
984         GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
985         included individually.
986
987         * gtk/gtkprintbackend.h
988         * gtk/gtkprinter-private.h
989         * gtk/gtktextlayout.h
990         * gtk/gtktexttagprivate.h
991         * gtk/gtktexttypes.h
992         * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
993         headers in these private or semi-private headers.
994
995         * gtk/gtkimmodule.h: also here because it's not in gtk.h.
996
997         * gtk/gtkpagesetupunixdialog.h
998         * gtk/gtkprinter.h
999         * gtk/gtkprintjob.h
1000         * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
1001
1002         * gtk/gtkclist.h
1003         * gtk/gtkcombo.h
1004         * gtk/gtkctree.h
1005         * gtk/gtkfilesel.h
1006         * gtk/gtkitemfactory.h
1007         * gtk/gtklist.h
1008         * gtk/gtklistitem.h
1009         * gtk/gtkoldeditable.h
1010         * gtk/gtkoptionmenu.h
1011         * gtk/gtkpixmap.h
1012         * gtk/gtkpreview.h
1013         * gtk/gtksignal.h
1014         * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
1015         instead of individual headers in these deprecated headers. They
1016         don't get included at all when GTK_DISABLE_DEPRECATED is defined,
1017         so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
1018         and include them individually, which should continue to work.
1019
1020         * gtk/gtkclist.c: include "gtkctree.h" because of the change
1021         above.
1022
1023 2008-05-28  Kristian Rietveld  <kris@imendio.com>
1024
1025         Bug 449625 - crash in gtk_tree_view_real_move_cursor at
1026         gtktreeview.c:9641
1027
1028         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down):
1029         cursor_offset *must* be larger than background height of the cursor
1030         node, not just equal otherwise there is no guarantee there is a next
1031         node.
1032
1033 2008-05-28  Michael Natterer  <mitch@imendio.com>
1034
1035         * gtk/gtktestutils.c: don't include <gdk/gdktestutils.h>.
1036
1037 2008-05-28  Michael Natterer  <mitch@imendio.com>
1038
1039         * gdk/gdk.h: define __GDK_H_INSIDE__ around including all other
1040         headers.
1041
1042         * gdk/gdkenumtypes.h.template
1043         * gdk/gdk*.h: add single-include guards that #error out if
1044         GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
1045         included individually. Also removed some redundant includes and
1046         did some tiny trailing whitespace removal that's not worth to
1047         commit separately.
1048
1049         * gdk/gdkprivate.h: include <gdk/gdk.h> instead of individual
1050         files.
1051
1052         * gdk/win32/gdkwin32.h
1053         * gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
1054         other includes.
1055
1056 2008-05-28  Kristian Rietveld  <kris@imendio.com>
1057
1058         Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the
1059         current widget again.
1060
1061         * gtk/gtktooltip.c (gtk_tooltip_set_custom),
1062         (gtk_tooltip_reset), (gtk_tooltip_run_requery): use a
1063         custom_was_reset field to check if the custom widget is set again in
1064         the query-tooltip callback; if not, we set it to NULL.  Based on a
1065         patch by Xavier Claessens, insightful comments from Jean-Yves Lefort
1066         and Christian Persch.
1067
1068 2008-05-28  Michael Natterer  <mitch@imendio.com>
1069
1070         * modules/printbackends/cups/gtkcupsutils.c
1071         * modules/printbackends/cups/gtkprintbackendcups.c
1072         * modules/printbackends/file/gtkprintbackendfile.c
1073         * modules/printbackends/lpr/gtkprintbackendlpr.c: include
1074         <gtk/gtk.h> instead of individual files.
1075
1076 2008-05-28  Michael Natterer  <mitch@imendio.com>
1077
1078         * demos/testpixbuf.c: include <gdk-pixbuf/gdk-pixbuf.h> instead of
1079         individual files.
1080
1081 2008-05-28  Kristian Rietveld  <kris@imendio.com>
1082
1083         Bug 498010 - gtk_tree_view_set_cursor fails if model!=NULL.
1084
1085         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): return if fail
1086         ->priv->tree != NULL.  Suggestion from Stefan Kost.
1087
1088 2008-05-28  Kristian Rietveld  <kris@imendio.com>
1089
1090         Bug 324282 - add selected signal to cell renderer combo.
1091
1092         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init),
1093         (gtk_cell_renderer_combo_changed),
1094         (gtk_cell_renderer_combo_start_editing): add a new "changed" signal
1095         that will be emitted as soon as the combo box emitted changed and has
1096         an active iterator.  (Modified patch based on work by James
1097         Pelletier).
1098
1099         * gtk/gtkmarshalers.list: add marshaler.
1100
1101 2008-05-28  Kristian Rietveld  <kris@imendio.com>
1102
1103         Refactor expand/collapse timeout handling (amendment to bug 511217).
1104
1105         * gtk/gtktreeview.c (add_expand_collapse_timeout),
1106         (remove_expand_collapse_timeout): new functions, the remove function
1107         also clears expanded_collapsed_node,
1108         (cancel_arrow_animation): moved to be next to the add/remove timeout
1109         functions,
1110         (gtk_tree_view_unrealize),
1111         (gtk_tree_view_row_deleted),
1112         (gtk_tree_view_set_model),
1113         (cancel_arrow_animation),
1114         (gtk_tree_view_real_expand_row),
1115         (gtk_tree_view_real_collapse_row): use the new add/remove functions.
1116
1117 2008-05-28  Kristian Rietveld  <kris@imendio.com>
1118
1119         Amendment of bug 485218 - Strange warning encountered.
1120
1121         * gtk/gtktreemodelsort.[ch]
1122         (gtk_tree_model_sort_convert_child_iter_to_iter): return a boolean
1123         indication whether or not the conversion had succeeded.
1124
1125 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1126
1127         Bug 509788 - GTK+ should use CUPS to set Postscript level of PS output
1128
1129         * modules/printbackends/cups/gtkprintbackendcups.c
1130         (cups_printer_create_cairo_surface): Fall back to PostScript level 2
1131         if the printer does not support level 3. Patch by Marek Kašík.
1132
1133 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1134
1135         Bug 404571 - Scroll arrow backgrounds should be painted with different
1136         detail
1137
1138         * gtk/gtkmenu.c (gtk_menu_paint): Use "menu_scroll_arrow_up/down" 
1139         as detail when drawing scroll arrow backgrounds. Proposed by
1140         Tommi Komulainen.
1141         
1142 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1143
1144         Bug 511217 - potential memory corruption after refreshing a tree_view
1145
1146         * gtk/gtktreeview.c (cancel_arrow_animation): Reset
1147         expanded_collapsed_node when canceling the animation.
1148         Patch by Nicholas Setton.
1149
1150 2008-05-28  Michael Natterer  <mitch@imendio.com>
1151
1152         * modules/input/gtkimcontextime.h
1153         * modules/input/gtkimcontextmultipress.h
1154         * modules/input/gtkimcontextthai.h
1155         * modules/input/gtkimcontextxim.h: include <gtk/gtk.h> instead of
1156         individual files.
1157
1158         * modules/input/gtkimcontextime.c
1159         * modules/input/gtkimcontextmultipress.c
1160         * modules/input/gtkimcontextxim.c
1161         * modules/input/imam-et.c
1162         * modules/input/imcedilla.c
1163         * modules/input/imcyrillic-translit.c
1164         * modules/input/iminuktitut.c
1165         * modules/input/imipa.c
1166         * modules/input/imti-er.c
1167         * modules/input/imti-et.c
1168         * modules/input/imviqr.c: ditto. Some minor cleanups like moving
1169         "gtk/gtkintl.h" to the end of includes.
1170
1171 2008-05-28  Michael Natterer  <mitch@imendio.com>
1172
1173         * modules/engines/pixbuf/pixbuf-style.h
1174         * modules/engines/pixbuf/pixbuf-rc-style.h: include <gtk/gtk.h>
1175         instead of individual files.
1176
1177 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1178
1179         Bug 485218 - Strange warning encountered
1180
1181         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted):
1182         (gtk_tree_model_sort_convert_child_iter_to_iter):
1183         (gtk_tree_model_sort_build_level): Better warnings. Patch
1184         by Kristian Rietveld.
1185
1186 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1187
1188         Bug 351910 - Search column setting lost
1189
1190         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Clarify
1191         the docs. Patch by Matt Barnes.
1192
1193 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1194
1195         Bug 477278 - avoid unnecessary pointer subtraction
1196
1197         * gtk/gtkaccelgroup.c (quick_accel_remove): Avoid pointer 
1198         subtraction that sparse complains about. Patch by Christian
1199         Persch.
1200
1201 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1202
1203         Bug 106574 - Inconsistent increment behavior for gtkspinbutton
1204
1205         * gtk/gtkspinbutton.c (gtk_spin_button_real_value_change):
1206         Commit the entry text before doing an increment. Patch by
1207         Björn Lindqvist.
1208
1209 2008-05-27  Federico Mena Quintero  <federico@novell.com>
1210
1211         http://bugzilla.gnome.org/show_bug.cgi?id=533891 - Don't allow
1212         drag and drop from the file list into itself, as it doesn't make
1213         sense (it would just change the current folder).
1214
1215         * gtk/gtkfilechooserdefault.c (file_list_dest_targets): Use
1216         GTK_TARGET_OTHER_WIDGET so we don't DnD from the file list into
1217         itself.
1218
1219 2008-05-27  Michael Natterer  <mitch@imendio.com>
1220
1221         * gtk/gtksignal.h: move deprecated guards around everything,
1222         including includes and include guards (just as in all other
1223         deprecated files).
1224
1225 2008-05-27  Tor Lillqvist  <tml@novell.com>
1226
1227         * gtk/updateiconcache.c (build_cache): Use simpler mode for open()
1228         on Windows. (No S_I?GRP and S_I?OTH bits are defined in
1229         <sys/stat.h> on Windows, and the mode used in open() doesn't
1230         matter much as there are no rwxrwxrwx bits on Windows anyway.)
1231         Open file in binary mode. Passing "b" to fdopen() later isn't
1232         enough.
1233
1234 2008-05-27 10:33:41  Tim Janik  <timj@imendio.com>
1235
1236         * gtk/gtkwidget.c: guard gtk_widget_get_snapshot() against
1237         invalid or invisible widgets.
1238
1239 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1240
1241         Bug 531008 – Crash in gtkprintunixdialog.c
1242
1243         * gtk/gtkprintunixdialog.c: Disconnect signal handlers when
1244         the dialog closes. Patch by Yevgen Muntyan.
1245
1246 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
1247
1248         RH bug 248245: cups client printing from gnome applications fail
1249
1250         * modules/printbackends/cups/gtkprintbackendcups.c
1251         (gtk_print_backend_cups_print_stream): Specify the right server.
1252
1253 2008-05-27  Carlos Garnacho  <carlos@imendio.com>
1254
1255         * gtk/gtkfilechooserdefault.c (set_select_multiple): Enable
1256         rubberbanding when "select-multiple" is TRUE. Bug #446068.
1257
1258 2008-05-27  Carlos Garnacho  <carlos@imendio.com>
1259
1260         * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Enable
1261         correctly dialog buttons sensitivity when the anonymous option is
1262         enabled by default. Bug #531865.
1263
1264 2008-05-27  Carlos Garnacho  <carlos@imendio.com>
1265
1266         * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Set
1267         password dialog modal and transient for the parent window also if it
1268         was specified in the constructor. Bug #531864.
1269
1270 2008-05-26  Richard Hult  <richard@imendio.com>
1271
1272         * gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Try
1273         setting the default font, might need to tweak this.
1274
1275 2008-05-26  Michael Natterer  <mitch@imendio.com>
1276
1277         * examples/gtkdial/gtkdial.h
1278         * modules/input/gtkimcontextthai.h: use G_BEGIN/END_DECLS.
1279
1280 2008-05-26  Michael Natterer  <mitch@imendio.com>
1281
1282         * gtk/gtkimmodule.h: fix indentation.
1283
1284 2008-05-26  Michael Natterer  <mitch@imendio.com>
1285
1286         * gtk/gtkshow.h: include "gdk/gdk.h" instead of "gdk/gdkscreen.h"
1287
1288         * gtk/gtkshow.c: remove inclusion of single files from gdk/
1289
1290         Removed trailing whitespace in both files.
1291
1292 2008-05-26  Richard Hult  <richard@imendio.com>
1293
1294         Bug 530353 – Mac-like gtk_accelerator_get_label()
1295
1296         * gtk/gtkaccellabel.c: (gtk_accel_label_class_init),
1297         (append_keyval_symbol), (_gtk_accel_label_class_get_accelerator_label):
1298         On quartz, make gtk_accelerator_get_label() format a Mac-like
1299         string, using unicode characters for modifier keys, arrows, delete
1300         etc. Patch from Yevgen Muntyan.
1301
1302 2008-05-26  Richard Hult  <richard@imendio.com>
1303
1304         Bug 534869 – Length miscalculation in
1305         _gtk_quartz_get_selection_data_from_pasteboard
1306
1307         * gtk/gtkquartz.c: (_gtk_quartz_get_selection_data_from_pasteboard):
1308         Get the number of bytes, not the number of characters, patch from
1309         Yevgen Muntyan.
1310
1311 2008-05-26  Matthias Clasen  <mclasen@redhat.com>
1312
1313         * gtk/gtkwidget.c: Some doc formatting fixes.
1314
1315 2008-05-26  Matthias Clasen  <mclasen@redhat.com>
1316
1317         Bug 511163 – Remove pango_extents_to_pixels() calls
1318
1319         * gtk/gtkcellrenderertext.c (get_size): Use
1320         pango_layout_get_pixel_extents.
1321
1322         * configure.in: Bump Pango requirement to 1.20
1323
1324         * INSTALL.in: Update required versions
1325
1326 2008-05-26  Matthias Clasen  <mclasen@redhat.com>
1327
1328         Bug 513811 – Use cairo_format_stride_for_width()
1329
1330         * gtk/gtkhsv.c (paint_ring, paint_triangle):
1331         * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Use
1332         cairo_format_stride_for_width, proposed by Behdad Esfahbod.
1333
1334         * configure.in: Bump cairo requirement to 1.6.0
1335
1336         * INSTALL.in: Update required versions
1337
1338 2008-05-26  Matthias Clasen  <mclasen@redhat.com>
1339
1340         * gtk/gtkshow.[hc]: Formatting fixes
1341
1342         * gtk/gtkmountoperation.c: Add docs
1343
1344 2008-05-25  Cody Russell  <bratsche@gnome.org>
1345
1346         Bug 507389 – use gslice for gtksettings
1347
1348         * gtk/gtksettings.c: Change from g_new0/g_free to use GSlice.
1349         Report and patch by Christian Persch.
1350
1351 2008-05-25  Cody Russell  <bratsche@gnome.org>
1352
1353         Bug 523562 - gtk-update-icon-cache core dumps when run concurrently and
1354         when options are missing
1355
1356         * gtk/updateiconcache.c: Open the cache file (O_CREAT | O_EXCL) so
1357         that other processes that try to open it will fail gracefully.  Also
1358         fix a crasher caused by lack of a NULL check.  Report and patch
1359         by Erwann Chenede.
1360
1361 2008-05-25  Cody Russell  <bratsche@gnome.org>
1362
1363         Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows
1364
1365         * gdk/x11/gdkwindow-x11.c (_gdk_window_get_toplevel): Check
1366         !WINDOW_IS_TOPLEVEL instead of checking for GDK_WINDOW_CHILD,
1367         so that we also take into account for foreign windows.
1368         Report and patch by Nathaniel Smith.
1369
1370 2008-05-25  Cody Russell  <bratsche@gnome.org>
1371
1372         Bug 525461 - Don't invalidate under an input-only child
1373
1374         * gdk/x11/gdkgeometry-x11.c (_gdk_window_move_resize_child):
1375         Check that the window is not input-only before invalidating.
1376         Report and patch by Owen Taylor.
1377
1378 2008-05-25  Cody Russell  <bratsche@gnome.org>
1379
1380         Bug 524110 - Gdk should not assume reparenting WMs when retrieving
1381         window frame extents
1382
1383         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
1384         Use _NET_FRAME_EXTENTS, if available.  Patch by Danny Baumann.
1385
1386 2008-05-25  Cody Russell  <bratsche@gnome.org>
1387
1388         Bug 522269 - Evince windows sometimes incorrectly unmaximized,
1389         caused by missing flag initialization
1390
1391         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Initialize
1392         top-level private flags correctly.  Patch by Danny Baumann.
1393
1394 2008-05-25  Cody Russell  <bratsche@gnome.org>
1395
1396         Bug 534463 - non-editable GtkTextView should not call
1397         gtk_im_context_focus_in in focus event
1398
1399         * gtk/gtktextview.c: Add checks to see if the textview is
1400         editable.  Patch by Wang Diancheng.
1401
1402 2008-05-25  Matthias Clasen  <mclasen@redhat.com>
1403
1404         Bug 501730 – use GSlice for small allocs
1405
1406         * gtk/gtkmenuitem.c:
1407         * gtk/gtkmenu.c: Use the slice allocator for small allocations.
1408         Patch by Christian Persch.
1409         
1410 2008-05-25  Matthias Clasen  <mclasen@redhat.com>
1411
1412         Bug 523930 – sort -> search in gtktreeview.c
1413
1414         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Fix a doc
1415         glitch, pointed out by Björn Lindqvist.
1416
1417 2008-05-25  Matthias Clasen  <mclasen@redhat.com>
1418
1419         Bug 479384 – gtk_selection_data_targets_include_uri docs buglet
1420
1421         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): Fix
1422         doc glitch, pointed out by Christian Persch.
1423
1424 2008-05-25  Matthias Clasen  <mclasen@redhat.com>
1425
1426         Bug 534694 – Col id in GtkListStore could be out of range
1427
1428         * gtk/gtkliststore.c (list_store_start_element): Fix up error handling
1429         a bit. Pointed out by Jan Arne Petersen.
1430
1431 2008-05-25  Matthias Clasen  <mclasen@redhat.com>
1432
1433         Bug 532497 – Configure problem when cross-compiling
1434
1435         * configure.in: Use AC_CHECK_TOOLS to find C++ compiler, 
1436         pointed out by Marko Lindqvist.
1437
1438 2008-05-25  Richard Hult  <richard@imendio.com>
1439
1440         * gtk/gtkquartz.c: (_gtk_quartz_set_selection_data_for_pasteboard):
1441         Slight coding style cleanup.
1442
1443 2008-05-25  Tristan Van Berkom <tvb@gnome.org>
1444
1445         * gtk/gtkbuilderprivate.h, gtk/gtkbuilder.h, gtk/gtkbuilderparser.c:
1446         Added support for parsing required toolkit versions (so that ui descriptions
1447         can target specific versions of the backend widget libraries) bug 527612.
1448
1449         * gtk/docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation
1450         for the added xml tags to the ui description.
1451
1452         * tests/buildertest.c: Enhanced pango attribute tests, Added tests
1453         for requires tag handling.
1454
1455 2008-05-25  Richard Hult  <richard@imendio.com>
1456
1457         * gtk/gtkdnd-quartz.c: (gtk_drag_drop_finished): Run
1458         gtk_drag_source_info_destroy in an idle, workaround for bug
1459         #501588, that makes any code that uses the context returned from
1460         gtk_drag_begin() crash, like treeview/iconview dnd.
1461         (GdkDragSourceOwner::provideDataForType): only use the data if we
1462         got any.
1463
1464 2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
1465
1466         * gtk/gtkfilechooserdefault.c: (create_file_list): Add GDK_ACTION_MOVE
1467         to the drag actions to allow trash (#137717).
1468
1469 2008-05-25  Josselin Mouette  <joss@malsain.org>
1470
1471         reviewed by: Matthias Clasen
1472
1473         * gtk/gtksearchenginetracker.c: (_gtk_search_engine_tracker_new):
1474         check that tracker is actually working before using it. Fixes
1475         bug #479197.
1476
1477 2008-05-25  Sven Neumann  <sven@gimp.org>
1478
1479         * gtk/gtkdrawingarea.c (gtk_drawing_area_realize)
1480         (gtk_drawing_area_size_allocate): respect the GTK_NO_WINDOW flag
1481         and don't create an output window if it is set.
1482
1483         * gtk/gtkprintunixdialog.c: set the GTK_NO_WINDOW flag for the
1484         drawing areas. Fixes bug #519317.
1485
1486 2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
1487
1488         * gtk/gtkentry.c: (gtk_entry_class_init), (get_text_area_size),
1489         (gtk_entry_get_text_area_size), (gtk_entry_draw_frame):
1490         * gtk/gtkentry.h:
1491         * gtk/gtkspinbutton.c: (gtk_spin_button_class_init),
1492         (gtk_spin_button_realize), (gtk_spin_button_size_allocate),
1493         (gtk_spin_button_expose), (gtk_spin_button_draw_arrow),
1494         (gtk_spin_button_enter_notify), (gtk_spin_button_leave_notify),
1495         (gtk_spin_button_grab_notify), (gtk_spin_button_state_changed),
1496         (start_spinning), (gtk_spin_button_button_release),
1497         (gtk_spin_button_motion_notify), (gtk_spin_button_value_changed),
1498         (gtk_spin_button_get_text_area_size), (gtk_spin_button_real_spin),
1499         (gtk_spin_button_update): Reorder strange window hierarchy of the
1500         GtkSpinButton (#466000).
1501
1502 2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
1503
1504         * gtk/gtklabel.c: (get_layout_location): Subtract logical.x from x to
1505         fix the wrong position for right and center justified labels with
1506         logical.x > 0 (#530255).
1507
1508 2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
1509
1510         * gtk/gtkfilechooserdefault.c:
1511         (shortcuts_activate_volume_mount_cb): Ignore G_IO_ERROR_FAILED_HANDLED
1512         errors (#532262).
1513
1514 2008-05-25  Björn Lindqvist  <bjourne@gmail.com>
1515
1516         * tests/pixbuf-lowmem.c
1517         * tests/pixbuf-random.c
1518         * tests/pixbuf-randomly-modified.c
1519         * tests/pixbuf-read.c
1520         * tests/pixbuf-threads.c
1521         * tests/testgtk.c
1522         * tests/testtreeview.c: Fix remaining compiler warnings in these
1523         files (#523751).
1524
1525 2008-05-25  Jaap A. Haitsma  <jaap@haitsma.org>
1526
1527         reviewed by: Matthias Clasen
1528
1529         * gtk/Makefile.am:
1530         * gtk/gtk.h:
1531         * gtk/gtk.symbols:
1532         * gtk/gtkshow.c: (gtk_show_uri):
1533         * gtk/gtkshow.h:
1534         Add gtk_show_uri to make showing uris really easy. Fixes bug #514396
1535
1536 2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
1537
1538         * gtk/gtkliststore.c: (list_store_text): Use type of the correct
1539         column (#529535).
1540         * tests/buildertest.c: (test_list_store): Add test.
1541
1542 2008-05-24  Matthias Clasen  <mclasen@redhat.com>
1543
1544         Bug 520989 – icon factory buildable too strict
1545
1546         * gtk/gtkiconfactory.c (icon_source_start_element): Make filename
1547         an optional attribute.
1548
1549 2008-05-24  Matthias Clasen  <mclasen@redhat.com>
1550
1551         Bug 387972 – gtkassistant drawing problem
1552
1553         * gtk/gtkassistant.c (gtk_assistant_size_allocate): Make 
1554         GtkAssistant work better in glade. 
1555
1556 2008-05-24  Jan Arne Petersen  <jpetersen@jpetersen.org>
1557
1558         * gtk/gtktoolbar.c: (gtk_toolbar_class_init): Change defaults of child
1559         properties "expand" and "homogeneous" from TRUE to FALSE (as they are
1560         used in GtkToolItem) (#532787).
1561
1562 2008-05-24  Jan Arne Petersen  <jpetersen@jpetersen.org>
1563
1564         * gtk/gtkfilechooserdefault.c: (location_toggle_popup_handler): Don't
1565         try to toggle the visibility of the location entry field in search and
1566         recent mode (#526422).
1567
1568 2008-05-24  Jan Arne Petersen  <jpetersen@jpetersen.org>
1569
1570         * gtk/gtkfilechooserdefault.c: (shortcuts_query_tooltip_cb),
1571         (shortcuts_list_create): Show parse name as tooltip for path
1572         shortcuts (#137503).
1573
1574 2008-05-24  Björn Lindqvist  <bjourne@gmail.com>
1575
1576         * gdk/gdkcolor.c (gdk_color_parse): Update docstring to match
1577         pango_color_parse, do not reference XParseColor forms (#434991).
1578
1579 2008-05-24  James Sharpe <jsharpe@gnome.org>
1580
1581         * gdk/gdk.symbols: Remove duplicate
1582         gdk_window_redirect_to_drawable and gdk_window_remove_redirection
1583         * gtk/gtk.symbols: Remove duplicate gtk_widget_get_snapshot
1584         
1585 2008-05-23  Hans Breuer  <hans@breuer.org>
1586
1587         * **/makefile.msc gtk/makefile.msc.in : updated
1588         * gtk/gtkwidget.c : fix c99ism (variable at start of block
1589         * gdk/gdk.symbols gtk/gtk.symbols : export functions for window 
1590         redirection
1591         * gtk/gtkfilechooserdefault.c : #include <locale.h> for 
1592         setlocale(LC_ALL, ...)
1593
1594 2008-05-23  Tor Lillqvist  <tml@novell.com>
1595
1596         * gdk/gdk.symbols: Add gdk_window_redirect_to_drawable and
1597         gdk_window_remove_redirection.
1598
1599         * gdk/win32/gdkwindow-win32.c (_gdk_window_new)
1600         (_gdk_window_reparent): Rename to adapt to the offscreen rendering
1601         changes. Remove now unnecessary parameter checks as the caller
1602         does that already.
1603
1604         * gtk/gtk.symbols: Add gtk_widget_get_snapshot.
1605
1606 2008-05-23  Tor Lillqvist  <tml@novell.com>
1607
1608         * gdk/win32/gdkwindow-win32.c (update_style_bits): Don't do
1609         anything if style doesn't change. Improve debugging output.
1610
1611 2008-05-23  Michael Natterer  <mitch@gimp.org>
1612
1613         * perf/widgets.h
1614         * tests/print-editor.c
1615         * tests/prop-editor.h
1616         * tests/testmountoperation.c
1617         * tests/testmultidisplay.c
1618         * tests/testnouiprint.c
1619         * tests/testprint.c
1620         * tests/testprintfileoperation.h
1621         * tests/testtreesort.c
1622         * tests/textbuffertest.c: include <gtk/gtk.h> instead of single
1623         files. Remove some redundant includes.
1624
1625 2008-05-22  Hiroyuki Ikezoe  <poincare@ikezoe.net>
1626
1627         * gtk/gtksockget.c: (gtk_socket_realize): Remove second call of
1628         GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED).
1629
1630 2008-05-21  Richard Hult  <richard@imendio.com>
1631
1632         * gdk/quartz/gdkwindow-quartz.c:
1633         (_gdk_window_new), (_gdk_window_reparent): Renamed to adapt to the
1634         offscreen rendering changes, fixes build.
1635
1636 2008-05-21 21:10:15  Tim Janik  <timj@imendio.com>
1637
1638         * gtk/gtkwidget.h: added GdkRectangle *clip_rect to gtk_widget_get_snapshot().
1639
1640         * gtk/gtkwidget.c: clip the returned snapshot pixmap to clip_rect.
1641         return snapshot pixmap coordinates widget relative in *clip_rect.
1642
1643         * tests/testgtk.c: fixed bogus NULL pointer unref.
1644
1645 2008-05-21 21:04:28  Tim Janik  <timj@imendio.com>
1646
1647         * gtk/gtkwidget.c gtk_widget_get_snapshot(): grow snapshot area from
1648         widget's allocation to cover extra widget windows placed outside the
1649         widget allocation (spinbutton arrows are the prime example for this).
1650
1651 2008-03-18 10:49:20  Tim Janik  <timj@imendio.com>
1652
1653         * Applied pixmap redirection patch by Alexander Larsson with
1654         various updates from:
1655         Bug 318807 – Offscreen windows and window redirection.
1656
1657
1658         Updates:
1659
1660         * updated docs to mention "Since 2.16".
1661
1662         * tests/testgtk.c: fixed snapshooting pixmap leak.
1663         convert pixmap to pixbuf after snapshooting, to compensate for different
1664         bit depths (occurs when snapshooting ARGB visuals and displaying the
1665         pixmap in an RGB visual).
1666
1667         * gdk/gdkwindow.[hc]: made GdkWindowRedirect private.
1668
1669         * gdk/gdkwindow.c: removed damage idle handler, there's no aparent
1670         need for it. enqueue damage notification as GDK_DAMAGE events
1671         for each painting redirection at the start of the event queue.
1672         consider windows with a redirection fully visible when invalidating,
1673         and when updating from backing store. cleaned up stale variables.
1674
1675         * gdk/gdkevents.c: added _gdk_event_queue_prepend().
1676
1677         * gtk/gtkwidget.c: fixed coordinates for !NO_WINDOW widgets in
1678         gtk_widget_get_snapshot; this fixes garbage snap offsets for gammacurve,
1679         tree, drawingarea, text, handlebox, etc.
1680         clip the redirected window hierarchy to window sizes, the visible
1681         rectangles don't need to be taken into account here.
1682         extended snapshooting docs to recommend gdk_pixbuf_get_from_drawable()
1683         in case pixmap visuals could mismatch.
1684
1685         * gdk/x11/gdkwindow-x11.c: removed _gdk_windowing_window_get_visible_rect().
1686
1687
1688         Base patch:
1689
1690         * tests/testgtk.c: add a "Snapshot" test to demonstrate snapshooting
1691         of possibly obscured widgets into an offscreen pixmap.
1692
1693         * gtk/gtkwidget.[hc]: add GtkWidget::damage-event signal, add
1694         gtk_widget_get_snapshot() to render a widget's contents to a GdkPixmap.
1695
1696         * gtk/gtkmain.c: dispatch GDK_DAMAGE events.
1697
1698         * gdk/gdkwindow.c: moved outer gdk_window_new() and gdk_window_reparent()
1699         implementations here, adapted them to propagate redirects to child windows.
1700         gdk_window_end_paint(): copy repainted window contents to redirection pixmap,
1701         clipped to visible region. queue GDK_DAMAGE event delivery.
1702         gdk_window_redirect_to_drawable(): install window painting redirection.
1703         gdk_window_remove_redirection(): remove previously installed redirection.
1704
1705         * gdk/x11/gdkwindow-x11.c: added _gdk_windowing_window_get_visible_rect(),
1706         renamed _gdk_window_new() and _gdk_window_reparent().
1707
1708         * gdk/gdkwindow.h: added GdkWindowRedirect* to GdkWindowObject, export
1709         gdk_window_redirect_to_drawable() and gdk_window_remove_redirection().
1710
1711         * gdk/gdkevents.h: added GDK_DAMAGE event type.
1712
1713         * gdk/gdkevents.c: extract time and state from GDK_DAMAGE events.
1714
1715         * gdk/gdkinternals.h: added internal prototypes.
1716
1717 2008-05-21  Michael Natterer  <mitch@imendio.com>
1718
1719         * gtk/gtkalignment.c
1720         * gtk/gtkarrow.c
1721         * gtk/gtkbbox.c
1722         * gtk/gtkcalendar.c
1723         * gtk/gtkscrolledwindow.c: remove PROP_LAST enum values.
1724
1725 2008-05-20  Matthias Clasen  <mclasen@redhat.com>
1726
1727         RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" size
1728         was chosen
1729
1730         Patch by Marek Kasik.
1731
1732         * gtk/gtk.symbols:
1733         * gtk/gtkprinter.[hc]: Add gtk_printer_get_default_page_size.
1734         
1735         * gtk/gtkprintbackend.[hc]: Add fallback implementation.
1736
1737         * modules/printbackends/file/gtkprintbackendfile.c:
1738         * modules/printbackends/cups/gtkprintbackendcups.c: Implement
1739         get_default_page_size.
1740
1741         * gtk/gtkpagesetupunixdialog.c: When selecting a different printer,
1742         select its default paper size.
1743
1744         * gtk/gtkprintunixdialog.c: If no explicit page setup has been set,
1745         use the printer default.
1746
1747         * gtk/gtkprintoperation-unix.c: Don't create an empty page setup
1748         if we don't have a default page setup.
1749
1750 2008-05-20  Gian Mario Tagliaretti  <gianmt@gnome.org>
1751
1752         * gtk/gtkdnd.c: (gtk_drag_set_icon_pixmap): Fix the docs, the mask param
1753         can accept NULL for none. Fixes bug #533920.
1754
1755 2008-05-20  Björn Lindqvist  <bjourne@gmail.com>
1756
1757         * gtk/gtkspinbutton.c: (gtk_spin_button_snap,
1758         gtk_spin_button_update): Remove two chunks of duplicated
1759         code (#533733).
1760
1761 2008-05-20 14:27:34  Tim Janik  <timj@imendio.com>
1762
1763         * reverted recent unapproved changes by Yair Hershkovitz,
1764         regarding: Bug 503071 – Application direction changes to right
1765         to left even if theres no translation.
1766
1767 2008-05-19  Richard Hult  <richard@imendio.com>
1768
1769         * gdk/quartz/gdkwindow-quartz.c: (gdk_window_hide),
1770         (gdk_window_fullscreen), (gdk_window_unfullscreen): Use
1771         SetSystemUIMode instead of hiding and showing the menubar.
1772
1773 2008-05-19  Federico Mena Quintero  <federico@novell.com>
1774
1775         http://bugzilla.gnome.org/show_bug.cgi?id=322298 - Save dialog
1776         can't be resized until you expand the "Browse for other folders"
1777         section.
1778
1779         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1780         Removed the "get_resizable" method.
1781         (_gtk_file_chooser_embed_get_resizable): Removed.
1782
1783         * gtk/gtkfilechooserembed.c: Removed the _get_resizable() machinery.
1784
1785         * gtk/gtkfilechooserdefault.c: Likewise.
1786
1787         * gtk/gtkfilechooserdialog.c
1788         (file_chooser_widget_default_size_changed): Act as if the dialog
1789         were always resizable.
1790
1791 2008-05-19  Michael Natterer  <mitch@imendio.com>
1792
1793         * gtk/gtkcellrenderer.c
1794         * gtk/gtkcellrendererpixbuf.c
1795         * gtk/gtkcellrenderertoggle.c
1796         * gtk/gtkimagemenuitem.c
1797         * gtk/gtkmenutoolbutton.c
1798         * gtk/gtkoptionmenu.c
1799         * gtk/gtkstatusbar.c
1800         * gtk/gtktextview.c: s/PROP_ZERO/PROP_0/g, remove LAST_PROP.
1801
1802 2008-05-17  Yair Hershkovitz  <yairhr@gmail.com>
1803
1804         * gtk/gtkmain.c: gtk_disable_setlocale() - Added a call to
1805         g_disable_setlocale().
1806
1807 2008-05-17  Richard Hult  <richard@imendio.com>
1808
1809         * gdk/quartz/gdkwindow-quartz.c:
1810         (gdk_window_impl_quartz_invalidate_maybe_recurse):
1811         (gdk_window_quartz_update_idle): Use gdk_threads_add_idle instead
1812         of g_idle_add. Add a temporary check if the window is already in
1813         the updates list, since update_area currently doesn't always match
1814         the backend's state, see bug #530801.
1815
1816 2008-05-13  Tor Lillqvist  <tml@novell.com>
1817
1818         Bug 496958 - Wacom Bamboo doesn't function with GTK apps in Win32
1819
1820         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Set
1821         the "packet rate" of devices to zero instead of 50. This is
1822         reported to help significantly with Wacom tablet behaviour in GIMP
1823         and Inkscape. Patch from Thomas Bleeker.
1824
1825 2008-05-12  Richard Hult  <richard@imendio.com>
1826
1827         * gdk/quartz/gdkevents-quartz.c:
1828         * gdk/quartz/gdkquartz.h: Remove special casing of menu key events
1829         as it's no longer necessary; instead the added quartz API to get
1830         the nsevent from an event should be used. Also move the global
1831         filter up so it's done before the check for window-less events.
1832
1833 2008-05-12  Tor Lillqvist  <tml@novell.com>
1834
1835         Bug 532558 - Cannot build dll when using separate builddir
1836
1837         * gdk/Makefile.am
1838         * gtk/Makefile.am: .def file belongs in $(srcdir). Patch by Marko
1839         Lindqvist.
1840
1841 2008-05-12  Yair Hershkovitz  <yairhr@gmail.com>
1842
1843         * gtk/gtkmain.c: g_i18n_init(); -> g_i18n_init ();
1844
1845 2008-05-12  Tor Lillqvist  <tml@novell.com>
1846
1847         Bug 532059 - Leak in win32 clipboard manipulation
1848
1849         * gdk/win32/gdkselection-win32.c
1850         (gdk_win32_selection_add_targets): Plug memory leak. Patch by
1851         Daniel Atallah.
1852
1853 2008-05-11  Yair Hershkovitz  <yairhr@gmail.com>
1854
1855         * gtk/gtkmain.c: call g_i18n_init() in gettext_initialization(). do
1856         gettext_initialization only once.
1857
1858         *  gtk/gtkbuilderparser.c: use glib i18n api. removed dpgettext() as it
1859         duplicates g_dpgettext() and added _g_dpgettext() to wrap g_dpgettext 
1860         with the extended functionality that was in the removed dpgettext().
1861
1862         * gtk/gtkaccellabelc:
1863         * gtk/gtkstock.c:
1864         * gtk/gtkimmulticontext.c:
1865         * gtk/gtkactiongroup.c:
1866         * gtk/gtkintl.h: use glib i18n api.
1867
1868 2008-05-08  Richard Hult  <richard@imendio.com>
1869
1870         * gdk/quartz/gdkgeometry-quartz.c (gdk_window_scroll): Move the
1871         currently invalidated region. Fixes bug #532048, patch by Yevgen
1872         Muntyan.
1873
1874 2008-05-08  Richard Hult  <richard@imendio.com>
1875
1876         * gdk/quartz/gdkeventloop-quartz.c (poll_func): Only set the fake
1877         fd's revents, not the first one. Fixes bug #531056, spotted by
1878         Yevgen Muntyan.
1879
1880 2008-05-07  Tor Lillqvist  <tml@novell.com>
1881
1882         * gtk-zip.sh.in: Add gtk-update-icon-cache.exe and more man pages
1883         to the dev zipfile.
1884
1885 2008-05-05  Matthias Clasen  <mclasen@redhat.com>
1886
1887         Apply a patch by Marek Kasik <mkasik@redhat.com> to display
1888         more printer status information in the print dialog. 
1889
1890         * modules/printbackends/cups/gtkprintbackendcups.c: Translate
1891         printer-state-reasons into suitable messages and icons.
1892
1893         * gtk/stock-icons/16/gtk-print-error.{svg,png}:
1894         * gtk/stock-icons/16/gtk-print-report.{svg,png}:
1895         * gtk/stock-icons/16/gtk-print-warning.{svg,png}:
1896         * gtk/Makefile.am: 
1897         * gtk/gtkiconfactory.c:
1898         * gtk/gtkstock.h: New stock icons to display printer state.
1899
1900 2008-05-07  Michael Natterer  <mitch@imendio.com>
1901
1902         * gdk/gdkinternals.h
1903         * gdk/gdkevents.c
1904         * gdk/directfb/gdkevents-directfb.c
1905         * gdk/quartz/gdkevents-quartz.c
1906         * gdk/win32/gdkevents-win32.c
1907         * gdk/x11/gdkevents-x11.c (_gdk_windowing_event_data_copy):
1908         order parameters src,dest and make src const.
1909
1910 2008-05-06  Richard Hult  <richard@imendio.com>
1911
1912         * gdk/gdkevents.c: (gdk_event_copy), (gdk_event_free):
1913         * gdk/gdkinternals.h: Add private backend data to events, and
1914         handle it when copying/freeing events. Currently only needed in
1915         the quartz backend.
1916
1917         * gdk/directfb/gdkevents-directfb.c:
1918         * gdk/quartz/gdkevents-quartz.c:
1919         * gdk/win32/gdkevents-win32.c:
1920         * gdk/x11/gdkevents-x11.c: (_gdk_windowing_event_data_copy)
1921         (_gdk_windowing_event_data_free): Add stubs for X11, win32 and
1922         directfb. Implement for quartz. Part of fixing bug #473822.
1923
1924 2008-05-05  Richard Hult  <richard@imendio.com>
1925
1926         * gdk/quartz/gdkmain-quartz.c (_gdk_windowing_init): Initalize
1927         framework if there is one.
1928
1929 2008-05-05  Michael Natterer  <mitch@imendio.com>
1930
1931         * gtk/gtkcellrenderercombo.h
1932         * gtk/gtkcellrendererspin.h
1933         * gtk/gtkfilechooserbutton.h: style cleanups for the sake of
1934         consistency.
1935
1936         * gtk/gtkfilechooserdialog.h
1937         * gtk/gtkfilechooserwidget.h
1938         * gtk/gtkscalebutton.h: reorder instance and class structs to be
1939         in canonical order.
1940
1941 2008-05-04  Richard Hult  <richard@imendio.com>
1942
1943         * gdk/quartz/gdkkeys-quartz.c (maybe_update_keymap): Check if
1944         gdk_unicode_to_keyval() worked before using the result. Makes
1945         function keys work, bug #530156. Also add F16 to the function key
1946         map.
1947
1948 2008-05-04  Richard Hult  <richard@imendio.com>
1949
1950         * gdk/quartz/gdkkeys-quartz.c (maybe_update_keymap): Remove stray
1951         semicolon after if statement. Fixes bug #530963, patch from Yevgen
1952         Muntyan.
1953
1954 2008-05-02  Michael Natterer  <mitch@imendio.com>
1955
1956         * gtk/gtk.h: add 15 files that were missing (they all got included
1957         indirectly by including gtk.h, so should have been here in the
1958         first place).
1959
1960 2008-05-02  Michael Natterer  <mitch@imendio.com>
1961
1962         * modules/input/imthai.c: use GETTEXT_PACKAGE instead of "gtk20".
1963
1964 2008-05-01  Richard Hult  <richard@imendio.com>
1965
1966         * gtk/gtkquartz.c (_gtk_quartz_set_selection_data_for_pasteboard):
1967         Prevent crash, fixes bug #530153. Patch from Yevgen Muntyan.
1968
1969 2008-05-01  Matthias Clasen  <mclasen@redhat.com>
1970
1971         * modules/imput/imthai.c: Register the right translation domain.
1972
1973 2008-04-30  Matthias Clasen  <mclasen@redhat.com>
1974
1975         Bug 529386 – Printing options hidden by blacklisted option
1976
1977         * modules/printbackend/cups/gtkprintbackendcups.c
1978         (cups_printer_get_options): Fix the blacklist handling. 
1979         Patch by Marek Kašík.
1980         
1981 2008-04-30  Richard Hult  <richard@imendio.com>
1982
1983         * gdk/quartz/GdkQuartzView.c: Simplify check for zero sized expose
1984         area.
1985
1986 2008-04-30  Richard Hult  <richard@imendio.com>
1987
1988         * gdk/quartz/gdkevents-quartz.c: (_gdk_events_queue): Don't send
1989         nsevents with the gdk lock held, fixes deadlock when doing manual
1990         window resizing with threading enabled.
1991
1992 2008-04-30  Richard Hult  <richard@imendio.com>
1993
1994         * gdk/quartz/gdkevents-quartz.c:
1995         (get_keyboard_modifiers_from_ns_event), (create_key_event): Map
1996         Alt to Alt and Cmd to Meta. This is not only more logical but also
1997         makes it easier to have Mac-like behavior.
1998
1999 2008-04-25  Björn Lindqvist  <bjourne@gmail.com>
2000
2001         * gtk/gtkentry.c: (gtk_entry_expose) Use existing window size when
2002         painting the flat box instead of recalculating it. (#437493,
2003         Ricardo Cruz)
2004
2005 2008-04-25  Michael Emmel  <mike.emmel@gmail.com>
2006
2007         Bug 529841 – incorrect position in directfb 
2008
2009         * gdk/directfb/gdkwindow-directfb.c: fix y = abs_x 
2010
2011 2008-04-25  Johan Dahlin  <jdahlin@async.com.br>
2012
2013         * gtk/gtkwidget.h: include <atk/atk.h> instead of <atk/atkobject.h>
2014
2015 2008-04-25  Michael Natterer  <mitch@imendio.com>
2016
2017         * gtk/gtkprintcontext.h: include <pango/pango.h> instead of
2018         <pango/pango-layout.h>.
2019
2020         * gtk/gtkiconfactory.c
2021         * gtk/gtkimmodule.c
2022         * gtk/gtkmain.c
2023         * gtk/gtkmodules.c
2024         * gtk/queryimmodules.c: remove inclusion of single files from
2025         pango, none of them was actually needed.
2026
2027         * modules/input/gtkimcontextime.c: include <pango/pango.h> instead of
2028         <pango/pango-utils.h>.
2029
2030 2008-04-25  Michael Natterer  <mitch@imendio.com>
2031
2032         * gdk/gdkfont.h: include <pango/pango.h> instead of
2033         <pango/pango-font.h>.
2034
2035 2008-04-25  Michael Natterer  <mitch@imendio.com>
2036
2037         * gtk/gtkmountoperation.h: include <gdk/gdk.h> instead of
2038         <gdk/gdkscreen.h>.
2039
2040 2008-04-21  Michael Natterer  <mitch@imendio.com>
2041
2042         * gtk/gtkselection.c: add tons of g_return_if_fail() instead of
2043         crashing when NULL pointers get passed.
2044
2045 2008-04-18  Michael Natterer  <mitch@imendio.com>
2046
2047         * gtk/gtkenums.h: move a few '{' to their own lines so all enums
2048         here have the same style.
2049
2050 2008-04-18  Michael Natterer  <mitch@imendio.com>
2051
2052         * gtk/gtkicontheme.h
2053         * gtk/gtkrecentmanager.h: include <gdk/gdk.h> instead of
2054         <gdk/gdkscreen.h>.
2055
2056         * gtk/gtkbuilderparser.c
2057         * gtk/gtklinkbutton.c
2058         * gtk/gtkpreview.c
2059         * gtk/gtkrecentchooserdefault.c
2060         * gtk/gtkrecentchoosermenu.c
2061         * modules/input/gtkimcontextthai.c: remove inclusion of single
2062         files from gdk, none of the includes was actually needed.
2063
2064 2008-04-18  Michael Natterer  <mitch@imendio.com>
2065
2066         * gdk/gdk.h: reorder one include so they are all alphabetical.
2067
2068 2008-04-18  Michael Natterer  <mitch@imendio.com>
2069
2070         * modules/printbackends/cups/gtkprintercups.[ch]
2071         (gtk_printer_cups_get_ppd_name): change return value and local
2072         variable to const gchar* to fix warning about discarding const
2073         qualifier.
2074
2075 2008-04-18  Emmanuele Bassi  <ebassi@gnome.org>
2076
2077         * gtk/gtkrecentmanager.c:
2078         (gtk_recent_manager_set_filename): Keep the default storage
2079         file in $HOME, as we don't have a migration code in place yet.
2080
2081 2008-04-18  Michael Natterer  <mitch@imendio.com>
2082
2083         * gtk/gtkrecentmanager.c (gtk_recent_manager_clamp_to_age):
2084         g_strfreev() the uris returned by g_bookmark_file_get_uris().
2085
2086 2008-04-17  Michael Natterer  <mitch@imendio.com>
2087
2088         * gtk/gtkiconfactory.c (get_default_icons): register the
2089         GTK_STOCK_PAGE_SETUP icon.
2090
2091 2008-04-17  Michael Natterer  <mitch@imendio.com>
2092
2093         * gtk/gtktooltips.c (gtk_tooltips_destroy): no need to
2094         g_return_if_fail(tooltips != NULL);
2095
2096 2008-04-16  Tristan Van Berkom <tvb@gnome.org>
2097
2098         * gtk/gtkwindow.c: Chain up in buildable_finish()
2099
2100         * gtk/gtkbuilder.c: _gtk_builder_get_absolute_filename() handle
2101         cases where g_path_get_dirname() returns "."
2102
2103         * docs/reference/gtk/tmpl/gtklabel.sgml, 
2104         docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation
2105         for the <attributes> tags on GtkLabel
2106
2107 2008-04-15  Emmanuele Bassi  <ebassi@gnome.org>
2108
2109         * gtk/gtkrecentmanager.c:
2110         (gtk_recent_manager_real_changed): Fix last commit, and
2111         complete the gtk-recent-files-max-age semantics: if the
2112         property is set to 0 then purge the list.
2113
2114 2008-04-15  Emmanuele Bassi  <ebassi@gnome.org>
2115
2116         Bug 488507 – boundless growth of .recently-used.xbel file
2117         slows down applications
2118
2119         * gtk/gtkrecentmanager.c:
2120         (gtk_recent_manager_init),
2121         (gtk_recent_manager_real_changed),
2122         (gtk_recent_manager_set_filename),
2123         (gtk_recent_manager_clamp_to_age): Clamp the recently
2124         used resources list by the age of its items, using
2125         the newly added GtkSettings property.
2126
2127         * gtk/gtksettings.c (gtk_settings_class_init): Add the
2128         gtk-recent-files-max-age property, controlling the
2129         maximum age of the items in the recently used resources
2130         list.
2131
2132 2008-04-15  Emmanuele Bassi  <ebassi@gnome.org>
2133
2134         * gtk/gtkrecentmanager.c:
2135         (gtk_recent_manager_add_item_query_info),
2136         (gtk_recent_manager_add_item): Emit the ::changed signal
2137         at the end of the asynchronous MIME type query.
2138
2139 2008-04-15  Emmanuele Bassi  <ebassi@gnome.org>
2140
2141         Bug 487375 – gtkrecent apps poll ~/.recently-used.xbel
2142         every 5 seconds
2143
2144         * gtk/gtkrecentmanager.c: Use GFileMonitor to check for
2145         changes in the recently used resources storage file, and
2146         drop the timeout-based poll.
2147
2148         * ChangeLog: Fix attribution of the patch of the previous
2149         commit.
2150
2151 2008-04-15  Emmanuele Bassi  <ebassi@gnome.org>
2152
2153         Bug 506062 – gtk_recent_manager_add_item does not detect mime
2154         type on Windows
2155
2156         * configure.in: Depend on gio-2.0
2157
2158         * gtk/gtkrecentmanager.c:
2159         (gtk_recent_manager_add_item_query_info_cb),
2160         (gtk_recent_manager_add_item): Use GIO to (asynchronously)
2161         query the MIME type of the passed URI (based on a patch by
2162         Armin Burgmeier)
2163
2164 2008-04-11  Carlos Garnacho  <carlos@imendio.com>
2165
2166         * gtk/gtkassistant.c (gtk_assistant_set_current_page): Add current
2167         page to visited page list instead of next current page. (#527466,
2168         patch by Marcus Brinkmann)
2169
2170 2008-04-11  Tristan Van Berkom <tvb@gnome.org>
2171
2172         * gtk/gtklabel.c: Added <attributes> / <attribute>
2173         custom tags to parse pango attributes into labels (#527486).
2174
2175         * tests/buildertest.c: Added tests for GtkLabel custom
2176         tag parsing.
2177
2178 2008-04-10  Carlos Garnacho  <carlos@imendio.com>
2179
2180         * gtk/gtknotebook.c (hide_drag_window): Do not call
2181         gtk_widget_set_parent_window(), using widget->window instead of NULL
2182         to unset is the wrong thing, and gtk_widget_unparent() will already 
2183         take care of this (#467698, patch by Sébastien Granjoux)
2184
2185 2008-04-08  Tor Lillqvist  <tml@novell.com>
2186
2187         * demos/gtk-demo/builder.c (quit_activate, about_activate): Mark
2188         these functions with G_MODULE_EXPORT.
2189
2190 2008-04-08  Tomas Bzatek  <tbzatek@redhat.com>
2191
2192         * gtk/gtkfilesystem.c: (gtk_file_info_render_icon),
2193         (gtk_file_system_volume_render_icon):
2194         Fix fallback icon rendering size
2195
2196 2008-04-08  Michael Natterer  <mitch@imendio.com>
2197
2198         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): fix a
2199         touchscreen-mode keynav corner case: when navigating to the parent
2200         menu, make sure we don't close two menus at the same time in case
2201         the deepest open menu has no selectable items.
2202
2203 2008-04-06  Tristan Van Berkom <tvb@gnome.org>
2204
2205         * gtk/gtkwidget.c: Clarified a g_warning message regarding
2206         parsing accelerators from builder files.
2207
2208 2008-04-03  Cody Russell  <bratsche@gnome.org>
2209
2210         * gtk/gtkprintoperation-win32.c: Fix variable declared in the middle
2211         of the block. (#526021, reported by Kazuki IWAMOTO)
2212
2213 2008-04-03  Tor Lillqvist  <tml@novell.com>
2214
2215         Bug 330743 - Up/down spinbuttons won't take zeros and exhibit very
2216         strange behavior
2217
2218         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text) [Win32]: Add
2219         workaround for a specific kind of screwed up locale setting.
2220
2221 2008-04-02  Matthias Clasen  <mclasen@redhat.com>
2222
2223         * gdk/x11/gdkcolor-x11.c: Don't call XFreeColormap on foreign
2224         colormaps.  Found by Daniel Berrange.
2225
2226 2008-04-02  Björn Lindqvist  <bjourne@gmail.com>
2227
2228         * tests/autotestfilechooser.c: Cover
2229         GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER action in tests for current
2230         name. (#346058, Joe Halliwell)
2231
2232 2008-04-02  Federico Mena Quintero  <federico@novell.com>
2233
2234         Fix http://bugzilla.gnome.org/show_bug.cgi?id=492134 - The file
2235         chooser incorrectly substitutes and expands a ~ when you type it
2236         in the filename entry.
2237
2238         * gtk/gtkfilesystemunix.c (expand_tilde): Ensure that empty
2239         basenames result in a slash-terminated pathname.
2240         gtk_file_system_unix_parse() is correct, but it was splitting
2241         "/home/username" into path="/home" and file_part="username", which
2242         is not what the caller wants when the entry has just "~" or
2243         "~username".
2244
2245 2008-04-02  Tor Lillqvist  <tml@novell.com>
2246
2247         * gtk/Makefile.am: Don't bother compiling gtksearchenginebeagle.c
2248         and gtksearchenginetracker.c on Windows.
2249
2250         * gtk/gtksearchengine.c: Don't define HAVE_BEAGLE and HAVE_TRACKER
2251         on Windows.
2252
2253 2008-04-01  Cody Russell  <bratsche@gnome.org>
2254
2255         * configure.in: Bump required Cairo to 1.5.2.
2256
2257         * gtk/gtkprintoperation-win32.c: Add support for using the new
2258         cairo_win32_printing_surface for printing.  Also fixed to use
2259         cairo_surface_show_page(). (#488833 and #521178)
2260
2261 2008-03-31  Cody Russell  <bratsche@gnome.org>
2262
2263         * demos/gtk-demo/printing.c (draw_page): Move down each line in         
2264         units of text_height rather than in units of data->font_size.
2265         (totally awesome catch by Dom Lachowicz)
2266
2267 2008-03-28  Richard Hult  <richard@imendio.com>
2268
2269         * gdk/quartz/gdkevents-quartz.c: (gdk_event_translate),
2270         (_gdk_quartz_events_trigger_crossing_events): Defer the generated
2271         event to the mainloop and don't generate one at all if the
2272         toplevel didn't change. Use the actual window and not the toplevel
2273         as event window. These changes make the generated crossing events
2274         match the X11 behavior and fixes issues with e.g. tooltips,
2275         comboboxes and menus.
2276
2277         * gdk/quartz/GdkQuartzView.c: Don't update the tracking rect if
2278         the view has no window, it will be updated as soon as it's put
2279         inside a window.
2280
2281         * gdk/quartz/gdkwindow-quartz.c:
2282         (_gdk_quartz_window_debug_highlight): Make it possible to track
2283         multiple windows with debug highlighting.
2284         (show_window_internal): Remove workaround for tooltips and popups
2285         that is no longer needed with the above changes.
2286
2287 2008-03-26  Federico Mena Quintero  <federico@novell.com>
2288
2289         * gtk/gtkfilechooserentry.c (commit_completion_and_refresh): New
2290         helper function; factored out from the functions that commit the
2291         current suggested autocompletion and that refresh the entry's paths.
2292         (gtk_file_chooser_entry_activate): Use commit_completion_and_refresh().
2293         (_gtk_file_chooser_entry_get_file_part): Likewise.
2294         (_gtk_file_chooser_entry_get_current_folder): Likewise.  This
2295         makes the entry have the correct paths when *not* using any form
2296         of completion (and makes the file chooser work when clicking the
2297         OK button).
2298
2299 2008-03-25  Richard Hult  <richard@imendio.com>
2300
2301         * gdk/quartz/gdkevents-quartz.c:
2302         (_gdk_quartz_events_trigger_crossing_events): Bail out early if we
2303         can't find a matching window.
2304
2305         * gdk/quartz/gdkwindow-quartz.c: (show_window_internal): Add a
2306         comment, and only trigger an event for non-temp windows, fixes
2307         problems for tooltips caused by the workarounds for the
2308         problematic tracking rect API.
2309
2310 2008-03-25  Richard Hult  <richard@imendio.com>
2311
2312         * gdk/quartz/gdkwindow-quartz.c:
2313         (gdk_window_quartz_process_all_updates): Plug a leak and add a
2314         check that we have a toplevel before accessing it.
2315
2316 2008-03-24  Tor Lillqvist  <tml@novell.com>
2317
2318         Bug 524151 - Dragging of 0-byte files results in an empty filename
2319         on Windows XP and above
2320
2321         * gdk/win32/gdkdnd-win32.c (resolve_link): Check for the file
2322         being empty first. For some reason ISHellLink and IPersistFile
2323         succeeds in interpreting empty files as shortcuts, claiming the
2324         target of the shortcut is an empty path.
2325
2326         Change the function to take the wide character file name that the
2327         caller already has anyway, to avoid a superfluous conversion from
2328         UTF-8 to UTF-16.
2329
2330 2008-03-23  Björn Lindqvist  <bjourne@gmail.com>
2331
2332         * gdk-pixbuf/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Guard
2333         against NULL pointer. (#467051, Gian Mario Tagliaretti)
2334
2335 2008-03-23  Cody Russell  <bratsche@gnome.org>
2336
2337         * gdk/win32/gdkevents-win32.c (show_window_recurse):
2338         Check window state for GDK_WINDOW_STATE_ICONIFIED before doing
2339         ShowWindow (SW_RESTORE).  This fixes a problem where tearing off
2340         menus from a maximized window would force the window to restore
2341         its size. (#518846)
2342
2343 2008-03-23  Johan Dahlin  <johan@gnome.org>
2344
2345         * gtk/gtk-builder-convert:
2346         Properly convert GtkImageMenuItems which use stock labels but don't
2347         have any children.
2348         (#523932, Brian Pepple)
2349         
2350 2008-03-22  Matthew Barnes  <mbarnes@redhat.com>
2351
2352         * gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells):
2353         New function implements GtkCellLayoutClass::get_cells.  (#523787)
2354
2355 2008-03-22  Tor Lillqvist  <tml@novell.com>
2356
2357         Bug 523782 - Leftover call to GDK_THREADS_LEAVE() in gtktoolbar.c
2358
2359         * gtk/gtktoolbar.c (slide_idle_handler): Remove obviously wrong
2360         GDK_THREADS_LEAVE() call. Approved by mclasen.
2361
2362 2008-03-22  Björn Lindqvist  <bjourne@gmail.com>
2363
2364         * gtk/gtkexpander.c (gtk_expander_get_label):
2365         gtk_label_get_label() should be used instead of
2366         gtk_label_get_text(). (#353088, Xan Lopez)
2367
2368 2008-03-21  Tor Lillqvist  <tml@novell.com>
2369
2370         Import the GDI+ gdk-pixbuf loaders for Windows by Dominic
2371         Lachowicz and Alberto Ruiz into the GTK+ tree, from the
2372         gdip-pixbuf-loader module.
2373
2374         * configure.in: Add switch --disable-gdiplus-loaders that disables
2375         building of the GDI+ loaders.
2376
2377         When including loaders in the gdk-pixbuf library, and building
2378         GDI+ loaders, either build in all the GDI+ loaders or none of
2379         them. Use just -DINCLUDE_gdiplus in $INCLUDED_LOADER_DEFINE to
2380         signal building them in.
2381
2382         Add Automake conditionals BUILD_GDIPLUS_LOADERS to indicate
2383         whether the GDI+ loaders should be built and INCLUDE_GDIPLUS to
2384         indicate whether they should be built-in.
2385         
2386         For the rest of the changes, see gdk-pixbuf/ChangeLog.
2387         
2388 2008-03-20  Tor Lillqvist  <tml@novell.com>
2389
2390         * gtk/Makefile.am: Revert accidental change that went in as part
2391         of the commit on 2008-03-18. Do use grep -o. Unbreaks build on
2392         Darwin. On Windows one has to use a newer GNU grep that has -o,
2393         for instance the one from gnuwin32, instead of the oldish one in
2394         MSYS that doesn't have -o.
2395
2396 2008-03-20  Tor Lillqvist  <tml@novell.com>
2397
2398         * tests/testfilechooserbutton.c (chooser_update_preview_cb): Don't
2399         pass NULL for %s to g_message().
2400         (main): Drop unnecessary call to gtk_widget_destroy().
2401
2402 2008-03-20  Tor Lillqvist  <tml@novell.com>
2403
2404         Bug 314084 - GTK+ dialogs should not be placed partially offscreen
2405
2406         * gtk/gtkwindow.c (clamp): New function. Clamps a window position
2407         in one dimension, or centered in case it doesn't fit.
2408         (clamp_window_to_rectangle): Simplify. Call clamp() for x and y
2409         dimensions.
2410
2411 2008-03-18  Tor Lillqvist  <tml@novell.com>
2412
2413         Bug 523225 - modules/input/im*.c: MODULE_ENTRY macros make illegal code
2414         
2415         * modules/input/im*.c: Modify the MODULE_ENTRY macro so the
2416         G_MODULE_ENTRY decoration can be put in a more correct place.
2417
2418 2008-03-18  Sven Neumann  <sven@gimp.org>
2419
2420         * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): set
2421         alternative button order on the password dialog.
2422
2423 2008-03-18  Tor Lillqvist  <tml@novell.com>
2424
2425         Bug 99192 - Add --with-include-input-modules
2426
2427         * configure.in: Add --with-included-immodules switch. Handled in a
2428         similar way as the --with-included-loaders switch. For each input
2429         method module foo: Collect the list of input modules to be built
2430         into libgtk into INCLUDED_IMMODULE_OBJ. Collect a list of
2431         -DINCLUDE_IM_foo definitions into INCLUDED_IMMODULE_DEFINE.
2432         Define Automake conditionals INCLUDE_IM_FOO.
2433
2434         * modules/input/Makefile.am: For modules to be included in libgtk,
2435         build a static library.
2436         
2437         * modules/input/im*.c: Use MODULE_ENTRY macros much like in
2438         gdk-pixbuf to get unique names for the functions called by libgtk
2439         in the included case. Use G_MODULE_EXPORT in the non-included case
2440         so that we don't unnecessarily export unneeded random global
2441         symbols on Windows.
2442
2443         * gtk/Makefile.am: Build the included modules and link them into libgtk.
2444
2445         * gtk/gtkimmodule.c: Handle the built-in modules. Remove
2446         copy/paste leftover mentions of "themes" in comments.
2447
2448 2008-03-18  Tor Lillqvist  <tml@novell.com>
2449
2450         * tests/Makefile.am: Build testmountoperation only on Unix for now.
2451
2452 2008-03-17  Christian Kellner  <gicmo@gnome.org>
2453
2454         Implement GtkMountOperation, a subclass of GMountOperation
2455         to be used with gio wherever there is the need to ask the
2456         user for credentials or questions while mounting a volume.
2457         This is bug #522245
2458
2459         * gtk/gtkmountoperation.c:
2460         * gtk/gtkmountoperation.h:
2461         Implement GtkMountOperation.
2462         
2463         * gtk/gtk.h: Add gtkmountoperation.h
2464         * gtk/Makefile.am: Add gtkmountoperation.[hc]
2465         * gtk/gtk.symbols: Add symbols of GtkMountOperation.
2466         * tests/testmountoperation.c: Test program for it.
2467         * tests/Makefile.am: Add testmountoperation.
2468
2469 2008-03-17  Emmanuele Bassi  <ebassi@gnome.org>
2470
2471         * gtk/gtkcontainer.c: Properly document
2472         gtk_container_set_focus_child(). (#521739, Andrew Cowie)
2473
2474 2008-03-16  Alberto Ruiz <aruiz@gnome.org>
2475
2476         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: more descriptive
2477         style names for the ComboBox thickness style
2478
2479 2008-03-16  Alberto Ruiz <aruiz@gnome.org>
2480
2481         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc:
2482         * modules/engines/ms-windows/msw_style.c (draw_box) (draw_arrow)
2483         (combo_box_draw_arrow) (setup_msw_rc_style): draw box does more
2484         intelligent separation for the xp theming engine and the classic
2485         theme while drawing the GtkComboBox button.  combobox_draw_arrow
2486         is not used anymore, commented.  The style has been updated to fix
2487         border/thickness glitches in the combobox according to the fixes
2488         commited regarding bug #521442. (bug #461805)
2489
2490 2008-03-16  Alberto Ruiz <aruiz@gnome.org>
2491
2492         * gtk/gtkcombobox.c: (gtk_combo_box_size_allocate) The child is
2493         now aware of both the combobox and frame (if has-frame is set)
2494         thickness and border. (bug #521442)
2495
2496 2008-03-15  Andre Klapper  <a9016009@gmx.de>
2497
2498         * configure.in: Added "si" to ALL_LINGUAS.
2499
2500 2008-03-15  Matthias Clasen  <mclasen@redhat.com>
2501
2502         * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
2503         Set window type hint on the search popup.  (#522279, Danny Baumann)
2504
2505 2008-03-15  Matthias Clasen  <mclasen@redhat.com>
2506
2507         * gtk/gtkimcontextsimple.c: Emit preedit_start/_end as
2508         appropriate.  (#521934, Huang Peng)
2509
2510 2008-03-14  Michael Natterer  <mitch@imendio.com>
2511
2512         * gdk/gdkspawn.h
2513         * gtk/gtkbuilderprivate.h
2514         * gtk/gtkfilechoosersettings.c
2515         * gtk/gtksearchenginesimple.c
2516         * gtk/tests/liststore.c
2517         * gtk/tests/treestore.c: remove single-file includes of GLib
2518         headers or replace them by <glib.h> where needed.
2519
2520 2008-03-14  Michael Natterer  <mitch@imendio.com>
2521
2522         * gtk/gtkadjustment.c: coding style cleanup.
2523
2524         (gtk_adjustment_set_property): no need to call g_object_notify()
2525         on the set properties.
2526
2527         Implement GObject::dispatch_properties_changed() and make sure we
2528         emit "changed" when anything but the "value" property changes.
2529
2530 2008-03-14  Tor Lillqvist  <tml@novell.com>
2531
2532         * gdk/win32/gdkevents-win32.c: Drop the support for the
2533         MSH_MOUSEWHEEL message that MSDN says is used only on NT 3.51 and
2534         Win95. Thanks to mitch for noticing this obsolete code.
2535
2536 2008-03-14  Cody Russell  <bratsche@gnome.org>
2537
2538         * examples/scribble-xinput/scribble-xinput.c: Changed
2539         'void int main()' to 'int main()'. (#522211, Liqing Huang)
2540         
2541 2008-03-14  Richard Hult  <richard@imendio.com>
2542
2543         * gdk/quartz/gdkwindow-quartz.c:
2544         (gdk_window_quartz_process_all_updates): Patch from Paul Davis,
2545         only flush the toplevel once per update.
2546
2547 2008-03-13  Federico Mena Quintero  <federico@novell.com>
2548
2549         * gtk/gtkfilechooserentry.c (create_completion_feedback_window):
2550         Set the mouse cursor of the feedback window to invisible, so that
2551         we respect GtkEntry's invisible cursor while typing.
2552
2553 2008-03-13  Federico Mena Quintero  <federico@novell.com>
2554
2555         * gtk/gtkfilechooserentry.c (show_completion_feedback_window): Put
2556         the feedback window at entry_height/2 pixels to the right of the
2557         cursor, for a cheap "M-width / 2" spacing.
2558
2559 2008-03-13  Sven Neumann  <sven@gimp.org>
2560
2561         * gtk/gtkfilechooserdefault.c
2562         * gtk/gtkprintunixdialog.c: set alternative button order for
2563         overwrite confirmation dialogs (bug #522191).
2564
2565 2008-03-13  Sven Neumann  <sven@gimp.org>
2566
2567         * gtk/gtkprintunixdialog.c (add_custom_button_to_dialog)
2568         (overwrite_confirmation_dialog): added some line-breaks for
2569         readability.
2570
2571 2008-03-12  Federico Mena Quintero  <federico@novell.com>
2572
2573         Rework the way completion works in GtkFileChooserEntry.  Fixes
2574         http://bugzilla.gnome.org/attachment.cgi?bugid=314873 - 
2575         Tab completion should work even if the cursor is not at the end of
2576         the entry.
2577
2578         * gtk/gtkfilechooserentry.c: Change the strategy by which we do
2579         completion.
2580
2581         We distinguish between two cases:
2582
2583                 - autocompletion - happens only in the Open modes by
2584                   inserting and selecting the common prefix as you type.
2585
2586                 - explicit completion - happens when you hit Tab.
2587
2588         When some type of completion needs to happen, the entry first
2589         parses its input and sees if it needs to initiate a folder load.
2590         Completion will not happen until the folder finishes loading.
2591
2592         If the folder is already completely loaded, then completion is
2593         performed immediately.  Otherwise, the entry queues a pending
2594         completion and starts loading the new folder (or waits until the
2595         current folder is completely loaded).
2596
2597         Tab completion is allowed to happen even if the cursor is not at
2598         the end of the entry.
2599
2600         There is a new feedback mechanism for explicit completion, so that
2601         you will get an Emacs-like tip whenever there are ambiguities in
2602         completion, no matches, etc.  (This needs to be polished so that
2603         we support RTL entries and all the fancy Pango layout in GtkEntry).
2604
2605         The only remaining thing to fix is the popup suggestion window.
2606         Unfortunately, GtkEntryCompletion does not let us do what we want,
2607         and will need further changes.
2608
2609 2008-03-12  Tor Lillqvist  <tml@novell.com>
2610
2611         Bug 510000 - GtkStatusIcon doesn't reshow after explorer.exe crash
2612
2613         * gtk/gtkstatusicon.c [Win32]: Keep a list of status icons. Check
2614         for the TaskbarCreated message in the window procedure for the
2615         dummy "tray observer" window we create. When we get a
2616         TaskbarCreated message, iterate over the status icons and re-add
2617         them to the task bar, and update them by calling
2618         gtk_status_icon_update_image().
2619
2620         Move some ifdefs around to avoid unused functions.
2621
2622 2008-03-12  Tor Lillqvist  <tml@novell.com>
2623
2624         * config.h.win32.in: Update to match what configure produces.
2625
2626 2008-03-12  Jens Granseuer  <jensgr@gmx.net>
2627
2628         * modules/printbackends/cups/gtkprintbackendcups.c:
2629         (cups_printer_prepare_for_print): Don't define variables in the
2630         middle of a block. (#522067)
2631
2632 2008-03-12  Matthias Clasen  <mclasen@redhat.com>
2633
2634         * gtk/gtkprintunixdialog.c: Add an overwrite confirmation 
2635         dialog for print-to-file.  (#474302, Marek Kašík)
2636
2637 2008-03-12  Matthias Clasen  <mclasen@redhat.com>
2638
2639         * modules/printbackends/cups/gtkprintbackendcups.c: Fix a crash
2640         (#469210, Wouter Bolsterlee)
2641
2642 2008-03-12  Matthias Clasen  <mclasen@redhat.com>
2643
2644         * gtk/gtkpagesetup.c (gtk_page_setup_copy): Don't leak 
2645         paper_size here.  (#488820, Morten Welinder)
2646
2647 2008-03-12  Michael Natterer  <mitch@imendio.com>
2648
2649         * acconfig.h: remove this deprecated file.
2650
2651         * configure.in: added comments to all instances of AC_DEFINE() so
2652         config.h can be completely generated from configure.in.
2653
2654 2008-03-12  Michael Natterer  <mitch@imendio.com>
2655
2656         * modules/printbackends/cups/gtkprintbackendcups.c: include
2657         <glib/gstdio.h> for g_fopen().
2658
2659 2008-03-11  Matthias Clasen  <mclasen@redhat.com>
2660
2661         * modules/printbackends/cups/gtkprintbackendcups.c: Use
2662         g_ascii_formatd when formatting custom paper sizes, since
2663         cups doesn't handle , as decimal separator.  (#521548)
2664
2665 2008-03-11  Tor Lillqvist  <tml@novell.com>
2666
2667         Bug 469868 - Filenames with colon ":" are not saved correctly
2668
2669         * gtk/gtkfilechooserentry.c (insert_text_callback)
2670         (delete_text_callback) [Win32]: New functions to make sure that
2671         colons used otherwise than as a separator after a drive letter, or
2672         characters that are always illegal in file names, are rejected on
2673         input. This means that the GTK+ file chooser can't be used to
2674         input full names of alternate data streams, but oh well. There are
2675         still more checks that could be done on the file names, see the
2676         bug report. But this will do for now.
2677         (_gtk_file_chooser_entry_init) [Win32]: Connect above functions.
2678
2679 2008-03-11  Jordi Mallach  <jordi@sindominio.net>
2680
2681         * configure.in (ALL_LINGUAS): Add ca@valencia (Valencian-Catalan).
2682
2683 2008-03-11  Michael Natterer  <mitch@imendio.com>
2684
2685         * gdk/linux-fb/*: removed linux-fb backend files.
2686
2687         * acconfig.h
2688         * config.h.win32.in
2689         * docs/README.linux-fb
2690         * gtk/Makefile.am: remove remaining traces of linux-fb.
2691
2692         * gtk/gtkwindow-decorate.c: same here. There is some code that
2693         calls into linux-fb to set window move/resize callbacks. I put it
2694         in #if 0 as a reminder because we did use decorated windows with
2695         the DirectFB backend and it did work, so I don't really know why
2696         this code is needed or how it could work with DirectFB back then.
2697         The file does actually compile now if DECORATE_WINDOWS is defined,
2698         but I didn't test with DirectFB to check if it does anything.
2699
2700 2008-03-11  Alberto Ruiz  <aruiz@gnome.org>
2701
2702         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
2703         Take thickness into account in the size allocation of the child widgets in
2704         list mode.
2705         Fixes #521442
2706
2707 2008-03-11  Richard Hult  <richard@imendio.com>
2708
2709         * gdk/quartz/gdkwindow-quartz.c: Implement gdk_window_reparent.
2710
2711 2008-03-10  Tor Lillqvist  <tml@novell.com>
2712
2713         * tests/teststatusicon.c (do_exit, popup_menu): Add the
2714         possibility to test what happens if the process just calls exit()
2715         without any orderly cleanup of GTK+.
2716
2717 2008-03-10  Tor Lillqvist  <tml@novell.com>
2718
2719         * gtk/gtktrayicon-win32.c: Remove from SVN, finally.
2720
2721 2008-03-10  Tor Lillqvist  <tml@novell.com>
2722
2723         Bug 520286 - Non-deletable window has no minimize / maximize buttons
2724
2725         * gdk/win32/gdkmain-win32.c (_gdk_win32_window_style_to_string):
2726         New debugging output function that decodes a set of WS_* bits.
2727
2728         * gdk/win32/gdkprivate-win32.h: Declare it.
2729
2730         * gdk/win32/gdkwindow-win32.c (update_single_system_menu_entry):
2731         New function that enables or disables one menu entry in the system
2732         menu of a top-level window. (The corresponding decoration will
2733         then also be enabled or disabled (grayed).)
2734
2735         (update_style_bits): Do as the comment says and don't try to
2736         update the window style based on the GdkWMFunctions set for the
2737         window.
2738                    
2739         (update_system_menu): New function that enables or disables the
2740         system menu entries based on a window's stored set of
2741         GdkWMFunctions.
2742
2743         (gdk_window_set_functions): Call update_system_menu() instead of
2744         update_style_bits().
2745
2746 2008-03-10  Emmanuele Bassi  <ebassi@gnome.org>
2747
2748         * README.in: Reword the 2.14 release notes entry about the
2749         deprecation of the gtkitemfactory.h header, and fix typos
2750         and grammar.
2751
2752 2008-03-08  Alberto Ruiz  <aruiz@gnome.org>
2753
2754         * modules/engines/ms-windows/msw_style.c (draw_shadow):
2755         Do not draw frame if parent if combobox.
2756         (draw_box):
2757         Uses scrollbar width system metrics for combobox button.
2758         Fixes #461805 for XP theme engine.
2759
2760 2008-03-07  Johan Dahlin  <johan@gnome.org>
2761
2762         * gtk/gtkbuilder.c:
2763         * gtk/gtkbuilderparser.c:
2764         * gtk/gtkbuilderprivate.h:
2765         * gtk/gtkiconfactory.c:
2766         * tests/buildertest.c:
2767         - Treat enums like enums and not values
2768         - Avoid invalid free, in case of more than two sources
2769         - Add better error messages
2770         - Add much improved tests
2771         (#520979, Christian Persch)
2772
2773 2008-03-07  Carlos Garnacho  <carlos@imendio.com>
2774
2775         * gtk/gtkiconfactory.c (gtk_icon_factory_buildable_custom_tag_end):
2776         Fix build.
2777
2778 2008-03-06  Federico Mena Quintero  <federico@novell.com>
2779
2780         Fix http://bugzilla.gnome.org/show_bug.cgi?id=505857 -
2781         GtkFileChooserDialog should set a default response button if the
2782         app doesn't set it.  Based on a patch by Chris Wang <chris.wang@sun.com>.
2783
2784         * gtk/gtkfilechooserdialog.c (is_stock_accept_response_id): New
2785         function, refactor from where there was duplicated code.
2786         (gtk_file_chooser_dialog_map): Look at the buttons in our
2787         action_area.  If the response ID for a button is one of the stock
2788         ones, make it the default response button.
2789
2790 2008-03-06  Johan Dahlin  <jdahlin@async.com.br>
2791
2792         * docs/reference/gtk/tmpl/gtkiconfactory.sgml:
2793         * gtk/gtkbuilder.c:
2794         * gtk/gtkbuilderprivate.h:
2795         * gtk/gtkiconfactory.c:
2796         * tests/buildertest.c:
2797         Implement GtkBuildable on GtkIconFactory, to make
2798         it possible to register custom stock icons.
2799         Fixes #517066
2800
2801 2008-03-06  Johan Dahlin  <johan@gnome.org>
2802
2803         Make gtk-doc happy:
2804         
2805         * gtk/gtkstyle.c: npoints->n_points.
2806         * gtk/gtktestutils.h: widget->spinner
2807         * gtk/gtktestutils.c: argc->argcp, argv->argvp
2808
2809 2008-03-06  William Lachance <wrlach@gmail.com>
2810
2811         * gtk/gtkfilechooserdefault.c: Oops, forgot to make the raw "%H:%M" 
2812         string localizable (as it should be). 
2813
2814 2008-03-06  William Lachance <wrlach@gmail.com>
2815
2816         * gtk/gtkfilechooserdefault.c: Don't print "Today at" in front of
2817         the time for today's date. It's redudant. (see bug #410517).
2818
2819 2008-03-06  Xan Lopez  <xan@gnome.org>
2820
2821         * gtk/gtkfixed.c: fix typo in documentation.
2822
2823 2008-03-06  Johan Dahlin  <jdahlin@async.com.br>
2824
2825         * gtk/gtkitemfactory.h:
2826         * gtk/gtktypeutils.h:
2827         Move GtkTranslateFunc to gtktypeutils.h so we can completely
2828         deprecate gtkitemfactory.h. 
2829
2830         * gtk/gtkactiongroup.h:
2831         * gtk/gtkstock.h:
2832         Do not include gtkitemfactory.h directly, instead include gtktypeutils.h
2833
2834         * README.in: 
2835         Add a note describing this slight incompatible change
2836         
2837 2008-03-06  Johan Dahlin  <johan@gnome.org>
2838
2839         * gtk/gtkpreview.h: Avoid double-deprecation.
2840
2841 2008-03-06  Michael Natterer  <mitch@imendio.com>
2842
2843         * gtk/gtk.h
2844         * gtk/Makefile.am: move the remaining deprecated widgets to the
2845         separate sections and replaced spaces by tabs in Makefile.am
2846
2847 2008-03-05  Johan Dahlin  <johan@gnome.org>
2848
2849         * configure.in: Add --disable-cups option.
2850         (#513826, Alberto Ruiz)
2851
2852         * gtk/gtk.h: 
2853         * gtk/Makefile.am:
2854         Separate broken and deprecated sources and headers into different sections
2855
2856         * tests/buildertest.c (test_list_store): Restore accidentally broken test.
2857
2858 2008-03-05  Kristian Rietveld  <kris@imendio.com>
2859
2860         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted):
2861         short-circuit in case an empty root level would be build (and thus
2862         directly destroyed) if no virtual root has been set.
2863
2864 2008-03-04  Matthias Clasen  <mclasen@redhat.com>
2865
2866         * modules/printbackends/cups/gtkprintbackendcups.c: 
2867         Honor cups user default options from ~/.cups/lpoptions
2868         (#469210, Stijn Hoop)
2869
2870 2008-03-04  Michael Natterer  <mitch@imendio.com>
2871
2872         * gtk/gtkcellview.c
2873         * gtk/gtkcolorbutton.c
2874         * gtk/gtkentrycompletion.c
2875         * gtk/gtkfontbutton.c
2876         * gtk/gtkiconview.c
2877         * gtk/gtkobject.c
2878         * gtk/gtkpaned.c
2879         * gtk/gtkpreview.c: don't include "gtksignal.h".
2880
2881         * gtk/gtkfilefilter.c
2882         * gtk/gtkrecentchoosermenu.c
2883         * gtk/gtkrecentfilter.c
2884         * gtk/gtktext.c: don't include "gtkobject.h".
2885
2886 2008-03-04  Simos Xenitellis  <simos@gnome.org>
2887
2888         Patch from http://bugzilla.gnome.org/show_bug.cgi?id=321896
2889         - Synch gdkkeysyms.h/gtkimcontextsimple.c with X.org 6.9/7.0
2890         
2891         * gdk/gdkkeysyms.h: Updated file from upstream (using script from 
2892         same directory).
2893         
2894         * gtk/gtkimcontextsimpleseqs.h (gtk_compose_seqs_compact[]): New 
2895         file, contains compose sequences that used to exist in 
2896         gtk/gtkimcontextsimple.c
2897
2898         * gtk/compose-parse.py: Script to generate compose 
2899         sequences from upstream (Xorg).
2900
2901         * gtk/gtkimcontextsimple.c (compare_seq_index, check_compact_table, 
2902         check_algorithmically): New functions. First two search in
2903         gtk_compose_seqs_compact[] for matching compose sequence, third
2904         tries NFC normalisation on incoming compose sequence.
2905         (gtk_im_context_simple_filter_keypress): 
2906         Adds searching with check_compact_table(), check_algorithmically().
2907
2908 2008-03-03  Carlos Garnacho  <carlos@imendio.com>
2909
2910         Fix http://bugzilla.gnome.org/show_bug.cgi?id=417389 - Make the
2911         scrollwheel work in GtkPathBar.
2912
2913         * gtk/gtkpathbar.h (struct _GtkPathBar): New field event_window.
2914
2915         * gtk/gtkpathbar.c (gtk_path_bar_realize): New function.  Create
2916         an input-only window, event_window, which we'll use to capture
2917         scroll events.
2918         (gtk_path_bar_map): Show the event_window under the rest of the
2919         windows, so it will be a catch-all for unhandled events.
2920
2921 2008-03-03  Sven Neumann  <sven@gimp.org>
2922
2923         * gtk/gtkfilechooserbutton.c (G_DEFINE_TYPE_WITH_CODE): fixed a
2924         typo in the documentation of the GtkFileChooserButtons::file-set
2925         signal (see bug #353196).
2926
2927 2008-03-03  Tor Lillqvist  <tml@novell.com>
2928
2929         * gtk-zip.sh.in: Add gail bits. Simplify check for message catalog
2930         location.
2931
2932 2008-03-02  Johan Dahlin  <johan@gnome.org>
2933
2934         * gtk/gtkiconview.c (gtk_icon_view_paint_item): 
2935         Remove left-over focus_pad variable.
2936         (#490892, Claudio Saavedra)
2937
2938         * docs/tutorial/gtk-tut.sgml: Remove an extra space and swap word order
2939         (#518166, Matt Kraai)
2940
2941 2008-03-02  Johan Dahlin  <johan@gnome.org>
2942
2943         * docs/tutorial/gtk-tut.sgml: Add a missing space
2944         (#517954, Matt Kraai)
2945
2946 2008-03-03  Tor Lillqvist  <tml@novell.com>
2947
2948         * modules/engines/ms-windows/msw_style.c (draw_box): Check that
2949         the widget is a GtkButton before casting.
2950
2951 2008-03-02  Johan Dahlin  <johan@gnome.org>
2952
2953         * configure.in: Compare using = instead of ==, which is portable.
2954         (#490787, Thomas Klausner)
2955
2956 2008-03-02  Johan Dahlin  <johan@gnome.org>
2957
2958         * tests/Makefile.am (noinst_PROGRAMS): Remove autotestkeywords, it's added later,
2959         fixes non-C++ build.
2960         (#496032, Nelson Benitez)
2961
2962 2008-02-29  Johan Dahlin  <johan@gnome.org>
2963
2964         * demos/gtk-demo/demo.ui:
2965         * gtk/gtkbuilderparser.c:
2966         * gtk/gtkbuilderprivate.h:
2967         * gtk/gtkliststore.c:
2968         * tests/buildertest.c:
2969         Add translatable/context and comment attributes on
2970         <col> tags under a GtkListStore. Refactor parts of the
2971         translation api and make it available inside gtk+ itself.
2972         Update tests and example.
2973         Fixes a part of #518642
2974
2975 2008-02-29  Johan Dahlin  <johan@gnome.org>
2976
2977         * gtk/gtkbuilder.c:
2978         Add missing g_return_val_if_fail checks for public API.
2979
2980         * gtk/gtkbuilderparser.c:
2981         * gtk/gtkbuilderprivate.h:
2982         Do not use g_error for a few more errors, instead set
2983         the GError sent in through add_from_file/add_from_string.
2984         * tests/buildertest.c:
2985         Add a couple of new parsing tests.
2986         (#519199, Pavel Syomin)
2987
2988 2008-02-29  Federico Mena Quintero  <federico@novell.com>
2989
2990         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): When
2991         refreshing an existing folder (i.e. when we are about to reload
2992         its file list), turn off the folder's is_finished_loading flag.
2993         Otherwise callers which do ::is_finished_loading() followed by
2994         ::list_children() will get nothing.
2995
2996 2008-02-29  Cody Russell  <bratsche@gnome.org>
2997
2998         * docs/tutorial/gtk-tut.sgml: Fix tutorial documentation to
2999         say 'gtk_main_quit()' instead of 'gtk_quit()'. (#517908, Matt Kraai)
3000
3001 2008-02-28  Matthias Clasen  <mclasen@redhat.com>
3002
3003         * gtk/gtkcalendar.h: Remove trailing comma from enum to
3004         make the compiler happy.  (#517295, Sylvain Pasche)
3005
3006 2008-02-27  Michael Natterer  <mitch@imendio.com>
3007
3008         * gtk/gtkmenushell.c
3009         * gtk/gtktable.c
3010         * gtk/gtktext.c
3011         * gtk/gtktipsquery.c
3012         * gtk/gtktoolbar.c
3013         * gtk/gtktreeitem.c
3014         * gtk/gtktreeview.c
3015         * gtk/gtkviewport.c
3016         * gtk/gtkwin32embedwidget.c: remove g_return_if_fail() from
3017         private functions and virtual function implementations.
3018
3019 2008-02-27  Richard Hult  <richard@imendio.com>
3020
3021         * gdk/quartz/GdkQuartzView.c:
3022         * gdk/quartz/GdkQuartzView.h:
3023         * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_decorations):
3024         Fix performance regression for borderless transparent windows
3025         with shadow.
3026
3027 2008-02-27  Emmanuele Bassi  <ebassi@gnome.org>
3028
3029         * tests/testgtk.c: Revert back to r19454.
3030
3031 2008-02-27  Sven Neumann  <sven@gimp.org>
3032
3033         * gtk/Makefile.am (GTK_PRINT_PREVIEW_COMMAND): when building the
3034         Quartz backend, use a native Mac OS X application for the print
3035         preview (bug #518624).
3036
3037 2008-02-26  Michael Natterer  <mitch@imendio.com>
3038
3039         * gtk/gtktextbufferserialize.c (parse_info_free): don't g_free()
3040         the members of info->tag_stack since they are a) gobjects and b)
3041         not even owned by us, ugh... Fixes crash when deserializing fails.
3042
3043 2008-02-26  Sven Neumann  <sven@gimp.org>
3044
3045         * docs/tools/shooter.c (find_toplevel_window)
3046         * docs/tools/widgets.c (find_toplevel_window): fixed signedness of
3047         argument passed to XQueryTree().
3048
3049 2008-02-25  Matthias Clasen  <mclasen@redhat.com>
3050
3051         * gtk/gtksearchenginebeagle.c: Look for libbeagle.so.1 and
3052         don't use beagle_query_add_hit_type.
3053
3054 2008-02-25  Richard Hult  <richard@imendio.com>
3055
3056         * gdk/quartz/gdkevents-quartz.c
3057         (_gdk_quartz_events_trigger_crossing_events): Fix build on tiger.
3058
3059 2008-02-24  Richard Hult  <richard@imendio.com>
3060
3061         * gdk/quartz/GdkQuartzWindow.c: Prevent hidden windows from being
3062         shown without gdk's control when clicking the dock icon.
3063
3064 2008-02-24  Richard Hult  <richard@imendio.com>
3065
3066         * gdk/quartz/gdkprivate-quartz.h:
3067         * gdk/quartz/gdkeventloop-quartz.c: (got_fd_activity), (poll_func):
3068         Use the subtype field for the custom event that is used to wake up
3069         the mainloop so we can have other custom event types.
3070
3071         * gdk/quartz/gdkevents-quartz.c:
3072         (_gdk_quartz_events_trigger_crossing_events):
3073         * gdk/quartz/gdkwindow-quartz.c: (show_window_internal): Create
3074         crossing events after showing a window if necessary, to work
3075         around problems with the tracking rect API.
3076
3077 2008-02-22  Dominic Lachowicz  <domlachowicz@gmail.com>
3078
3079         * demos/gtk-demo/printing.c (do_printing): gtk-demo printing gives 
3080         wrong results on win32 because it doesn't set the printing units, 
3081         which affect the transformation of the cairo context 
3082         (#347125, Erik van Pienbroek)
3083
3084 2008-02-22  Tor Lillqvist  <tml@novell.com>
3085
3086         * tests/pixbuf-init.c: Add file missing from SVN, from the tarball.
3087
3088 2008-02-22  Dominic Lachowicz  <domlachowicz@gmail.com>
3089
3090         * gdk-pixbuf/queryloaders.c (loader_sanity_check): It's perfectly
3091         acceptable for a module to only support the save_to_callback()
3092         method if it marks itself as WRITABLE
3093
3094 2008-02-16  Matthias Clasen  <mclasen@redhat.com>
3095         
3096         * configure.in: Bump version
3097
3098 2008-02-16  Matthias Clasen  <mclasen@redhat.com>
3099
3100         * === Released 2.13.0 ===
3101
3102         * Makefile.decl: Start Xvfb at depth 16 so cairo doesn't choke.
3103
3104 2008-02-21  Tor Lillqvist  <tml@novell.com>
3105
3106         * gtk/gtkfilechooserdefault.c (list_mtime_data_func) [Win32]: Must
3107         pass the format string to strftime in the C library's locale's
3108         charset, not the system's. Correspondingly, the return value from
3109         strftime() is in the C library's locale's charset. (#509885)
3110
3111 2008-02-20  Richard Hult  <richard@imendio.com>
3112
3113         * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_decorations): Set
3114         the right window level and shadow after recreating the window.
3115
3116         * gdk/quartz/GdkQuartzView.c: (drawRect): Invalidate the shadow if
3117         necessary after drawing (bug #517338).
3118
3119 2008-02-20  Marc-Andre Lureau  <marcandre.lureau@gmail.com>
3120
3121         * gtk/gtkbuilder.c (_gtk_builder_enum_from_string): fix missing
3122         call to g_type_class_unref in case of error. (#517563)
3123
3124 2008-02-18  Sven Neumann  <sven@gimp.org>
3125
3126         * gtk/Makefile.am (STOCK_ICONS)
3127         * gtk/stock-icons/16/gtk-page-setup.png
3128         * gtk/stock-icons/24/gtk-page-setup.png: added page-setup icons
3129         taken from GNOME icon theme.
3130
3131         * gtk/gtkstock.[ch]: added GTK_STOCK_PAGE_SETUP. Closes bug #514410.
3132
3133 2008-02-18  Runa Bhattacharjee <runabh@gmail.com>
3134
3135         * configure.in: Added Kannada (kn) to ALL_LINGUAS
3136
3137 2008-02-17  Johan Dahlin  <johan@gnome.org>
3138
3139         * gtk/gtk-builder-convert (GtkBuilderConverter._add_action_from_menuitem): 
3140         When converting a stock item based on the label, remove the label property.
3141
3142 2008-02-17  Richard Hult  <richard@imendio.com>
3143
3144         * gdk/quartz/GdkQuartzWindow.c: (showAndMakeKey): Update the
3145         position after showing the window since the window manager might
3146         not place it where we requested in the first places.
3147
3148 2008-02-17  Richard Hult  <richard@imendio.com>
3149
3150         * gdk/quartz/gdkwindow-quartz.c: (show_window_internal),
3151         (_gdk_quartz_window_detach_from_parent),
3152         (_gdk_quartz_window_attach_to_parent), (gdk_window_focus): Clear
3153         the toplevel ordering list in all places where the order is
3154         potentially changed. Fixes mouse focus issues for windows with
3155         a transient parent set.
3156
3157 2008-02-17  Richard Hult  <richard@imendio.com>
3158
3159         * gdk/quartz/gdkevents-quartz.c
3160         (_gdk_quartz_events_update_mouse_window): Highlight the mouse
3161         window when event debugging is enabled.
3162
3163 2008-02-16  Richard Hult  <richard@imendio.com>
3164
3165         * gdk/quartz/gdkevents-quartz.c (create_scroll_event): Add state
3166         to the scroll event (bug #516757, Paul Davis).
3167
3168 2008-02-16  Matthias Clasen  <mclasen@redhat.com>
3169
3170         * NEWS: Updates
3171
3172 2008-02-16  Matthias Clasen  <mclasen@redhat.com>
3173
3174         * gtk/gtklinkbutton.c: Show the URI in a tooltip.  (#505480,
3175         Teppo Turtiainen)
3176
3177 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3178
3179         * gdk/Makefile.am: Don't install private headers. (#463510)
3180
3181         * gdk/gdkinternal.h: Include gdkmedialib.h here, not in
3182         the installed header gdkprivate.h.
3183
3184 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3185
3186         * gtk/gtknotebook.c (gtk_notebook_stop_reorder): Prevent
3187         a crash with hidden, reorderable tabs.  (#513230, 
3188         Mike Massonnet, patch by Carlos Garnacho)
3189
3190 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3191
3192         * gtk/gtkuimanager.c (gtk_ui_manager_insert_action_group):
3193         Warn on duplicate action group names.  (#501746, Christian
3194         Persch)
3195
3196 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3197
3198         * gtk/Makefile.am:
3199         * modules/other/gail/tests/Makefile.am:
3200         * modules/other/gail/libgail-util/Makefile.am:
3201         * modules/other/gail/Makefile.am: Fix builddir!=srcdir
3202         builds.  (#516254,  Yevgen Muntyan)
3203
3204 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3205
3206         * gtk/gtkentry.c:
3207         * gtk/gtkfilesel.c:
3208         * gtk/gtklabel.c:
3209         * gtk/gtkpathbar.c: Use gtk_drag_*_add_{text,uri}_targets 
3210         instead of hardcoded target tables.  (#516092, Christian Persch)
3211
3212 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3213
3214         * gtk/gtkselection.c (gtk_target_list_add_text_targets): Don't
3215         add the same target atom twice.  (#516087, Christian Persch)
3216
3217 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3218
3219         * tests/testfilechooser.c: Add a --backend option.
3220         (#516073, Christian Persch)
3221
3222 2008-02-16  Richard Hult  <richard@imendio.com>
3223
3224         * gdk/quartz/gdkprivate-quartz.h:
3225         * gdk/quartz/gdkwindow-quartz.c: Add debugging code to highlight a
3226         gdkwindow.
3227
3228 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3229
3230         * configure.in: Go back to 2.13.0 as version for now,
3231         as there was no consensus to do the jump.
3232
3233         * many other places: Update Since: tags.
3234
3235 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3236
3237         * gtk/gtk.symbols: Add gtk_tool_shell_get_type
3238
3239         * gtk/gtktestutils.c: Don't generate unnecessary PLT entries
3240
3241 2008-02-15  Richard Hult  <richard@imendio.com>
3242
3243         * gdk/quartz/GdkQuartzView.c: Adapt to the change to use frame
3244         instead of bounds when resizing windows.
3245
3246 2008-02-15  Matthias Clasen  <mclasen@redhat.com>
3247
3248         * gdk/x11/gdkkeys-x11.c:
3249         * gdk/x11/gdkcolor-x11.c:
3250         * gdk/gdkpolyreg-generic.c: Fix a small doc issues.
3251
3252 2008-02-15  Matthias Clasen <mclasen@redhat.com>
3253
3254         * gdk/x11/gdktestutils-x11.c:
3255         * gdk/x11/gdkscreen-x11.c: Documentation fixes.
3256
3257 2008-02-15  Tor Lillqvist  <tml@novell.com>
3258
3259         * gtk/gtkfilesystemwin32.c (get_viewable_logical_drives): Don't
3260         leak Registry key handles. (#516578)
3261
3262 2008-02-14  Richard Hult  <richard@imendio.com>
3263
3264         * gdk/quartz/gdkwindow-quartz.c: (gdk_window_focus): Using
3265         makeKeyWindow unfortunately doesn't work in all cases, we must use
3266         makeKeyAndOrderFront.
3267
3268 2008-02-14  Richard Hult  <richard@imendio.com>
3269
3270         * gdk/quartz/gdkwindow-quartz.c: (get_fullscreen_geometry),
3271         (gdk_window_hide), (gdk_window_fullscreen),
3272         (gdk_window_unfullscreen): Make sure we leave fullscreen mode if
3273         the window is hidden.
3274
3275 2008-02-14  Richard Hult  <richard@imendio.com>
3276
3277         * gdk/quartz/GdkQuartzWindow.c: Set frame, not bounds when
3278         resizing to be consistent and to avoid introducing an internal
3279         transform in the view.
3280
3281 2008-02-14  Richard Hult  <richard@imendio.com>
3282
3283         * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_open): Coding style
3284         fix.
3285
3286 2008-02-14  Johan Dahlin  <johan@gnome.org>
3287
3288         * gdk/gdktestutils.h
3289         * gtk/gtktestutils.h: Remove ; trailing G_BEGIN/END_DECLS
3290
3291 2008-02-13  Richard Hult  <richard@imendio.com>
3292
3293         * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents):
3294         Remove unused variables.
3295         (gtk_clipboard_set_contents),
3296         (gtk_clipboard_get_owner), (clipboard_unset),
3297         (gtk_clipboard_request_targets): Notify the previous clipboard
3298         owner when the owner changes. Fixes bug #493406.
3299         
3300 2008-02-13  Richard Hult  <richard@imendio.com>
3301
3302         * gdk/quartz/gdkcolor-quartz.c: (gdk_colormap_alloc_colors): Fix
3303         the return value (return number of colors that failed), and handle
3304         RGBA colormap.
3305         (gdk_colormap_free_colors): Fix typo in comment.
3306
3307 2008-02-13  Kristian Rietveld  <kris@imendio.com>
3308
3309         * gtk/gtktreeview.c (gtk_tree_view_stop_rubber_band): only
3310         queue a redraw if the rubber banding has actually been active.
3311
3312 2008-02-12  Matthias Clasen  <mclasne@redhat.com>
3313
3314         * gtk/gtkpapersize.c:
3315         * gtk/gtkprintoperation.c:
3316         * gtk/gtkvolumebutton.c:
3317         * gtk/gtkbulderparser.c: Fix some i18n errors. Pointed
3318         out by Behdad Esfahbod.
3319
3320 2008-02-12  Federico Mena Quintero  <federico@novell.com>
3321
3322         Merged from gtk-2-12:
3323
3324         Don't focus the file list when shortcuts get activated.  This
3325         removes a lot of ambiguity in when the file selection should
3326         change, and makes the overall code flow simpler.
3327
3328         This fixes http://bugzilla.gnome.org/show_bug.cgi?id=419737 -
3329         file/save dialog clears the filename entry when changing
3330         directories.
3331
3332         Also fixes http://bugzilla.gnome.org/show_bug.cgi?id=499940 -
3333         focus should not go to the file list when a shortcut is activated.
3334
3335         * gtk/gtkfilechooserdefault.c
3336         (shortcuts_activate_volume_mount_cb): Don't focus the file list
3337         (shortcuts_activate_get_info_cb): Likewise.
3338
3339         * gtk/gtkfilechooserdefault.c (switch_to_shortcut): Don't focus
3340         the file list (this was the last place where we would focus the
3341         file list explicitly).  If you are in the location entry, for
3342         example, you don't want Alt-Home to take you to the file list; you
3343         just want the current folder to change.  Thanks to Olle Bergkvist
3344         <olle.bergkvist@yahoo.se> for pointing this out in
3345         http://bugzilla.gnome.org/show_bug.cgi?id=419737#c51.
3346         (focus_browse_tree_view_if_possible): Removed.
3347
3348 2008-02-12  Matthias Clasen  <mclasen@redhat.com>
3349
3350         Skip exensions when selecting filenames in the save-as dialog.
3351         (#362516, Carlos Garnacho)
3352
3353         * gtk/gtkfilechooserentry.h:
3354         * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_select_filename):
3355         New function to skip the extension part when selecting a filename.
3356         (_gtk_file_chooser_entry_set_base_folder): Use it here.
3357
3358         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_entry_grab_focus):
3359         ...and here.
3360
3361 2008-02-12  Matthias Clasen  <mclasen@redhat.com>
3362
3363         * gtk/gtkiconview.c: Fix state change reporting for 
3364         accessibility.  (#499835, Rich Burridge, patch by LiYan Zhang)
3365
3366 2008-02-12  Emmanuele Bassi  <ebassi@gnome.org>
3367
3368         * gtk/gtkrecentchooser.c:
3369         (gtk_recent_chooser_class_init): Set the default value of the
3370         :show-not-found property to TRUE, as every implementation sets
3371         it to TRUE already.
3372
3373         * gtk/gtkrecentchooserdefault.c:
3374         (_gtk_recent_chooser_default_init): Sync show_tips to the
3375         default value of the :show-tips property.
3376
3377 2008-02-12  Matthias Clasen  <mclasen@redhat.com>
3378
3379         * gtk/gtkclipboard-quartz.c:
3380         * gtkquartz.c:
3381         * gtkselection.c: Use GSlice for GtkSelectionData.  (#515060,
3382         Christian Persch)
3383
3384 2008-02-12  Kristian Rietveld  <kris@imendio.com>
3385
3386         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row),
3387         (gtk_tree_view_real_toggle_cursor_row): guard against people
3388         deleting the row in question in the selection-changed callback.
3389         (#514621, Andreas Koehler).
3390
3391 2008-02-12  Matthias Clasen  <mclasen@redhat.com>
3392
3393         * gtk/*.c: Unify the handling of various "Enter" keysyms
3394         all over the place.  (#515047, Christian Persch)
3395
3396 2008-02-12  Matthias Clasen  <mclasen@redhat.com>
3397
3398         * gtk/gtkfilesystemmodel.c:
3399         * gtk/gtkprinter.c:
3400         * gtk/gtkwidget.c: Use g_value_set_static_string() where 
3401         appropriate.  (#515042, Christian Persch)
3402
3403 2008-02-12  Matthias Clasen  <mclasen@redhat.com>
3404
3405         * tests/prop-editor.c: Fix a memory leak (#515039, Christian Persch)
3406         
3407 2008-02-12  Matthias Clasen  <mclasen@redhat.com>
3408
3409         * tests/testmerge.c: Fix a memory leak (#515038, Christian Persch)
3410
3411 2008-02-12  Matthias Clasen  <mclasen@redhat.com>
3412
3413         * gtk/gtkfilechooserdefault.c (recent_model_sort_drag_data_get):
3414         (recent_model_sort_drag_data_get):
3415         (search_model_sort_drag_data_get):
3416         * gtk/gtkfilesystemmodel.c (drag_source_drag_data_get):
3417         * gtk/gtkpathbar.c (button_drag_data_get_cb):
3418         Use gtk_selection_data_set_uris() instead of doing it
3419         by hand.  (#514890, Christian Persch)
3420
3421 2008-02-12  Michael Natterer  <mitch@imendio.com>
3422
3423         * gtk/gtkstatusicon.c: #include "gtkmain.h" for
3424         gtk_get_current_event_time().
3425
3426 2008-02-12  Michael Natterer  <mitch@imendio.com>
3427
3428         * gtk/gtkwindow.c (gtk_window_activate_key): simply use
3429         gtk_window_get_key_hash() to get the hash instead of manually
3430         fiddling with quarks and gtk_window_keys_changed(). Also add
3431         g_return_if_fail() to this public function.
3432
3433 2008-02-11  Matthias Clasen  <mclasen@redhat.com>
3434
3435         Support keynav in status icons.  (#473786, Li Yuan)
3436
3437         * gtk/gtkstatusicon.c: Handle keynav, make the tray icon focusable.
3438
3439         * gtk/gtktrayicon-x11.c: Draw a focus rectangle when focused.
3440
3441 2008-02-11  Kristian Rietveld  <kris@imendio.com>
3442
3443         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_reorder)
3444         * gtk/gtkiconview.c (gtk_icon_view_cell_layout_reorder): plug leak
3445         wrt. link deletion from list; contination of fix for #503569.
3446
3447 2008-02-11  Emmanuele Bassi  <ebassi@gnome.org>
3448
3449         * gtk/gtkrecentchoosermenu.c:
3450         (gtk_recent_chooser_menu_constructor): Set no-show-all flag
3451         on the placeholder menu item.
3452
3453         * tests/testrecentchoosermenu.c:
3454         (create_recent_chooser_menu): Use gtk_widget_show_all() to test
3455         whether the placeholder menu item gets shown.
3456
3457 2008-02-10  Cody Russell  <bratsche@gnome.org>
3458
3459         * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder_uri):
3460         Check the return value of _gtk_file_chooser_get_file_system () for
3461         NULL before passing it to gtk_file_system_path_to_uri ().
3462         (#515667, Francesco Montorsi)
3463
3464 2008-02-10  Philip Withnall  <pwithnall@svn.gnome.org>
3465
3466         * gtk/gtkbuilder.c: Improve the documentation for
3467         gtk_builder_connect_signals. (#514471)
3468
3469 2008-02-10  Matthias Clasen  <mclasen@redhat.com>
3470
3471         * gtk/gtkrecentaction.c: Propagate local-only.  (#511987, 
3472         Jonh Wendell)
3473
3474 2008-02-08  Cody Russell  <bratsche@gnome.org>
3475
3476         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start):
3477         Removed an extra semicolon.  (#515219, reported by Kazuki IWAMOTO)
3478
3479 2008-02-08  Richard Hult  <richard@imendio.com>
3480
3481         * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Ignore the
3482         delta from the NSEvent for now, generating multiple scroll events
3483         results in a lot of events getting queued up and things get really
3484         slow.
3485
3486 2008-02-08  Sven Herzberg  <sven@imendio.com>
3487
3488         Adjust the code to match the documentation, examples, "common sense"
3489         and existing applications.
3490
3491         * gtk/gtkaction.c: (_gtk_action_sync_menu_visible): take into account
3492         that a GtkMenu for a <popup> element doesn't have to have a GtkAction
3493         assigned
3494
3495 2008-02-07  Cody Russell  <bratsche@gnome.org>
3496
3497         * gdk/win32/gdkevents-win32.c
3498         * gdk/win32/gdkwindow-win32.c: Fixed two declarations in the middle
3499         of a block that were causing compile problems on old
3500         compilers. (#515053, reported by Kazuki IWAMOTO)
3501         
3502 2008-02-07  Michael Natterer  <mitch@imendio.com>
3503
3504         * gtk/gtkcellview.c
3505         * gtk/gtklabel.c
3506         * gtk/gtklayout.c
3507         * gtk/gtklist.c
3508         * gtk/gtkmenu.c
3509         * gtk/gtkmenushell.c
3510         * gtk/gtkmisc.c
3511         * gtk/gtkoptionmenu.c
3512         * gtk/gtkplug.c
3513         * gtk/gtkpreview.c
3514         * gtk/gtkprogress.c
3515         * gtk/gtkradiomenuitem.c
3516         * gtk/gtkscale.c
3517         * gtk/gtkscrolledwindow.c
3518         * gtk/gtksocket.c: remove g_return_if_fail() from private
3519         functions and virtual function implementations.
3520
3521 2008-02-07  Michael Natterer  <mitch@imendio.com>
3522
3523         * gtk/gtkaction.c
3524         * gtk/gtkassistant.c
3525         * gtk/gtkbin.c
3526         * gtk/gtkbox.c
3527         * gtk/gtkcalendar.c
3528         * gtk/gtkcellrenderercombo.c
3529         * gtk/gtkcombobox.c
3530         * gtk/gtkcombo.c
3531         * gtk/gtkdrawingarea.c
3532         * gtk/gtkentrycompletion.c
3533         * gtk/gtkfixed.h
3534         * gtk/gtkgamma.c
3535         * gtk/gtkhpaned.c
3536         * gtk/gtkiconview.c
3537         * gtk/gtkitem.c
3538         * gtk/gtkitemfactory.c: remove g_return_if_fail() from private
3539         functions and virtual function implementations.
3540
3541 2008-02-07  Christian Persch  <chpe@gnome.org>
3542
3543         * gdk/gdkpixbuf-render.c:
3544         (gdk_pixbuf_render_pixmap_and_mask_for_colormap): If the pixbuf has an
3545         alpha channel, use gdk_draw_rgb_32_image to draw it to the pixmap;
3546         otherwise there will be random pixel values in the semi-transparent
3547         area of the pixbuf within the mask. Bug #487865.
3548
3549 2008-02-06  Cody Russell  <bratsche@gnome.org>
3550
3551         * gdk/win32/gdkevents-win32.c: Check if the window is a temp window,
3552         otherwise things get wonky when you click on a menu.  This fixes
3553         a regression caused in #505928.  Thanks to Tor for spotting this
3554         one!  (#514789)
3555
3556 2008-02-06  Michael Natterer  <mitch@imendio.com>
3557
3558         * gtk/gtkcontainer.c
3559         * gtk/gtkexpander.c
3560         * gtk/gtkframe.c
3561         * gtk/gtklabel.c
3562         * gtk/gtkmain.c
3563         * gtk/gtkmenu.c
3564         * gtk/gtkmenuitem.c
3565         * gtk/gtkmenushell.c
3566         * gtk/gtknotebook.c
3567         * gtk/gtkseparatortoolitem.c
3568         * gtk/gtksocket.c
3569         * gtk/gtktextlayout.c
3570         * gtk/gtktoggletoolbutton.c
3571         * gtk/gtktoolbutton.c
3572         * gtk/gtktoolitem.c
3573         * gtk/gtktree.c
3574         * gtk/gtktreeitem.c: replace "foo && GTK_IS_FOO (foo)" by simply
3575         "GTK_IS_FOO (foo)".
3576
3577 2008-02-05  Matthias Clasen  <mclasen@redhat.com>
3578
3579         * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
3580         Allow to store half-open ranges.
3581
3582 2008-02-05  Cody Russell  <bratsche@gnome.org>
3583
3584         * gdk/win32/gdkwindow-win32.c (_gdk_modal_current): Walk
3585         down the stack until we get to a window that is mapped.
3586         Otherwise hiding a window will cause all windows in the app
3587         to be blocked. (#514643)
3588
3589 2008-02-05  Matthias Clasen  <mclasen@redhat.com>
3590
3591         * gtk/updateiconcache.c: Ignore images in the toplevel theme
3592         directory, avoiding one source of invalid caches that has been
3593         spotted in the wild.
3594
3595 2008-02-05  Matthias Clasen  <mclasen@redhat.com>
3596
3597         * gtk/updateiconcache.c: Fix the previous commit to compile.
3598
3599 2008-02-05  Matthias Clasen  <mclasen@redhat.com>
3600
3601         * gtk/updateiconcache.c: Install a printerr handler that
3602         prepends the program name, since gtk-update-icon-cache output
3603         often appears in the middle of other output, e.g. rpm update logs.
3604
3605 2008-02-05  Cody Russell  <bratsche@gnome.org>
3606
3607         * gdk/win32/gdkprivate-win32.h
3608         * gdk/win32/gdkevents-win32.c
3609         * gdk/win32/gdkwindow-win32.c
3610         * gdk/win32/gdkwindow-win32.h
3611         * gdk/win32/gdkwin32.h:
3612         Modal window rework.  (#455627 and #511111)
3613
3614 2008-02-04  Michael Natterer  <mitch@imendio.com>
3615
3616         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_add_attribute):
3617         g_return_if_fail() if the cell is not part of the combo instead of
3618         crashing in the next line.
3619
3620 2008-02-01  Cody Russell  <cody@jhu.edu>
3621
3622         * modules/engines/ms-windows/xp_theme.[ch]
3623         * modules/engines/ms-windows/xp_theme_defs.h
3624         * modules/engines/ms-windows/msw_rc_style.c
3625         * modules/engines/ms-windows/msw_theme_main.c
3626         * modules/engines/ms-windows/msw_style.c: Re-indented and generally
3627         attempted to stylize more like the rest of the gtk+ stack's code.
3628
3629 2008-02-01  Michael Natterer  <mitch@imendio.com>
3630
3631         * tests/testgtk.c: initialize GdkColor structs to fix warning
3632         about uninitialized "pixel" member.
3633
3634         * tests/testactions.c: connect the toolbar_style() callback so it
3635         does something useful and doesn't warn about being defined but not
3636         used.
3637
3638 2008-01-31  Cody Russell  <bratsche@gnome.org>
3639
3640         * gdk/win32/gdkevents-win32.c:
3641         Refactored some of the window hiding/showing code from
3642         WM_ACTIVATE to WM_SIZE and WM_SYSCOMMAND.  Having this
3643         under WM_ACTIVATE was causing the application to go into
3644         a weird state when the user right-clicked on the taskbar
3645         entry of a window that was minimized.  (#505928)
3646         
3647 2008-01-31  Cody Russell  <bratsche@gnome.org>
3648
3649         * gtk/gtkpaned.c (gtk_paned_set_position):
3650         Change queue_resize() to queue_draw(), and add a check for
3651         child2 != NULL in case someone calls this before there is
3652         a child packed in there.  (#144269 again)
3653
3654 2008-01-31  Sven Neumann  <sven@gimp.org>
3655
3656         * gdk/directfb/gdkimage-directfb.c (_gdk_directfb_copy_to_image):
3657         applied patch from Denis Oliver Kropp <dok@directfb.org>.
3658
3659 2008-01-31  Sven Neumann  <sven@gimp.org>
3660
3661         * gdk/directfb/gdkdisplay-directfb.c
3662         * gdk/directfb/gdkdrawable-directfb.c
3663         * gdk/directfb/gdkprivate-directfb.h
3664         * gdk/directfb/gdkwindow-directfb.c: applied patch from Denis
3665         Oliver Kropp <dok@directfb.org>. Fixes remaining warnings.
3666
3667 2008-01-31  Richard Hult  <richard@imendio.com>
3668
3669         * gdk/quartz/GdkQuartzView.c: Another attempt at fixing focus
3670         issues with undecorated windows. Revert the change done on
3671         2008-01-25 and fix it by using the view's bounds instead. The
3672         bounds will always be up to date when setting up the tracking
3673         rect, so this should be more robust.
3674
3675 2008-01-30  Sven Neumann  <sven@gimp.org>
3676
3677         * gdk/directfb/gdkdrawable-directfb.c
3678         * gdk/directfb/gdkwindow-directfb.c
3679         * gdk/directfb/gdkprivate-directfb.h: applied patch from Denis
3680         Oliver Kropp <dok@directfb.org>. Adds debug messages using
3681         DirectFB's debugging system
3682
3683 2008-01-30  Sven Neumann  <sven@gimp.org>
3684
3685         * gdk/directfb/gdkdirectfb.h
3686         * gdk/directfb/gdkdisplay-directfb.c
3687         * gdk/directfb/gdkdrawable-directfb.c
3688         * gdk/directfb/gdkim-directfb.c
3689         * gdk/directfb/gdkimage-directfb.c
3690         * gdk/directfb/gdkinput-directfb.c
3691         * gdk/directfb/gdkmain-directfb.c
3692         * gdk/directfb/gdkpixmap-directfb.c
3693         * gdk/directfb/gdktestutils-directfb.c
3694         * gdk/directfb/gdkvisual-directfb.c
3695         * gdk/directfb/gdkwindow-directfb.c: applied patch from Denis
3696         Oliver Kropp <dok@directfb.org>. Fixes various warnings, some
3697         errors and has some cleanups.
3698
3699 2008-01-30  Michael Natterer  <mitch@imendio.com>
3700
3701         * gtk/gtkbuilderparser.c (parse_custom): use the right type for
3702         "subparser_data" and remove the (gpointer*) cast. Fixes bogus
3703         aliasing warning.
3704
3705         * gtk/updateiconcache.c (add_string): cast const gchar* to
3706         gpointer when inserting in a GHashTable.
3707
3708         * tests/testcalendar.c (calendar_detail_cb): remove const from
3709         return value since it's a newly allocated string.
3710
3711         (calendar_update_details): free the detail.
3712
3713 2008-01-29  Johan Dahlin  <johan@gnome.org>
3714
3715         * demos/gtk-demo/builder.c: (quit_activate), (about_activate),
3716         (do_builder):
3717         * demos/gtk-demo/demo.ui:
3718         Move the about dialog to the glade file, add accessible tags
3719         examples to the markup file.
3720
3721 2008-01-28  Paolo Borelli  <pborelli@katamail.com>
3722
3723         * gtk/gtkprintunixdialog.c (draw_page_cb): do not leak the pango
3724         layout, fixes #512375.
3725
3726 2008-01-28  Michael Natterer  <mitch@imendio.com>
3727
3728         * gtk/gtktextchild.c
3729         * gtk/gtktextview.c: meant to use G_STRFUNC, not G_STRLOC...
3730
3731 2008-01-28  Michael Natterer  <mitch@imendio.com>
3732
3733         * demos/gtk-demo/builder.c (about_activate): use
3734         gtk_about_dialog_set_program_name() instead of the deprecated
3735         set_name().
3736
3737 2008-01-28  Michael Natterer  <mitch@imendio.com>
3738
3739         * gtk/gtktextchild.c
3740         * gtk/gtktextview.c: use G_STRLOC instead of G_GNUC_FUNCTION (which
3741         is deprecated now).
3742
3743 2008-01-26  Johan Dahlin  <johan@gnome.org>
3744
3745         * tests/Makefile.am:
3746         * tests/textbuffertest.c:
3747         Rename textbuffer test and port it to the new test framework
3748         
3749 2008-01-25  Johan Dahlin  <johan@gnome.org>
3750
3751         * gtk/gtktestutils.c (gtk_test_init): Restore accidentally removed
3752         unsetting of GTK_MODULES.
3753
3754         * gtk/gtk-builder-convert
3755         (GtkBuilderConverter._convert_adjustment): Handle the case where
3756         there is no child text node.
3757         (GtkBuilderConverter): Allow xml comments in most places.
3758
3759 2008-01-25  Johan Dahlin  <johan@gnome.org>
3760
3761         * gtk/gtk-builder-convert
3762         (GtkBuilderConverter._convert_combobox_items): Remove the items
3763         even if there are no items set.
3764         (GtkBuilderConverter._add_action_from_menuitem): Convert toggled
3765         signals and tooltips for all menu items subclasses and 
3766         GtkImageMenuItem:label. 
3767         Makes it possible to fully convert and run Jokosher.glade.
3768
3769 2008-01-25  Johan Dahlin  <johan@gnome.org>
3770
3771         * gtk/gtkwidget.c: (gtk_widget_buildable_interface_init),
3772         (gtk_widget_buildable_get_internal_child), (free_action),
3773         (free_relation), (gtk_widget_buildable_parser_finished),
3774         (accessibility_start_element),
3775         (gtk_widget_buildable_custom_tag_start),
3776         (gtk_widget_buildable_custom_finished):
3777         Implement accessible support, fixes #454653.
3778
3779         * gtk/gtk-builder-convert:
3780         Add support for migrating old glade files
3781         
3782         * tests/buildertest.c: (test_widget), (test_file):
3783         Add accessible tests and imprve the test_file function to display
3784         toplevels and run dialogs.
3785
3786 2008-01-25  Richard Hult  <richard@imendio.com>
3787
3788         * gdk/quartz/GdkQuartzView.c: Don't recreate a tracking rect if it
3789         didn't change, fixes focus event issues for undecorated windows.
3790
3791 2008-01-25  Richard Hult  <richard@imendio.com>
3792
3793         * gdk/quartz/gdkwindow-quartz.c: Fix compile warnings (add missing
3794         const and remove unused variables).
3795
3796 2008-01-25  Michael Natterer  <mitch@imendio.com>
3797
3798         * gtk/gtkbutton.h
3799         * gtk/gtkcellrenderer.h
3800         * gtk/gtkimcontext.h
3801         * gtk/gtkstyle.h
3802         * gtk/gtktoolbar.h
3803         * gtk/gtktooltip.h
3804         * gtk/gtktreeprivate.h
3805         * gtk/gtktreeviewcolumn.h
3806         * gtk/gtkwidget.h: add const to constant structs which are passed
3807         into GTK+. Also add some forgotten const for const strings.
3808         Fixes bug #511554.
3809
3810         * gtk/gtkbutton.c
3811         * gtk/gtkcellrenderer.c
3812         * gtk/gtkimcontext.c
3813         * gtk/gtkstyle.c
3814         * gtk/gtktoolbar.c
3815         * gtk/gtktooltip.c
3816         * gtk/gtktreeview.c
3817         * gtk/gtktreeviewcolumn.c
3818         * gtk/gtkwidget.c: changed accordingly.
3819
3820 2008-01-25  Sven Herzberg  <sven@imendio.com>
3821
3822         Reviewed by Johan Dahlin.
3823
3824         * gtk/gtkuimanager.c (gtk_ui_manager_remove_ui): emit a warning if
3825         this is called with something that's not a GtkUIManager
3826
3827 2008-01-24  Johan Dahlin  <johan@gnome.org>
3828
3829         * gtk/gtkdialog.c (gtk_dialog_buildable_get_internal_child): 
3830         Chain up to parent, so widgets can have internal children.
3831
3832 2008-01-22  Mathias Hasselmann  <mathias@openismus.com>
3833
3834         Add gdk_app_launch_context_get_type() to gdk.symbols (#511308, Kazuki
3835         IWAMOTO).
3836
3837         * gdk/gdk.symbols: Add gdk_app_launch_context_get_type().
3838
3839 2008-01-22  Mathias Hasselmann  <mathias@openismus.com>
3840
3841         Use pango_layout_set_height() for calendar details (#506049).
3842
3843         * configure.in: Require 1.19.3 for pango_layout_set_height().
3844         * gtk/gtkcalendar.c: Use pango_layout_set_height() for details.
3845
3846 2008-01-18  Johan Dahlin  <johan@gnome.org>
3847
3848         * gtk/gtk-builder-convert (get_property_node): New method
3849         (GtkBuilderConverter._create_object): Conditionally take a node as
3850         a property value, so don't lose translate/context attributes if they
3851         are set. 
3852         (GtkBuilderConverter._add_action_from_menuitem): Send in Node as
3853         property values instead of strings.
3854         (#509153, Erik van Pienbroek)
3855
3856 2008-01-16  Mathias Hasselmann  <mathias@openismus.com>
3857
3858         Change GtkCalendarDetailFunc to return newly allocated string. (#339540)
3859
3860         * gtk/gtkcalendar.c: Release the memory returned by the detail_func.
3861         * gtk/gtkcalendar.h: Remove G_CONST_RETURN from GtkCalendarDetailFunc.
3862         * tests/testcalendar.c: Duplicate calendar details before returning.
3863
3864 2008-01-16  Christian Persch  <chpe@gnome.org>
3865
3866         * gtk/gtkwidget.c: Store the event mask and extension event mode
3867         directly in the gobject data pointer, instead of in an allocated
3868         gint. Bug #506604.
3869
3870 2008-01-16  Michael Natterer  <mitch@imendio.com>
3871
3872         * configure.in (GDK_PIXBUF_PACKAGES): add "gio-2.0" because
3873         gdk-pixbuf now uses gio functions.
3874
3875 2008-01-16  Matthias Clasen  <mclasen@redhat.com>
3876
3877         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Emit
3878         the notify::model signal.  (#509819, David Zeuthen)
3879
3880 2008-01-15  Michael Natterer  <mitch@imendio.com>
3881
3882         * gdk/gdkdisplay.h
3883         * gdk/gdkdrawable.h
3884         * gdk/gdkevents.h
3885         * gdk/gdkpango.h
3886         * gdk/gdkregion.h
3887         * gdk/gdkrgb.h
3888         * gdk/gdkwindow.h: made more struct pointer and array parameters
3889         const. GDK should now be constified as far as possible without
3890         breaking source compatibility. Includes some minor cleanup like
3891         indentation and s/nfoo/n_foo/ (bug #508544).
3892
3893         * gdk/gdkdisplay.c
3894         * gdk/gdkdraw.c
3895         * gdk/gdkevents.c
3896         * gdk/gdkpango.c
3897         * gdk/gdkregion-generic.c
3898         * gdk/gdkrgb.c
3899         * gdk/directfb/gdkdisplay-directfb.c
3900         * gdk/directfb/gdkwindow-directfb.c
3901         * gdk/quartz/gdkdisplay-quartz.c
3902         * gdk/quartz/gdkwindow-quartz.c
3903         * gdk/win32/gdkdisplay-win32.c
3904         * gdk/win32/gdkwindow-win32.c
3905         * gdk/x11/gdkdisplay-x11.c
3906         * gdk/x11/gdkwindow-x11.c: changed accordingly.
3907
3908 2008-01-14  Michael Natterer  <mitch@imendio.com>
3909
3910         * gtk/gtkrc.c (_gtk_rc_style_unset_rc_property): add cast to fix
3911         const warning.
3912
3913         (gtk_rc_parse_any): change variables to const and introduce
3914         another local variable to fix const warnings.
3915
3916 2008-01-14  Michael Natterer  <mitch@imendio.com>
3917
3918         * gdk/gdkscreen.c (gdk_screen_get_property): cast the return value
3919         of gdk_screen_get_font_options() to gpointer to get rid of const
3920         warning.
3921
3922 2008-01-14  Michael Natterer  <mitch@imendio.com>
3923
3924         * tests/testdnd.c (source_drag_data_get): fix another call to
3925         gtk_selection_data_set().
3926
3927 2008-01-14  Michael Natterer  <mitch@imendio.com>
3928
3929         * gtk/gtkoldeditable.c (gtk_old_editable_selection_received): fix
3930         signedness warning.
3931
3932 2008-01-14  Michael Natterer  <mitch@imendio.com>
3933
3934         * gtk/gtkiconcache.c (find_image_offset): remove unused variable.
3935
3936 2008-01-14  Michael Natterer  <mitch@imendio.com>
3937
3938         * gtk/gtkfilesystemmodel.c (drag_source_drag_data_get): cast
3939         "uris" to guchar* when passing it to gtk_selection_data_set().
3940
3941 2008-01-14  Michael Natterer  <mitch@imendio.com>
3942
3943         * gdk/gdk.h
3944         * gdk/gdkcairo.h
3945         * gdk/gdkcolor.h
3946         * gdk/gdkgc.h
3947         * gdk/gdkinternals.h
3948         * gdk/gdkregion.h
3949         * gdk/gdkwindow.h: made GdkRectangle*, GdkRegion* and GdkColor*
3950         parameters const (bug #508544).
3951
3952         * gdk/gdkcairo.c
3953         * gdk/gdkgc.c
3954         * gdk/gdkwindow.c
3955         * gdk/gdkrectangle.c
3956         * gdk/gdkpolyreg-generic.c
3957         * gdk/gdkregion-generic.c
3958         * gdk/directfb/gdkcolor-directfb.c
3959         * gdk/directfb/gdkgc-directfb.c
3960         * gdk/directfb/gdkgeometry-directfb.c
3961         * gdk/directfb/gdkwindow-directfb.c
3962         * gdk/quartz/gdkcolor-quartz.c
3963         * gdk/quartz/gdkgc-quartz.c
3964         * gdk/quartz/gdkgeometry-quartz.c
3965         * gdk/quartz/gdkwindow-quartz.c
3966         * gdk/win32/gdkcolor-win32.c
3967         * gdk/win32/gdkgc-win32.c
3968         * gdk/win32/gdkgeometry-win32.c
3969         * gdk/win32/gdkprivate-win32.h
3970         * gdk/win32/gdkwindow-win32.c
3971         * gdk/x11/gdkcolor-x11.c
3972         * gdk/x11/gdkgc-x11.c
3973         * gdk/x11/gdkgeometry-x11.c
3974         * gdk/x11/gdkmain-x11.c
3975         * gdk/x11/gdkprivate-x11.h
3976         * gdk/x11/gdkwindow-x11.c: changed accordingly.
3977
3978         * gdk/gdkpolyreg-generic.c: uncruftify to have proper function
3979         headers.
3980
3981 2008-01-14  Mathias Hasselmann  <mathias@openismus.com>
3982
3983         Explain name choice for gtk_tool_item_toolbar_reconfigured.
3984
3985         * gtk/gtktoolitem.c: Add comment expaining name choice for
3986         gtk_tool_item_toolbar_reconfigured.
3987
3988 2008-01-14  Mathias Hasselmann  <mathias@openismus.com>
3989
3990         Make _gtk_tool_item_toolbar_reconfigured public to allow GtkToolShell
3991         implementations to notify its children, when some aspect of their
3992         configuration changed (#509042).
3993
3994         * gtk/gtk.symbols: Add gtk_tool_item_toolbar_reconfigured.
3995         * gtk/gtktoolbar.c, gtk/gtktoolitem.c, gtk/gtktoolitem.h:
3996         Rename _gtk_tool_item_toolbar_reconfigured.
3997
3998 2008-01-12  Mathias Hasselmann  <mathias@openismus.com>
3999
4000         Include <gtk/gtktoolshell.h> from gtk.h.
4001
4002         * gtk/gtk.h: Add gtktoolshell.h
4003
4004 2008-01-12  Mathias Hasselmann  <mathias@openismus.com>
4005
4006         Print angle brackets arround e-mail addresses in the about dialog
4007         (#409520, Mariano Suárez-Alvarez).
4008
4009         * gtk/gtkaboutdialog.c: Keep e-mail brackets in add_credits_page().
4010
4011 2008-01-11 13:28:02  Tim Janik  <timj@imendio.com>
4012
4013         * gtk/gtktestutils.c (gtk_test_create_widget): removed old testutils
4014         special casing so test widgets are always queues for destruction
4015         during teardown.
4016
4017         * gtk/tests/testing.c: removed bits left-over from testing without
4018         gtestutils.h.
4019
4020 2008-01-10  Tor Lillqvist  <tml@novell.com>
4021
4022         * modules/other/gail/libgail-util/Makefile.am
4023         * modules/other/gail/tests/Makefile.am: Link with gtktargetlib and
4024         gdktargetlib.
4025         
4026 2008-01-10  Tor Lillqvist  <tml@novell.com>
4027
4028         * tests/Makefile.am: Build defaultvaluetest only on Unix as it
4029         uses gtkprintunixdialog API.
4030
4031 2008-01-10  Tor Lillqvist  <tml@novell.com>
4032
4033         * gdk/win32/gdkdisplay-win32.c
4034         * gdk/win32/gdkglobals-win32.c
4035         * gdk/win32/gdkprivate-win32.h
4036         * gdk/win32/gdkscreen-win32.c
4037         * gdk/win32/gdkwindow-win32.c: Implement
4038         gdk_screen_get_monitor_width_mm(), gdk_screen_get_monitor_height_mm()
4039         and gdk_screen_get_monitor_plug_name(). Thanks to Kazuki
4040         Iwamoto. (#505753)
4041
4042 2008-01-10  Cody Russell  <bratsche@gnome.org>
4043
4044         * gdk/win32/gdkwindow-win32.c: (gdk_window_set_transient_for),
4045         Properly ref/unref windows and parents.  (#506769)
4046
4047 2008-01-10  Richard Hult  <richard@imendio.com>
4048
4049         * gdk/quartz/gdkwindow-quartz.c: (show_window_internal),
4050         (gdk_window_hide), (move_resize_window_internal): Move the
4051         tracking rect workaround from here...
4052
4053         * gdk/quartz/GdkQuartzWindow.c:
4054         * gdk/quartz/GdkQuartzWindow.h: ...to here, and ignore window
4055         movements during showing/hiding operations. Fixes bug #508516.
4056
4057 2008-01-10  Michael Natterer  <mitch@imendio.com>
4058
4059         * gdk/directfb/gdkscreen-directfb.c
4060         (gdk_screen_get_monitor_width_mm)
4061         (gdk_screen_get_monitor_height_mm)
4062         (gdk_screen_get_monitor_plug_name): add these functions to make
4063         it build again.
4064
4065 2008-01-10  Emmanuele Bassi  <ebassi@gnome.org>
4066
4067         * gtk/gtkrecentchoosermenu.c:
4068         (idle_populate_func), (idle_populate_clean_up): Fix possible
4069         recursion by resetting the idle source id. (#507605, William
4070         Pitcock)
4071
4072 2008-01-10  Kristian Rietveld  <kris@imendio.com>
4073
4074         * gtk/gtktreeview.c (gtk_tree_view_motion_draw_column_motion_arrow),
4075         (_gtk_tree_view_column_start_drag): fully initialize GdkWindowAttr to
4076         avoid valgrind warnings.  (#507751, patch from Christian Persch).
4077
4078 2008-01-10  Kristian Rietveld  <kris@imendio.com>
4079
4080         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_path): Fix
4081         a leak of the path (#504611, patch from Sadrul Habib Chowdhury).
4082
4083 2008-01-10  Kristian Rietveld  <kris@imendio.com>
4084
4085         Fix #477175, reported by Juri Pakaste.
4086
4087         * gtk/gtktreeprivate.h:
4088         * gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): do not set
4089         tree_view->priv->dy here directly, just calculate the new value
4090         and set it on the adjustment,
4091         (gtk_tree_view_adjustment_changed): add guards to not call
4092         gtk_tree_view_dy_to_top_row() if we are currently in
4093         gtk_tree_view_top_row_to_dy(),
4094         (gtk_tree_view_put): fix coordinate annotation: these are bin_window
4095         coordinates, not tree coordinates,
4096         (gtk_tree_view_real_start_editing): add cast.
4097
4098         * gtk/tests/treeview-scrolling.c: add an assertion for checking the
4099         position of the editable in the "create new row and start editing"
4100         tests.
4101
4102 2008-01-09  Michael Natterer  <mitch@imendio.com>
4103
4104         * gtk/gtkcolorsel.c (make_label_spinbutton): remove unused
4105         variable.
4106
4107         * gtk/gtkcombobox.c (gtk_combo_box_detacher)
4108         * gtk/gtkicontheme.c (theme_list_contexts)
4109         (gtk_icon_theme_lookup_icon)
4110         * gtk/gtkimcontextsimple.c (beep_window)
4111         * gtk/gtklinkbutton.c (set_link_color)
4112         * gtk/gtkuimanager.c (child_hierarchy_changed_cb): add casts to
4113         fix warnings.
4114
4115         * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): remove unused
4116         variable and add const to another to fix a warning.
4117
4118 2008-01-07  Matthias Clasen  <mclasen@redhat.com>
4119
4120         * gtk/gtkassistant.c (remove_page): Be more robust when removing 
4121         the current page.  (#499951, Andreas Sandberg)
4122
4123 2008-01-06  Johan Dahlin  <johan@gnome.org>
4124
4125         * gtk/gtkspinbutton.c: Declare value in the example code for
4126         GtkSpinButton::output, as pointed out by Anders Carlsson.
4127
4128 2008-01-06  Christian Persch  <chpe@gnome.org>
4129
4130         * gtk/gtkpagesetupunixdialog.c: Make the labels left-aligned,
4131         and remove an obsolete event box. Bug #506760.
4132
4133 2008-01-06  Johan Dahlin  <johan@gnome.org>
4134
4135         * tests/buildertest.c (test_domain): 
4136         Update, GtkBuilder::translation-domain is no longer set
4137         
4138         * gtk/gtkbuilderparser.c (parse_interface): 
4139         Allow domains to be overridden in <interface>'s if a translation-domain
4140         is set in the builder.
4141         (_gtk_builder_parser_parse_buffer): Do not modify the translation-domain
4142         of the builder, make the domain set in the <interface> apply only to strings
4143         in that interface.
4144         (#496831, Ryan Lortie)
4145
4146         * gtk/gtkbuilder.c: Avoid adding unnecessary trailing newlines 
4147         to g_warning calls.
4148
4149         * gtk/gtktreestore.c (tree_model_end_element): 
4150         Remove an unused variable
4151
4152 2008-01-06  Matthias Clasen  <mclasen@redhat.com>
4153
4154         * gtk/gtkspinbutton.c: Document the ::output signal and
4155         add an example.  (#507566, example by Owen Taylor)
4156
4157 2008-01-06  Johan Dahlin  <johan@gnome.org>
4158
4159         * gtk/gtkcellrenderercombo.c:
4160         (gtk_cell_renderer_combo_get_property),
4161         (gtk_cell_renderer_combo_set_property):
4162         * gtk/gtkcombobox.c: (gtk_combo_box_set_property):
4163         * gtk/gtkcomboboxentry.c: (gtk_combo_box_entry_set_property):
4164         * gtk/gtknotebook.c: (gtk_notebook_set_property):
4165         * gtk/gtkspinbutton.c: (gtk_spin_button_set_property):
4166         * gtk/gtktextbuffer.c: (gtk_text_buffer_set_property),
4167         (gtk_text_buffer_get_property):
4168         * gtk/gtktextview.c: (gtk_text_view_set_property):
4169         * gtk/gtktogglebutton.c: (gtk_toggle_button_set_property):
4170         * gtk/gtktoolbutton.c: (gtk_tool_button_set_property),
4171         (gtk_tool_button_get_property):
4172         * gtk/gtktoolitem.c: (gtk_tool_item_set_property),
4173         (gtk_tool_item_get_property):
4174         * gtk/gtktreeview.c: (gtk_tree_view_set_property):
4175         * gtk/gtkwidget.c: (gtk_widget_set_property):
4176         * gtk/gtkwindow.c: (gtk_window_set_property):
4177         Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently.
4178         Fixes #507585
4179
4180 2008-01-06  Johan Dahlin  <johan@gnome.org>
4181
4182         * gtk/gtk-builder-convert (GtkBuilderConverter._strip_root): 
4183         Make sure that --root works for toplevel widgets.
4184         (#491847, Phil Lello)
4185
4186 2008-01-05  Johan Dahlin  <johan@gnome.org>
4187
4188         * modules/other/gail/tests/Makefile.am: Include Makefile.decl,
4189         to make sure that make test-report works properly
4190
4191 2008-01-05  Christian Persch  <chpe@gnome.org>
4192
4193         * tests/defaultvaluetest.c: Fix mem leak, and don't pass
4194         GType as integer through gpointer. Bug #507395.
4195
4196 2008-01-04  Mathias Hasselmann  <mathias@openismus.com>
4197
4198         Avoid some compiler warnings (#507000).
4199
4200         * gtk/gtkbuilder.c, gtk/gtkbuilderprivate.h: Use proper sign
4201         for value argument of _gtk_builder_flags_from_string.
4202         * gtk/gtkwidget.c: Don't alias the child pointer passed
4203         to gdk_window_get_user_data.
4204
4205 2008-01-04  Michael Natterer  <mitch@imendio.com>
4206
4207         * gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget
4208         to set the time in the returned GdkTimeCoords.
4209
4210 2008-01-03  Emmanuele Bassi  <ebassi@gnome.org>
4211
4212         * gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the
4213         correct comparison function (kudos to Christian Persch and
4214         Claudio Saavedra for spotting this)
4215
4216         * gtk/gtkrecentchooserutils.c:
4217         (sort_recent_items_mru),
4218         (sort_recent_items_lru): Ditto as above.
4219
4220 2008-01-03  Johan Dahlin  <johan@gnome.org>
4221
4222         * tests/defaultvaluetest.c: Make it pass again.
4223
4224 2008-01-02  Johan Dahlin  <johan@gnome.org>
4225
4226         * tests/defaultvaluetest.c (test_type): Ignore a few more tests to 
4227         make it pass on Ubuntu.
4228         (main): Use gtk_test_list_all_types () instead of providing our
4229         own list.
4230         And it no longer passes.
4231
4232 2007-12-30  Johannes Schmid <jhs@gnome.org>
4233
4234         * gtk/gtknotebook.c: (gtk_notebook_stop_reorder):
4235         Also reorder menu when reordering tabs by drag & drop
4236         (Bug #506474)
4237         
4238         * tests/testnotebookdnd.c: (create_notebook_with_notebooks):
4239         Add a menu to one of the notebooks to have a test-case for
4240         the change mentioned above.
4241
4242 2007-12-31  Philip Van Hoof  <pvanhoof@gnome.org>
4243
4244         * gtk/gtktreemodel.c: Using GSlice for GtkTreePath
4245
4246 2007-12-31  Christian Persch  <chpe@gnome.org>
4247
4248         * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_property):
4249         Plug a mem leak. Bug #506107.
4250
4251 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4252
4253         * gtk/gtkiconfactory.c (render_fallback_image): Adjust to
4254         icon cache api change.  (#506135, Kazuki Iwamoto)
4255
4256 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4257
4258         Consider "wide-separators" and "separator-height" style properties:
4259         The separator is drawn using gtk_paint_box instead of cairo, when
4260         "wide-separators" is set. Also do not highlight details for previous
4261         or next month, if their day matches the selected day. (#339540)
4262
4263         * gtk/gtkcalendar.c: Consider "wide-separators" and "separator-height"
4264         in gtk_calendar_size_request and calendar_paint_day
4265         * gtk/gtkstyle.c: Modify gtk_default_draw_box to use special colors
4266         for selected detail separators in GtkCalendar.
4267
4268 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4269
4270         Remove max_detail_height field from GtkCalendarPrivate. (#339540)
4271
4272         * gtk/gtkcalendar.c: Drop max_detail_height field, and use
4273         a local variable instead in gtk_calendar_size_request.
4274
4275 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4276
4277         * tests/defaultvaluetest.c: Add enough exclusions to make the
4278         test succeed.
4279
4280 2007-12-28  Christian Persch  <chpe@gnome.org>
4281
4282         * modules/other/gail/Makefile.am:
4283         * modules/other/gail/tests/*:
4284         * configure.in: Merge tests from standalone gail. Bug #504568.
4285
4286 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4287
4288         * gtk/gtkclipboard.c: Make the finalizer work when display is
4289         not set.
4290
4291 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4292
4293         Draw bottom shadow of GtkCalender headings. (#506113)
4294
4295         * gtk/gtkcalendar.c: Set proper initial height for priv->header_win.
4296
4297 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4298
4299         * gtk/gtkcalendar.c: Document the initial values of year/month/day
4300         properties.
4301
4302 2007-12-28  Christian Persch  <chpe@gnome.org>
4303
4304         * gtk/gtkfontsel.c: (gtk_font_selection_get_property): Plug
4305         a mem leak. Bug #506096.
4306
4307 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4308
4309         * gtk/gtktable.c:
4310         * gtk/gtktreeview.c:
4311         * gtk/gtkprintoperation.c:
4312         * gtk/gtkprogressbar.c:
4313         * gtk/gtkmessagedialog.c:
4314         * gtk/gtknotebook.c:
4315         * gtk/gtkprinter.c:
4316         * gtk/gtkfilesel.c:
4317         * gtk/gtklabel.c:
4318         * gtk/gtklinkbutton.c:
4319         * gtk/gtkmenu.c: More default property value corrections.
4320
4321 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4322
4323         * gtk/gtkitemfactory.c (gtk_item_factory_finalize): Don't unref
4324         accel_group unless it is set.
4325
4326 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4327
4328         * gdk/x11/gdkwindow-x11.c (get_default_title): Don't return NULL.
4329
4330 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4331
4332         * gtk/gtkhandlebox.c: Fix the default values of shadow and 
4333         shadow-type properties.
4334
4335         * gtk/gtkfontsel.c: Fix the default values of several properties.
4336
4337         * gtk/gtkfilesel.c: Fix the default value of the show-fileops
4338         property.
4339
4340         * gtk/gtkcurve.c: Fix the default value of the curve-type property.
4341
4342         * gtk/gtkcombo.c: Fix the default value of the enable-arrows-always
4343         property.
4344
4345 2007-12-28  Johan Dahlin  <johan@gnome.org>
4346
4347         * gtk/gtkdialog.c (gtk_dialog_buildable_custom_finished)
4348         (gtk_dialog_buildable_custom_tag_start): Chain up. 
4349         This makes it possible to have accelerators tags on GtkDialog 
4350         subclasses.
4351
4352 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4353
4354         Add GTK_CALENDAR_SHOW_DETAILS display flag, which chooses if details
4355         are shown within the widget, or just as tooltip. (#339540)
4356
4357         * gtk/gtkcalendar.c, gtk/gtkcalendar.h: Add "show-details" property
4358         aka. GTK_CALENDAR_SHOW_DETAILS, and use it.
4359         * tests/testcalendar.c: Test GTK_CALENDAR_SHOW_DETAILS. Reduce padding
4360         in flags vbox.
4361
4362 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4363
4364         Try more decent appearance of calendar details separator. (#339540)
4365
4366         * gtk/gtkcalendar.c: Use different colors for drawing the separator,
4367         and make it short by one pixel on each side.
4368
4369 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4370
4371         Apply trivial code-style changes from attachement 101101. (#339540)
4372
4373         * tests/testcalendar.c: Some updates to current GTK+ code-style.
4374
4375 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4376
4377         Restructure testcalendar for testing calendar details. (#339540)
4378
4379         * tests/testcalendar.c: Push code arround for testing calendar details.
4380
4381 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4382
4383         Implement GtkTooltip API for calendar details. (#339540)
4384
4385         * gtk/gtkcalendar.c: Add gtk_calendar_query_tooltip and chain it up.
4386         Remember detail overflows in calendar_paint_day to show the tooltip
4387         only when neccessary.
4388
4389 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4390
4391         Without setting "detail-width-chars" and "detail-height-rows"
4392         properties not only the widget has to be redrawn on certain
4393         conditions, but also its size must be recalculated. (#339540)
4394
4395         * gtk/gtkcalendar.c: Add calendar_queue_refresh and call
4396         that function instead of gtk_widget_queue_draw.
4397
4398 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
4399
4400         Consider details for size-request and expose-event. (#339540)
4401
4402         * gtk/gtkcalendar.c: Add gtk_calendar_get_detail and
4403         is_color_attribute functions. Change gtk_calendar_size_request
4404         and calendar_paint_day to consider and show calender details.
4405
4406 2007-12-28  Matthias Clasen  <mclasen@redhat.com>
4407
4408         * gtk/gtkcombobox.c: Introduce local priv variables to 
4409         reduce ->->
4410
4411 2007-12-27  Matthias Clasen  <mclasen@redhat.com>
4412
4413         * gtk/gtkcombobox.c: Correct the default value for the 
4414         tearoff-title property.
4415
4416         * gtk/gtkcellrenderertext.c: Fix the default value for the
4417         wrap-mode and font-scale properties.
4418
4419         * gtk/gtkaspectratio.c: Fix the default value for the ratio
4420         property.
4421
4422 2007-12-27  Matthias Clasen  <mclasen@redhat.com>
4423
4424         * gkt/gtksignal.h: Fix 0<>NULL confusion in gtk_signal_connect...
4425         defines.  (#505708,  MINAMI Hirokazu)
4426
4427 2007-12-27  Christian Persch  <chpe@gnome.org>
4428         
4429         * Makefile.am: Install gail.pc. Bug #505859.
4430
4431 2007-12-27  Mathias Hasselmann  <mathias@openismus.com>
4432
4433         Add infrastructure for GtkCalendar details. (#339540)
4434
4435         * gtk/gtkcalendar.c, gtk/gtkcalendar.h, gtk/gtk.symbols:
4436         Add "detail-width-chars" and "detail-height-rows" properties,
4437         and gtk_calendar_set_detail_func function.
4438
4439 2007-12-27  Xan Lopez  <xan@gnome.org>
4440
4441         * gtk/gtk.symbols: 
4442         * gtk/gtkstyle.c (gtk_border_new, gtk_border_copy): 
4443
4444         Add gtk_border_new to avoid memory allocator confusions when using
4445         GtkBorders. Also, make gtk_border_copy use g_slice_dup. (#454042)
4446
4447 2007-12-27  Christian Persch  <chpe@gnome.org>
4448
4449         * gdk/x11/gdkscreen-x11.c: (init_randr12): Fir the patch from 
4450         bug #504886 not to read unitialised memory.
4451
4452 2007-12-26  Xan Lopez  <xan@gnome.org>
4453
4454         * gtk/gtkstatusbar.c (has_extra_children): take into account the
4455         modification of the internal frame contents to decide if we have
4456         extra children. (#415677)
4457
4458 2007-12-22  Christian Persch  <chpe@gnome.org>
4459
4460         * modules/other/gail/gailitem.c: Fix mem leak. Bug #505556.
4461
4462 2007-12-25  Christian Persch  <chpe@gnome.org>
4463
4464         * modules/other/gail/gailwindow.c: (gail_window_initialize):
4465         Initialise |widget|. Fixes a buglet introduced by the commit from bug
4466         #505226.
4467
4468 2007-12-25  Christian Persch  <chpe@gnome.org>
4469
4470         * modules/other/gail/*.h: Use G_BEGIN_DECLS/G_END_DECLS. Bug #505268.
4471         
4472 2007-12-25  Christian Persch  <chpe@gnome.org>
4473
4474         * modules/other/gail/*.[ch]: Remove relocations from the atk
4475         factories. Remove unused gail_foo_new() functions. Fix object
4476         instantiation to be derivation safe by moving initialisation code
4477         from the removed gail_foo_new() functions to the
4478         AtkObjectClass::initialize implementation. Bug #505226.
4479
4480 2007-12-24  Matthias Clasen  <mclasen@redhat.com>
4481
4482         * modules/other/gail/gailentry.c:
4483         * modules/other/gail/gailimage.c:
4484         * modules/other/gail/gailtextview.c: Remove non-multihead-safe
4485         uses of clipboards and settings.  (#504722, Christian Persch)
4486
4487 2007-12-24  Matthias Clasen  <mclasen@redhat.com>
4488
4489         * gdk/gdkapplaunchcontext.c: Remove unneeded includes. (#505411,
4490          Kazuki IWAMOTO)
4491
4492 2007-12-24  Matthias Clasen  <mclasen@redhat.com>
4493
4494         * gtk/gtkcombobox.c: When popping up a menu from a treeview cell,
4495         use the time and button information from the event.  (#504901,
4496         Peter Bloomfield)
4497
4498 2007-12-23  Cody Russell  <bratsche@gnome.org>
4499
4500         * gdk/win32/gdkevents-win32.c (show_window_recurse): Check that
4501         the window is mapped before setting SW_RESTORE or SW_MINIMIZE.
4502         Fixes a regression caused by #164537 patch where transient
4503         windows that are hidden get shown (incorrectly) when their
4504         parents are minimized. (#504984)
4505         
4506 2007-12-22  Christian Persch  <chpe@gnome.org>
4507
4508         * modules/other/gail/gailcell.c:
4509         * modules/other/gail/gailcontainercell.c:
4510         * modules/other/gail/gailexpander.c:
4511         * modules/other/gail/gailtextcell.c:
4512         * modules/other/gail/gailtextview.c:
4513         * modules/other/gail/gailwindow.c: Fix compile warnings. Bug #504701.
4514
4515 2007-12-22  Christian Persch  <chpe@gnome.org>
4516
4517         * modules/other/gail/*.c: Include config.h. Bug #504720.
4518
4519 2007-12-22  Christian Persch  <chpe@gnome.org>
4520
4521         * modules/other/gail/*.c: Use G_DEFINE_TYPE[_WITH_CODE] instead of
4522         handwritten get_type functions. Bug #504661.
4523
4524 2007-12-23  Xan Lopez  <xan@gnome.org>
4525
4526         * gtk/gtktreeview.c (gtk_tree_view_build_tree): pass correct argument
4527         to g_signal_emit for TEST_EXPAND_ROW (GtkTreeIter* vs. GtkTreeIter**).
4528
4529         Patch by Sadrul Habib Chowdhury (#504804)
4530
4531 2007-12-22  Christian Persch  <chpe@gnome.org>
4532
4533         * modules/other/gail/Makefile.am: Link to gdk and gtk libs. Bug
4534         #504645, patch by Li Yuan.
4535
4536 2007-12-22  Christian Persch  <chpe@gnome.org>
4537
4538         * gdk/x11/gdkscreen-x11.c: (init_randr12): Plug mem leaks. Bug #504886.
4539
4540 2007-12-22  Christian Persch  <chpe@gnome.org>
4541         
4542         * modules/other/gail/gail.c:
4543         * modules/other/gail/gailbutton.c:
4544         * modules/other/gail/gailcell.c:
4545         * modules/other/gail/gailcombo.c:
4546         * modules/other/gail/gailcombo.h:
4547         * modules/other/gail/gailcombobox.c:
4548         * modules/other/gail/gailentry.c:
4549         * modules/other/gail/gailexpander.c:
4550         * modules/other/gail/gailmenuitem.c:
4551         * modules/other/gail/gailnotebook.c:
4552         * modules/other/gail/gailnotebookpage.c:
4553         * modules/other/gail/gailnotebookpage.h:
4554         * modules/other/gail/gailoptionmenu.c:
4555         * modules/other/gail/gailrange.c:
4556         * modules/other/gail/gailtextview.c:
4557         * modules/other/gail/gailtreeview.c:
4558         * modules/other/gail/gailtreeview.h:
4559         * modules/other/gail/gailwindow.c: Use gdk_threads_add_idle.
4560         Bug #504571.
4561
4562 2007-12-22  Matthias Clasen  <mclasen@redhat.com>
4563
4564         * modules/other/gail/gailclist.c: Chain up the finalizer (#504570,
4565         Christian Persch)
4566
4567 2007-12-21  Richard Hult  <richard@imendio.com>
4568
4569         * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_destroy):
4570         Plug leak of destroyed subviews, fixes bug #504753.
4571
4572 2007-12-20  Johan Dahlin  <johan@gnome.org>
4573
4574         * tests/Makefile.am (TEST_PROGS): 
4575         * tests/defaultvaluetest.c: Add a test for default values,
4576         based on program by Christan Perch
4577
4578 2007-12-20  Johan Dahlin  <johan@gnome.org>
4579
4580         * gtk/gtk-builder-convert (GtkBuilderConverter._remove_window): 
4581         Refactor to avoid some duplication.
4582         Convert toplevel GtkMenu's top popups and not menubars in the ui manager.
4583         Fixes #504749, Yuri Pimenov
4584
4585 2007-12-20  Kristian Rietveld  <kris@imendio.com>
4586
4587         * configure.in: RYuri Pimenovemove leftovers from old XRandR check.  Makes
4588         the build work again on systems without xrandr 1.2.
4589
4590 2007-12-20  Christian Persch  <chpe@gnome.org>
4591
4592         * configure.in:
4593         * modules/other/gail/libgail-util/Makefile.am:
4594         Keep the same libtool version as the standalone libgail-util had.
4595         Bug #504643.
4596
4597 2007-12-20 15:30:09  Tim Janik  <timj@imendio.com>
4598
4599         * Makefile.decl: generate HTML reports for test-report perf-report full-report.
4600
4601 2007-12-20  Alexander Larsson  <alexl@redhat.com>
4602         
4603         * gdk/x11/gdkapplaunchcontext-x11.c:
4604         Update for gio API changes
4605
4606 2007-12-20  Richard Hult  <richard@imendio.com>
4607
4608         * gdk/quartz/GdkQuartzWindow.c:
4609         * gdk/quartz/GdkQuartzWindow.h: Make manual resizing smoother by
4610         processing events after changing the size.
4611
4612 2007-12-20  Richard Hult  <richard@imendio.com>
4613
4614         * modules/other/gail/gailwindow.c: (gail_window_get_mdi_zorder):
4615         Add stub for quartz to fix build.
4616
4617 2007-12-20  Christian Persch  <chpe@gnome.org>
4618
4619         * modules/other/gail/Makefile.am:
4620         * modules/other/gail/gailimage.c: (gail_image_class_init),
4621         (gail_image_init), (elide_underscores), (gail_image_get_name),
4622         (atk_image_interface_init), (gail_image_finalize):
4623         * modules/other/gail/gailimage.h:
4624         R modules/other/gail/gailintl.h:
4625         * po/POTFILES.skip: Use the stock item's label as the name of the
4626         accessible in gailimage.c. Bug #504246.
4627
4628 2007-12-19  Mathias Hasselmann  <mathias@openismus.com>
4629
4630         Avoid some compiler warnings and remove obsolete code. (#339540)
4631
4632         * gtk/gtkcalendar.c: Change week and year variable in
4633         calendar_paint_week_numbers from gint to guint. Remove obsolete "#if
4634         0" block from calendar_paint_day: The feature in question is handled
4635         few lines above. Cast data returned by gtk_selection_data_get_text()
4636         to (gchar*) in gtk_calendar_drag_data_received.
4637
4638 2007-12-19 17:05:31  Tim Janik  <timj@imendio.com>
4639
4640         * modules/other/Makefile.am: include Makefile.decl to unbreak test rules.
4641
4642 2007-12-19  Johan Dahlin  <johan@gnome.org>
4643
4644         * tests/buildertest.c (test_object_properties): 
4645         Add another call to gtk_builder_add_string after using
4646         delayed properties, as reported in #504393 but already
4647         fixed in #495769.
4648
4649 2007-12-18  Christian Persch  <chpe@gnome.org>
4650
4651         * configure.in:
4652         * docs/reference/Makefile.am:
4653         * docs/reference/libgail-util/*:
4654         * gail-uninstalled.pc.in:
4655         * gail.pc.in:
4656         * modules/Makefile.am:
4657         * modules/other/Makefile.am:
4658         * modules/other/gail/*:
4659         * modules/other/gail/libgail-util/*:
4660         * po/POTFILES.skip: Integrate gail into gtk+. Bug #169488.
4661
4662 2007-12-17  Matthias Clasen  <mclasen@redhat.com>
4663
4664         * gtk/gtksettings.c: Add a gtk-im-module GTK setting
4665         * gdk/win32/gdkproperty-win32.c: 
4666         * gdk/x11/gdksettings.c: ...and back it by a Gtk/IMModule X setting.
4667
4668         * gtk/gtkimmodule.[hc]: 
4669         * gtk/gtkimmulticontext.[hc]: When determining the default context,
4670         look at the gtk-im-module setting, and listen for changes to the
4671         setting.  (#502446, Akira Tagoh)
4672
4673 2007-12-17  Kristian Rietveld  <kris@imendio.com>
4674
4675         * gtk/gtktooltip.c (gtk_tooltip_finalize),
4676         (gtk_tooltip_set_last_window): use a weak pointer to set last_window
4677         to NULL as soon as it's destroyed.  (#496546, patch from
4678         Benjamin Berg).
4679
4680 2007-12-17  Kristian Rietveld  <kris@imendio.com>
4681
4682         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
4683         always determine what arrow to show if show_sort_indicator is true.
4684         (#352738, Chris Vine).
4685
4686 2007-12-16  Mathias Hasselmann  <mathias@openismus.com>
4687
4688         Prevent assertion failure in gtk_paned_find_neighbours. (#503824,
4689         Sébastien Granjoux)
4690
4691         * gtk/gtkpaned.c: Call gtk_container_forall instead of
4692         gtk_container_foreach in get_child_panes.
4693
4694 2007-12-15  Xan Lopez  <xan.lopez@nokia.com>
4695
4696         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_reorder):
4697
4698         Plug leak: When reordering the info in the list the old node is
4699         removed but not freed. (#503569)
4700
4701 2007-12-15  Sebastian Dröge  <slomo@circular-chaos.org>
4702
4703         * gdk/directfb/gdkcursor-directfb.c: (gdk_cursor_new_for_display):
4704         Use u32 instead of __u32 and u8 instead of __u8 as the other types
4705         are deprecated since DirectFB 1.0.0. If compiling with an older
4706         version define the new type name to the old types. Fixes bug #503190.
4707
4708 2007-12-14  Ray Strode  <rstrode@redhat.com>
4709
4710         * gtk/gtkwidget.c: Suggest g_signal_connect (..., "realize", ...)
4711         instead of g_signal_connect_after (..., "realize", ...) as an
4712         alternative to gtk_widget_realize () (bug 503537).
4713
4714 2007-12-14  Michael Natterer  <mitch@imendio.com>
4715
4716         * gdk/gdkinternals.h
4717         * gdk/gdkapplaunchcontext.h: #include <gio/gio.h> instead of
4718         individual files.
4719
4720         * gdk/gdkapplaunchcontext.c
4721         * gdk/x11/gdkapplaunchcontext-x11.c: remove all gio includes, the
4722         header already includes everything now.
4723
4724 2007-12-14  Mathias Hasselmann  <mathias@openismus.com>
4725
4726         Correct "Since:" tags for GtkPageSetup and GtkPrintSettings as
4727         next stable release shall be 2.16, not 2.14 - even if disagree.
4728
4729         * gtk/gtkpagesetup.c, gtk/gtkprintsettings.c: s/2.14/2.16/
4730
4731 2007-12-14  Mathias Hasselmann  <mathias@openismus.com>
4732
4733         Change GtkToolItem to retrieve its properties from GtkToolShell
4734         interface, instead of relying on being child of a GtkToolbar.
4735         (#5034079)
4736
4737         * gtk/gtk.symbols, docs/reference/gtk/gtk-docs.sgml,
4738         docs/reference/gtk/gtk-sections.txt: Add GtkToolShell symbols.
4739         * docs/reference/gtk/tmpl/gtktoolitem.sgml: Move section docs inline.
4740         * gtk/gtktoolbar.c: Implement GtkToolShellIface.
4741         * gtk/gtktoolbar.h: Remove _gtk_toolbar_rebuild_menu.
4742         * gtk/gtktoolitem.c: Use GtkToolShell, instead of GtkToolbar.
4743         Take section docs from template file and update them for GtkToolShell.
4744         * gtk/Makefile.am: Add gtk/gtktoolshell.c and gtk/gtktoolshell.h.
4745         * gtk/gtktoolshell.c, gtk/gtktoolshell.h: New GtkToolShellIface.
4746
4747 2007-12-14  Mathias Hasselmann  <mathias@openismus.com>
4748
4749         Extract loading of GtkPageSetup and GtkPrintSettings from their
4750         *_new_*() functions and move that code into separate
4751         *_load_*() functions (#475565).
4752
4753         * gtk/gtk.symbols, gtk/gtkpagesetup.c, gtk/gtkpagesetup.h:
4754         Extract gtk_page_setup_load_file, gtk_page_setup_load_key_file,
4755         gtk_print_settings_load_file and gtk_print_settings_load_key_file.
4756         Change the matching *_new_*() functions to use those functions.
4757
4758 2007-12-14  Matthias Clasen  <mclasen@redhat.com>
4759
4760         * gtk/gtk.symbols:
4761         * gtk/gtktooltip.[hc]: Add gtk_tooltip_set_icon_from_icon_name().
4762
4763 2007-12-14  Kristian Rietveld  <kris@imendio.com>
4764
4765         * gtk/tests/liststore.c:
4766         * gtk/tests/treestore.c: added tests for insertion functions.
4767
4768 Thu Dec 13 13:14:50 2007  Søren Sandmann  <sandmann@redhat.com>
4769
4770         * Add RandR 1.2 support
4771
4772         - New monitors_changed signal - New API to get width/height of
4773           monitors, and the name of the plug
4774
4775 2007-12-13  Kristian Rietveld  <kris@imendio.com>
4776
4777         * gtk/tests/liststore.c:
4778         * gtk/tests/treestore.c: test the move and swap functions on a
4779         store with only one node.
4780
4781 2007-12-13  Kristian Rietveld  <kris@imendio.com>
4782
4783         * gtk/gtktestutils.c (gtk_test_init): add a call to
4784         g_test_bug_base().
4785
4786         * gtk/tests/treeview-scrolling.c: add g_test_bug() calls to
4787         appriopriate tests.
4788
4789 2007-12-13  Kristian Rietveld  <kris@imendio.com>
4790
4791         * gtk/tests/liststore.c:
4792         * gtk/tests/treestore.c: start composing tests for the list and tree
4793         store.
4794
4795         * gtk/tests/treeview-scrolling.c: added automated tests for
4796         GtkTreeView's scrolling "subsystem".
4797
4798         * gtk/tests/Makefile.am: updated; added new test programs.
4799
4800 2007-12-13  Mathias Hasselmann  <mathias@openismus.com>
4801
4802         Make the code compile again after the GdkAppLaunchContext changes.
4803
4804         * configure.in: Add gio-2.0 to GDK_PACKAGES.
4805         * gdk/gdkinternals.h: Include <gio/gappinfo.h>.
4806
4807 2007-12-12  Matthias Clasen  <mclasen@redhat.com>
4808
4809         * gdk/gdkapplaunchcontext.c: Add docs
4810
4811 2007-12-12  Matthias Clasen  <mclasen@redhat.com>
4812
4813         * gdk/gdkapplaunchcontext.[hc]: Implement GAppLaunchContext 
4814         in gdk, providing startup notification.  (#503203)
4815
4816         * gdk/x11/gdkapplaunchcontext-x11.c: 
4817         * gdk/win32/gdkapplaunchcontext-win32.c:
4818         * gdk/quartz/gdkapplaunchcontext-quartz.c: 
4819         * gdk/directfb/gdkapplaunchcontext-directfb.c: Backend-specific
4820         parts. All but X11 are just empty stubs for now.
4821
4822         * gdk/gdk.symbols:
4823         * gdk/gdkinternals.h:
4824         * gdk/Makefile.am:
4825         * gdk/x11/Makefile.am: 
4826         * gdk/win32/Makefile.am: 
4827         * gdk/quartz/Makefile.am: 
4828         * gdk/directfb/Makefile.am: Necessary glue.
4829
4830 2007-12-12  Mathias Hasselmann  <mathias@openismus.com>
4831
4832         * gtk/gtkdnd.c: Another attempt to improve gtk_drag_dest_set docs.
4833
4834 2007-12-11  Attilio Fiandrotti  <attilio.fiandrotti@gmail.com>
4835
4836         * gdk/directfb/gdktestutils-directfb.c:
4837         * gdk/directfb/Makefile.am: Applied a patch by Claudio Ciccani
4838         which adds testing functions to the DirectFB backend.
4839
4840 2007-12-11  Attilio Fiandrotti  <attilio.fiandrotti@gmail.com>
4841
4842         * gdk/directfb/gdkdrawable-directfb.c: Applied a patch by Claudio
4843         Ciccani which fixes the mixing of gdk and cairo rendering.
4844
4845 2007-12-11  Mathias Hasselmann  <mathias@openismus.com>
4846
4847         * gtk/gtkdnd.c, gtk/gtkwidget.c: Mention impact of GtkDestDefaults
4848         on "drag-motion" handlers. Clearify documentation for
4849         gtk_drag_dest_set.
4850
4851 2007-12-11 15:44:01  Tim Janik  <timj@imendio.com>
4852
4853         * buildertest.c: made unnecessarily exported symbols static.
4854         switched g_return_if_fail() statements in tests to assertions.
4855         special cased currently failing Widget/accesibility test to
4856         run only for g_test_thorough(), so it doesn't break make check.
4857         some coding style fixes.
4858
4859         * Makefile.am: added buildertest to TEST_PROGS.
4860
4861 2007-12-11  Stefan Kost  <ensonic@users.sf.net>
4862
4863         * docs/tutorial/gtk-tut.sgml:
4864           Use gtk_widget_get_parent_window() instead of widget->parent->window.
4865
4866 2007-12-10  Richard Hult  <richard@imendio.com>
4867
4868         * gdk/quartz/Makefile.am:
4869         * gdk/quartz/gdkquartz.h:
4870         * gdk/quartz/gdkwindow-quartz.c: Install backend specific
4871         header (bug #405915). Also add a getter for the toplevel nswindow.
4872
4873 2007-12-10  Richard Hult  <richard@imendio.com>
4874
4875         * gdk/quartz/gdkdrawable-quartz.c:
4876         (gdk_quartz_drawable_get_context),
4877         (gdk_quartz_drawable_release_context):
4878         * gdk/quartz/gdkeventloop-quartz.c: (gdk_event_prepare),
4879         (gdk_event_check), (gdk_event_dispatch), (poll_func):
4880         * gdk/quartz/gdkwindow-quartz.h: Replace the autorelease pools
4881         used for each drawing context and in prepare, dispatch and poll
4882         with one that exists across each main loop iteration. Fixes leaks
4883         on leopard and protects against future leaks introduce when the
4884         underlying system changes again (bug #492977).
4885
4886 2007-12-10  Richard Hult  <richard@imendio.com>
4887
4888         * gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
4889         Fix the check for no changes to position and size.
4890
4891 2007-12-10  Richard Hult  <richard@imendio.com>
4892
4893         * gdk/quartz/GdkQuartzView.c: Ignore drawRect calls with zero
4894         sized areas at (0, 0), patch from Paul Davis.
4895
4896 2007-12-10  Richard Hult  <richard@imendio.com>
4897
4898         * gdk/quartz/gdkprivate-quartz.h: 
4899         * gdk/quartz/gdkeventloop-quartz.c:
4900         (_gdk_quartz_event_loop_get_pending),
4901         (_gdk_quartz_event_loop_check_pending),
4902         (_gdk_quartz_event_loop_release_event), (gdk_event_prepare),
4903         (gdk_event_check), (gdk_event_dispatch):
4904         * gdk/quartz/gdkevents-quartz.c: (gdk_events_pending)
4905         (_gdk_events_queue): Fix a bug where we could end up trying to
4906         handle the same event more than once. Based on patch from Paul
4907         Davis.
4908
4909 2007-12-10  Tor Lillqvist  <tml@novell.com>
4910
4911         * gtk-zip.sh.in: Include bin/gtk-builder-convert in the dev
4912         package. (#502850)
4913
4914 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
4915
4916         * gtk/gtknotebook.c (gtk_notebook_real_remove): Another fix
4917         to avoid further fallout from the fix for bug 388321.
4918
4919 2007-12-09 09:56:06  Attilio Fiandrotti  <attilio.fiandrotti@gmail.com>
4920
4921         * gdk/directfb/gdkgc-directfb.c:
4922         * gdk/directfb/gdkdrawable-directfb.c:
4923         * gdk/directfb/gdkdirectfb.h:
4924         * gdk/directfb/gdkwindow-directfb.c:
4925         * gdk/directfb/gdkprivate-directfb.h: Committed several patches
4926         (window_flip_group, no_background_pixmap_fix, opt_temp_region2,
4927         blit_after_cairo_fix, rect_clip_fix, fast_blend, opt_temp_region_etc,
4928         opt_clip_region_and_fill_rects, no_state_resets) by Denis Oliver Knopp
4929         which are expected to improve the performance of the DirectFB backend.
4930         Experimental pieces of code (GDK_DIRECTFB_NO_EXPERIMENTS) are disabled.
4931
4932 2007-12-07  Matthias Clasen  <mclasen@redhat.com>
4933
4934         * gtk/gtkcontainer.c: Correct the documentation of child
4935         property getter arguments.  (#501992, David Brigada)
4936
4937 2007-12-07  Matthias Clasen  <mclasen@redhat.com>
4938
4939         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
4940         leak pixbufs.  (#502250, Yevgen Muntyan)
4941
4942 2007-12-07  Yevgen Muntyan  <muntyan@tamu.edu>
4943
4944         * gtk/gtkprintunixdialog.c:
4945         * gtk/gtkpagesetupunixdialog.c: added alternative button order in
4946         Print and Page Setup dialogs (#502202).
4947
4948 2007-12-07 13:16:33  Tim Janik  <timj@imendio.com>
4949
4950         * Makefile.decl: skip tests if gdktarget!=x11, since GUI tests need
4951         Xvfb. only start Xvfb if TEST_PROGS is not empty. moved "set -e" out
4952         of XVFB_START, since it's the GTESTER invokation that needs this.
4953
4954 2007-12-06  Tommi Komulainen  <tommi.komulainen@iki.fi>
4955
4956         * gdk-pixbuf/gdk-pixbuf.symbols:
4957         * gdk/gdk.symbols:
4958         * gdk/gtk.symbols: Remove trailing whitespace that can trigger false
4959         positives in abicheck.sh
4960
4961 2007-12-06 18:45:06  Attilio Fiandrotti  <attilio.fiandrotti@gmail.com>
4962
4963         * gdk/directfb/gdkevents-directfb.c: Committed a patch by DOK to fix
4964         GDK events generations in the DirectFB backend.
4965
4966 2007-12-06 13:55:06  Tim Janik  <timj@imendio.com>
4967
4968         * Makefile.decl: replaced seq(1) invokation for X11 ids with a hardcoded
4969         set of likely unused display ids, because MacOS has no seq(1) command.
4970
4971 2007-12-06  Richard Hult  <richard@imendio.com>
4972
4973         * gdk/quartz/gdkevents-quartz.c:
4974         (synthesize_crossing_events_for_ns_event): Fix warning when
4975         switching spaces in leopard.
4976
4977 2007-12-06 13:38:36  Tim Janik  <timj@imendio.com>
4978
4979         * tests/floatingtest.c: ported to new testing framework.
4980
4981         * tests/Makefile.am: run floatingtest as testing framework test.
4982
4983 2007-12-06 10:44:52  Tim Janik  <timj@imendio.com>
4984
4985         * tests/autotestfilechooser.c: majorly speed up execution by reducing
4986         timeouts and converting main loop sleeps to pending/iterate loops with
4987         very low priority async handlers. eliminate output for non-verbose
4988         tests. assert successfull subtests in all test functions. use testing
4989         framework in main().
4990
4991         * tests/Makefile.am: add autotestfilechooser to TEST_PROGS, so it's
4992         executed inside Xvfb upon make check.
4993
4994 2007-12-06 08:23:38  Tim Janik  <timj@imendio.com>
4995
4996         * tests/objecttests.c: use string comparisons for string property
4997         values and get rid of referencing symbols in array initialization.
4998
4999 2007-12-05 18:59:59  Tim Janik  <timj@imendio.com>
5000
5001         * gtk+/Makefile.decl: run tests in current dir after setting up the
5002         logging directory, so their results get properly merged into the
5003         resulting test log.
5004
5005         * gtk+/gtk/gtktestutils.[hc]: added gtk_test_list_all_types() for
5006         tests to loop over registered Gdk/Gtk+ types.
5007
5008         * gtk+/tests/objecttests.c: new test program, implements automated
5009         property tests. several properties are blacklisted because they
5010         seem to trigger Gdk/Gtk+ bugs. ./objecttests -m thorough --verbose
5011         can be used to test blacklisted properties and see which proprty failed.
5012
5013 2007-12-04  Richard Hult  <richard@imendio.com>
5014
5015         * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init):
5016         Fully initialize the root window, fixes bug #501583.
5017
5018 2007-12-04  Matthias Clasen  <mclasen@redhat.com>
5019
5020         * gtk/gtknotebook.c: Modify the tab-label-destroy fix to not
5021         crash epiphany.
5022
5023 2007-12-03  Richard Hult  <richard@imendio.com>
5024
5025         * gtk/gtkquartz.c: (_gtk_quartz_set_selection_data_for_pasteboard):
5026         Don't crash when dragging from a source that doesn't support uri
5027         lists (bug #499868, Paul Davis).
5028
5029 2007-12-03  Richard Hult  <richard@imendio.com>
5030
5031         * gdk/quartz/gdkwindow-quartz.c:
5032         (gdk_window_impl_quartz_begin_paint_region): Don't crash when a
5033         parent relative bg pixmap is set, and no parent has a bg
5034         pixmap. Fixes bug #500804.
5035
5036 2007-12-03  Matthias Clasen  <mclasen@redhat.com>
5037
5038         Two optimizations for icon cache lookups.
5039
5040         * gtk/gtkiconcache.[hc]:
5041         * gtk/gtkicontheme.c: Remember the directory index for
5042         subdirectories, instead of running over the directory list
5043         again and again.
5044
5045         * gtk/gtkiconcache.c (find_image_offset): Remember the last 
5046         chain and try it first; this helps with the the usage patterns
5047         in gtkicontheme.c, where the same icon is queried for a lot
5048         of subdirectories.
5049
5050 2007-12-03 15:18:17  Tim Janik  <timj@imendio.com>
5051
5052         * gtk/Makefile.am (gtktypefuncs.c): use 'grep -o' to extract _get_type
5053         functions from header files. this should be portable across linux and
5054         Mac OS, unlike the previpous sed expression.
5055
5056 2007-12-1  Cody Russell  <bratsche@gnome.org>
5057
5058         * gtk/gtkpaned.c: (gtk_paned_set_position) [Win32]:
5059         On Windows, queue a redraw of child2 whenever we set
5060         the pane handle position.  This is unfortunately kind
5061         of hacky, but solves the visual artifacts that were
5062         occuring on at least certain types of child widgets
5063         (e.g., text views and tree views) that are inside
5064         horizontal or vertical panes. (#144269)
5065
5066 2007-11-30  Matthias Clasen  <mclasen@redhat.com>
5067
5068         * gtk/gtkrc.c: Fix doc typos.  (#500672, David Lambert)
5069
5070 2007-11-29  Matthias Clasen  <mclasen@redhat.com>
5071
5072         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Remove leftover
5073         debug spew.
5074
5075 2007-11-29  Matthias Clasen  <mclasen@redhat.com>
5076
5077         * gtk/Makefile.am: Fix ordering of subdirs.
5078
5079 2007-11-28  Tor Lillqvist  <tml@novell.com>
5080
5081         A proper build of GNU libintl is supposed to export the variable
5082         _nl_msg_cat_cntr. configure looks for that variable in order to
5083         recognize GNU gettext. If it sees that it is indeed GNU gettext
5084         that is used, it decides to install message catalogs in
5085         share/locale, otherwise in lib/locale. Until now on Windows I have
5086         built GTK+ against a build of GNU gettext that did not export
5087         _nl_msg_cat_cntr. But this will change, so we can't assume message
5088         catalogs are always in lib/locale.
5089
5090         * gtk/gtkmain.c: (_gtk_get_localedir) [Win32]: Rework to handle
5091         GTK_LOCALEDIR being either in "lib" or "share". Move the function
5092         before the inclusion of gtkprivate.h so that it sees the original
5093         GTK_LOCALEDIR.
5094
5095         * gtk-zip.sh.in: Check whether the message catalogs are in
5096         share/locale or lib/locale.
5097
5098         * config.h.win32.in: Tack on "/share/locale" to GTK_LOCALEDIR so
5099         that the code in _gtk_get_localedir() will find the slashes.
5100
5101 2007-11-28  Tor Lillqvist  <tml@novell.com>
5102
5103         * gtk/Makefile.am: Improve portability. The -o option is present
5104         only in newish GNU egreps. Use one more sed in the pipeline
5105         instead.
5106
5107 2007-11-28  Tor Lillqvist  <tml@novell.com>
5108
5109         Fix #375893, patch by Ben Hague:
5110
5111         * gtk/gtkfilesystemwin32.c (get_viewable_logical_drives): Wrapper
5112         around GetLogicalDrives() that takes also the viewable drive
5113         restrictions in the Registry (which are usually the result of an
5114         Active Directory Group Policy) into account.
5115
5116         (check_volumes, gtk_file_system_win32_list_volumes) Call
5117         get_viewable_logical_drives() instead of GetLogicalDrives().
5118
5119 2007-11-27  Matthias Clasen <mclasen@redhat.com>
5120
5121         * gtk/gtkwindow.c (gtk_window_move_resize): Zero some
5122         variables to silence valgrind.  (#495124, Morten Welinder)
5123
5124 2006-11-26  Ryan Lortie  <desrt@desrt.ca>
5125
5126         * docs/reference/gtk/tmpl/gtkbuildable.sgml: add clarification stating
5127         that the construct_child function is responsible for returning a
5128         reference.
5129         * gtkbuilder.c (_gtk_builder_construct): remove g_object_ref() for
5130         objects from constructors
5131         * gtkuimanager.c (gtk_ui_manager_buildable_construct_child): add
5132         g_object_ref() to this construction function (it's the only
5133         implementer in GTK)
5134
5135         Fixes #496645.
5136
5137 2006-11-26  Ryan Lortie  <desrt@desrt.ca>
5138
5139         * gtkbuilder.c: remove concept of root objects and just refcount
5140         all objects in the builder.  Fixes #496651.
5141
5142 2007-11-26  Ryan Lortie  <desrt@desrt.ca>
5143
5144         * tests/buildertest.c (test_window): fix invalid free
5145
5146 2007-11-26  Josselin Mouette <joss@malsain.org>
5147
5148         reviewed by: Federico Mena Quintero
5149
5150         * gtk/gtkfilechooserdefault.c: (shortcuts_append_paths),
5151         (shortcuts_add_bookmarks), (shortcuts_selection_changed_cb),
5152         (shortcuts_list_create), (gtk_file_chooser_default_should_respond):
5153         Make the shortcuts activate with a single click. (#148828)
5154         Fix a few things affected by the change:
5155           - Set selection mode to GTK_SELECTION_SINGLE to allow a case 
5156             where no shortcut is selected.
5157           - Don't activate a shortcut in the response callback.
5158           - Filter out duplicate entries in volumes and bookmarks to 
5159             avoid the selection to change when reordering them with DnD.
5160
5161 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5162
5163         * gtk/gtkmain.c:
5164         * gtk/gtknotebook.c:
5165         * gtk/gtkplugprivate.h:
5166         * gtk/gtksocket.c:
5167         * gtk/gtksocketprivate.h:
5168         * gtk/gtktable.c: Fix up some doc comments to shut up gtk-doc.
5169
5170 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5171
5172         * configure.in: Use $CUPS_CONFIG instead of hardcoded cups-config.
5173         (#495574, Richard Hult)
5174
5175 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5176
5177         * gtk/gtkprintunixdialog.c: Change some labels to be clearer.
5178         String change !   (#376361, Sven Neumann)
5179
5180 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5181
5182         * gtk/gtknotebook.c (gtk_notebook_update_labels): Short-circuit on
5183         destroy.
5184         (gtk_notebook_destroy): Destroy tab_label widgets. (#388321, Morten
5185         Welinder)
5186
5187 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5188
5189         * gtk/gtkassistant.c: Improve alternative button
5190         ordering.  (#476827, Yevgen Muntyan, patch by Carlos Garnacho)
5191
5192 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5193
5194         * gtk/gtkcalendar.c: Fix a theming problem with colors
5195         in GtkCalendar.  (#499703, Michael Hofmann)
5196
5197 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5198
5199         * configure.in: Bump glib requirement to 2.15.0 (for g_test_init)
5200
5201 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5202
5203         Use templates for glib-mkenums calls instead of 
5204         complicated commandlines in Makefiles.  (#429910)
5205
5206         * gdk-pixbuf/Makefile.am:
5207         * gdk/Makefile.am: 
5208         * gtk/Makefile.am: 
5209         * perf/Makefile.am: Use templates for glib-mkenums
5210
5211         * gdk-pixbuf/gdk-pixbuf-enum-types.[ch].template:
5212         * gdk/gdkenumtypes.[ch].template: 
5213         * gtk/gtktypebuiltings.[ch].template: 
5214         * perf/typebuiltins.[ch].template: The templates
5215
5216 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5217
5218         * gtk/gtkfilechooserbutton.c:
5219         * gtk/gtktoolbar.c: Don't use guint8 for bitfields, since
5220         some compilers choke on that.  (#467722)
5221
5222 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
5223
5224         * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Add a note
5225         about hook setup.  (#425004, Emmanuele Bassi)
5226
5227 2007-11-26  Tor Lillqvist  <tml@novell.com>
5228
5229         * gdk/win32/gdkwindow-win32.c (gdk_window_fullscreen): Use the
5230         monitor the window currently is on, not always the primary
5231         monitor. (#463865, Tim Evans)
5232
5233 2007-11-26  Tor Lillqvist  <tml@novell.com>
5234
5235         * gdk/win32/gdktestutils-win32.c: New file, dummy implementations.
5236
5237         * gdk/win32/Makefile.am: Add it.
5238
5239 2007-11-26  Tor Lillqvist  <tml@novell.com>
5240
5241         * configure.in: Don't add jasper to all_loaders if no libjasper.
5242
5243 2007-11-25  Bastien Nocera  <hadess@hadess.net>
5244
5245         * configure.in: Add detection for libjasper, used by the
5246         gdk-pixbuf JPEG2000 loader
5247
5248 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
5249
5250         * configure.in: Require gtk-doc 1.8
5251
5252         * */*.c: Use gtk-doc abbreviations for examples in docs.
5253
5254 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
5255
5256         * gtk/gtktreeview.c (gtk_tree_view_set_show_expanders): Fix a
5257         typo.  (#498922)
5258
5259 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
5260
5261         * gtk/gtkdialog.c: Move signal and property documentation inline,
5262         fix a problem with the ::response signal docs.  (#499133, Josselin
5263         Mouette)
5264
5265 2007-11-22 15:48:26  Tim Janik  <timj@imendio.com>
5266
5267         * Makefile.decl: initialize automake variables EXTRA_DIST and
5268         TEST_PROGS for unconditional appending via += in other makefiles.
5269         define recursive test targets: test, test-report, perf-report,
5270         full-report, as described here:
5271       http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
5272         the test targets will execute Gtk+ test programs within an Xvfb session.
5273
5274         * gtk/gtktestutils.c: call g_test_init() from gtk_test_init().
5275
5276         * gtk/tests/testing.c: use g_test_add_func() to register tests and use
5277         g_test_run() to run the tests to integrate with the testing framework.
5278
5279         * gtk/tests/Makefile.am: removed exemplary testing rules.
5280
5281         * Makefile.am, gtk/tests/Makefile.am, gtk/Makefile.am:
5282         * gtk/xdgmime/Makefile.am, gtk/theme-bits/Makefile.am:
5283         * tests/Makefile.am, docs/reference/gdk-pixbuf/Makefile.am:
5284         * docs/reference/gdk/Makefile.am, docs/reference/gtk/Makefile.am:
5285         * docs/reference/Makefile.am, docs/tools/Makefile.am:
5286         * docs/tutorial/Makefile.am, docs/faq/Makefile.am, docs/Makefile.am:
5287         * gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/Makefile.am:
5288         * demos/gtk-demo/Makefile.am, demos/Makefile.am:
5289         * modules/input/Makefile.am, modules/printbackends/file/Makefile.am:
5290         * modules/printbackends/test/Makefile.am, modules/printbackends/Makefile.am:
5291         * modules/printbackends/cups/Makefile.am, modules/printbackends/lpr/Makefile.am:
5292         * modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am:
5293         * modules/engines/ms-windows/Theme/Makefile.am:
5294         * modules/engines/ms-windows/Makefile.am:
5295         * modules/engines/Makefile.am,  modules/engines/pixbuf/Makefile.am:
5296         * modules/Makefile.am, m4macros/Makefile.am, perf/Makefile.am:
5297         * contrib/Makefile.am, contrib/gdk-pixbuf-xlib/Makefile.am:
5298         * gdk/directfb/Makefile.am, gdk/linux-fb/Makefile.am:
5299         * gdk/quartz/Makefile.am, gdk/win32/rc/Makefile.am:
5300         * gdk/win32/Makefile.am, gdk/x11/Makefile.am, gdk/Makefile.am:
5301         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
5302
5303 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
5304
5305         * modules/printbackends/cups/gtkcupsutils.c: Fix a casting problem.
5306         (#485662, patch by Herbert Valerio Riedel)
5307
5308 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
5309
5310         * gtk/gtktextiter.c: Fix an aliasing problem.  (#347585, Ed Catmur)
5311
5312 2007-11-21  Richard Hult  <richard@imendio.com>
5313
5314         * gdk/quartz/Makefile.am: * gdk/quartz/gdktestutils-quartz.c: Add
5315         stubs for the testing functions to fix the build.
5316
5317 2007-11-21  Behdad Esfahbod  <behdad@gnome.org>
5318
5319         * tests/testrichtext.c (setup_buffer): Fix C89 compilation issue.
5320         (#467711, The Written Word)
5321
5322 2007-11-21  Ross Burton  <ross@openedhand.com>
5323
5324         * gdk/x11/gdksettings.c:
5325         Add xsetting for gtk-scrolled-window-placement (#458103).
5326
5327 2007-11-21  Behdad Esfahbod  <behdad@gnome.org>
5328
5329         * gtk/gtkmenuitem.c (gtk_menu_item_class_init),
5330         (gtk_menu_item_paint): Make GtkMenuItem's arrow size themeable.
5331         (#469239, Michael Natterer)
5332
5333 2007-11-21  Behdad Esfahbod  <behdad@gnome.org>
5334
5335         * gdk/x11/gdksettings.c (gdk_settings_names, gdk_settings_map): Add
5336         Gtk/EnableAccels and Gtk/EnableMnemonics xsettings for
5337         gtk-enable-accels and gtk-enable-mnemonics GtkSettings respectively.
5338         (#436536, Tommi Komulainen)
5339
5340 2007-11-21  Matthias Clasen  <mclasen@redhat.com>
5341
5342         * gtk/gtktoolbar.c: Fix the default value of the toolbar-style
5343         property.  (#489782, Jan Janech)
5344
5345 2007-11-20  Matthias Clasen  <mclasen@redhat.com>
5346
5347         * gtk/gtkimage.c (animation_timeout): Avoid drawing one too many
5348         frames.  (#107398, Owen Taylor, Miguel Gomez)
5349
5350 Tue Nov 20 15:19:42 2007 +0100 Tim Janik
5351
5352         Moved Gdk test functions from Gtk+ to Gdk test utils.
5353
5354         * gdk/Makefile.am: added gdktestutils.h to public includes.
5355
5356         * gdk/gdk.h: added gdktestutils.h to public includes.
5357
5358         * gdk/gdk.symbols: added gdk_test_simulate_button,
5359         gdk_test_simulate_key, gdk_test_render_sync.
5360
5361         * gdk/gdktestutils.h: new file, added prototypes for
5362         gdk_test_simulate_button, gdk_test_simulate_key, gdk_test_render_sync.
5363
5364         * gdk/x11/Makefile.am: build gdktestutils-x11.c.
5365
5366         * gdk/x11/gdktestutils-x11.c: implemented gdk_test_simulate_button,
5367         gdk_test_simulate_key, gdk_test_render_sync.
5368
5369         * gtk/gtktestutils.c:
5370         * gtk/gtktestutils.h:
5371         * gtk/gtk.symbols: removed gtk_test_simulate_button
5372         gtk_test_simulate_key, gtk_test_xserver_render_sync.
5373
5374         * gtk/tests/testing.c: call gdk_test_render_sync.
5375
5376 Thu Nov 15 13:11:39 2007 +0100 Tim Janik
5377
5378         Added unit tests for Gtk+ testing utilities.
5379
5380         * gtk/tests/testing.c: added a sample test program that tests Gtk+ test
5381         utility functions. some g_test_* related portions are disabled and need
5382         to be enabled once Gtk+ depends on a new glib with the GLib testing
5383         framework integrated.
5384
5385         * gtk/tests/Makefile.am: new subdirectory to include quick Gtk+
5386         tests.  added exemplary test rules to run tests inside Xvfb. this
5387         needs to depend on gtester for full fledged testing.
5388
5389         * gtk/Makefile.am: build gtk+/gtk/tests, define
5390         -DGTK_ENABLE_BROKEN when collecting _get_type functions to catch
5391         e.g. gtk_text_get_type().
5392
5393         * configure.in: create gtk/tests/Makefile.in and gtk/tests/Makefile.
5394
5395 Thu Nov 15 11:55:34 2007 +0100 Tim Janik
5396
5397         Added Gtk+ testing utilities.
5398
5399         * gtk/gtktestutils.h, gtk/gtktestutils.c: added unit test utility
5400         functions.  for the most part, the functions herein involve
5401         navigating and interacting with dialog elements programatically,
5402         to automate user interaction tests of dialogs and widgets.
5403
5404         * gtk/gtk.h: include gtk/gtktestutils.h as public API.
5405
5406         * gtk/gtk.symbols: added gtk_test_* symbols.
5407
5408         * gtk/Makefile.am: include gtktestutils.h and gtktestutils.c into
5409         the build.  generate gtktypefuncs.c which contains a list of all
5410         _get_type functions in Gtk+ and Gdk.
5411
5412 2007-11-20  Bastien Nocera  <hadess@hadess.net>
5413
5414         * configure.in: add support for conditional icns gdk-pixbuf loader
5415         (Closes: #395738)
5416
5417 2007-11-19 10:31:26  Tim Janik  <timj@imendio.com>
5418
5419         * configure.in: updated version number to 2.15.0 for development.
5420
5421 2007-11-19 10:27:39  Tim Janik  <timj@imendio.com>
5422
5423         === Branch for 2.12 ===
5424