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