]> Pileus Git - ~andy/gtk/blob - ChangeLog
Fix code style and warts in GtkScaleButton
[~andy/gtk] / ChangeLog
1 2007-06-10  Emmanuele Bassi  <ebassi@gnome.org>
2
3         * gtk/gtkscalebutton.[ch]: Fix some coding style bits.
4
5         (gtk_scale_button_dispose), (gtk_scale_button_class_init),
6         (gtk_scale_button_init): Use the GObject private data API instead
7         of allocating the private structure ourselves.
8
9         (gtk_scale_button_dispose), (gtk_scale_button_finalize): Free
10         the icons string vector inside ::finalize and not in ::dispose.
11
12         (gtk_scale_button_update_icon): Use g_strv_length() instead
13         of an empty for loop.
14
15 2007-06-09  Matthias Clasen  <mclasen@redhat.com>
16
17         * gtk/gtkwidget.c:
18         * gtk/gtkscrolledwindow.c: Update docs
19         * gtk/gtkwidget.h: Deprecate gtk_widget_{ref,unref}
20
21         * gtk/gtkbox.c: Move docs inline.
22
23         * gtk/gtkrange.c:
24         * gtk/gtkscale.c: Doc formatting improvements.
25
26 2007-06-09  Matthias Clasen  <mclasen@redhat.com>
27
28         * gtk/gtkscalebutton.c: Add an icons property, make 
29         gtk_scale_button_new() a convenience function.  (#445855,
30         Murray Cumming)
31
32 2007-06-09  Matthias Clasen  <mclasen@redhat.com>
33
34         * gtk/gtkhscale.c (gtk_hscale_new):
35         * gtk/gtkvscale.c (gtk_vscale_new): Cosmetic change to make
36         it more obvious that this is a convenience function.
37
38 2007-06-09  Matthias Clasen  <mclasen@redhat.com>
39
40         * gtk/gtkcalendar.c (gtk_calendar_init): Handle return values
41         from nl_langinfo() more correctly. 
42
43 2007-06-09  Carlos Garnacho  <carlos@imendio.com>
44
45         * gtk/gtkrc.c (gtk_rc_parse_engine): initialize rc_priv in the else
46         branch too. (#445539)
47
48 2007-06-08  Benjamin Berg  <benjamin@sipsolutions.net>
49
50         * gtk/gtkscrolledwindow.c: (gtk_scrolled_window_paint):
51         Fix shadow painting if the scrollbars-within-bevel style property is
52         set and border_width is nozero. (#445054)
53
54 2007-06-08  Matthias Clasen  <mclasen@redhat.com>
55
56         Make it possible for theme engines to support symbolic 
57         colors.  (#426192, Andrea Cimitan, patch by Olivier Samyn)
58
59         * gtk/gtk.symbols:
60         * gtk/gtkrc.h:
61         * gtk/gtkrc.c (gtk_rc_parse_color_full): Export this function
62
63         * gtk/gtkrc.c (gtk_rc_parse_engine): Copy color hashes
64         to new style before parsing engine section.
65
66 2007-06-08  Michael Natterer  <mitch@imendio.com>
67
68         * gdk/quartz/gdkdrawable-quartz.c: add utility function
69         gdk_quartz_fix_cap_not_last_line() which fixes the coordinates for
70         GDK_CAP_NOT_LAST lines at least for horizontal and vertical lines.
71
72         (gdk_quartz_draw_segments)
73         (gdk_quartz_draw_lines): use it here.
74
75 2007-06-07  Michael Natterer  <mitch@imendio.com>
76
77         * gdk/quartz/gdkgc-quartz.c: add gdk_gc_quartz_init() and set
78         some values to the defaults used by X11.
79
80         (gdk_quartz_gc_set_values): really set cap_style when
81         GDK_GC_CAP_STYLE is in the mask, not line_style.
82
83 2007-06-07  Michael Natterer  <mitch@imendio.com>
84
85         * gdk/quartz/gdkgc-quartz.c (_gdk_quartz_gc_update_cg_context):
86         use the same code for GDK_XOR as for GDK_INVERT. Xor with an
87         arbitrary color is impossible to implement with quartz.
88
89 2007-06-07  Matthias Clasen  <mclasen@redhat.com>
90
91         * gtk/gtksettings.c: Fix a typo in the docs.
92
93 2007-06-07  Christian Neumair  <cneumair@gnome.org>
94
95         * gtk/gtkstock.[ch]: Add GTK_STOCK_DISCARD, #158008.
96
97 2007-06-07  Matthias Clasen  <mclasen@redhat.com>
98
99         * gtk/gtktreeview.c: Documentation additions.
100
101         * gtk/gtknotebook.c: Add a doc comment.
102
103 2007-06-06  Matthias Clasen  <mclasen@redhat.com>
104
105         * gtk/gtkfilechooserbutton.c (model_add_special):
106         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop):
107         * gtk/gtkfilesystemunix.c (get_icon_name_for_directory):
108         * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system):
109         Use g_get_user_special_dir() to obtain the path for the
110         DESKTOP directory.  
111
112 2007-06-06  Matthias Clasen  <mclasen@redhat.com>
113
114         * gtk/Makefile.am: Add the 16x16 version of gtk-select-color.png
115         to the list of stock icons.  (#444786)
116
117 2007-06-06  Kristian Rietveld  <kris@imendio.com>
118
119         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_init),
120         (gtk_cell_renderer_progress_class_init),
121         (gtk_cell_renderer_progress_[gs]et_property),
122         (gtk_cell_renderer_progress_render): add text-[xy]align properties
123         for aligning the text label of the progress bar.  (#334576,
124         suggestion from Steven Sheehy).
125
126 2007-06-06  Yevgen Muntyan  <muntyan@tamu.edu>
127
128         * gtk/gtkwidget.c:
129         * gtk/gtkwidget.h: new method, gtk_widget_modify_cursor() (#79585).
130         
131         * gtkrc.c:
132         * gtkrc.h: new functions _gtk_rc_style_set_rc_property() and 
133         _gtk_rc_style_unset_rc_property().
134         
135         * gtk/gtk.symbols: added gtk_widget_modify_cursor.
136         
137         * tests/testtext.c (do_cursor_visible_changed):
138         * tests/testgtk.c (create_styles): test it.
139
140 2007-06-06  Richard Hult  <richard@imendio.com>
141
142         * gdk/quartz/gdkevents-quartz.c (find_mouse_window_for_ns_event)
143         (find_window_for_ns_event): Rework how we get the event window:
144         don't get the window from the NSEvent, always use the mouse window
145         instead. Fix mouse window tracking by only using MouseExited for
146         non-gdk windows, and to always use the NSEvent window to get the
147         right gdk window in MouseEntered. Add comments to the code. Fixes bug
148         #350460.
149
150 2007-06-06  Richard Hult  <richard@imendio.com>
151
152         * gdk/quartz/gdkevents-quartz.c (get_converted_window_coordinates):
153         Don't do anything if the two windows are the same.
154         (find_window_for_ns_event): Translate coordinates to be relative
155         the grab window when appropriate.
156
157 2007-06-06  Emmanuele Bassi  <ebassi@gnome.org>
158
159         * gtk/gtkfilechooserdefault.c:
160         (get_file_info_finished), (shortcuts_insert_path),
161         (shortcuts_add_bookmarks), (shortcuts_add_current_folder): Factor
162         out the search shortcut, the recently used shortcut and the separator
163         from the shortcut selection combo. (#444734)
164
165         (recent_idle_load): Remove the idle source that lazily loads the
166         recently used files, if the GtkRecentManager returns an empty
167         list. (#443913)
168
169 2007-06-06  Ross Burton  <ross@openedhand.com>
170
171         * gdk/x11/gdkspawn-x11.c:
172         Set DISPLAY in the child process using g_setenv() instead of
173         constructing a new envp, which lets callers use child setup
174         functions which call putenv (#442617).
175
176 2007-06-06  Johan Dahlin  <jdahlin@async.com.br>
177
178         reviewed by: Matthias Clasen <mclasen@redhat.com>
179         
180         * gtk/gtkassistant.c (gtk_assistant_update_buttons_state): 
181         Check if the wizard is empty before trying to access the first page.
182         (#444310, Johan Dahlin)
183
184 2007-06-06  Matthias Clasen  <mclasen@redhat.com>
185
186         * configure.in: Bump version
187
188         * === Released 2.11.2 ===
189
190         * NEWS: Updates
191
192 2007-06-06  Kristian Rietveld  <kris@imendio.com>
193
194         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_queue_resize): use
195         GTK_IS_TREE_VIEW_COLUMN() in g_return_if_fail here.
196
197 2007-06-06  Kristian Rietveld  <kris@imendio.com>
198
199         * gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_get_tree_view): new
200         function.  (#342471, Lorenzo Gil Sanchez).
201
202         * gtk/gtk.symbols: updated.
203
204 2007-06-06  Kristian Rietveld  <kris@imendio.com>
205
206         * gtk/gtktooltip.c (gtk_tooltip_paint_window): remove unused
207         call to gtk_widget_size_request().  (Reported by Carlos
208         Garnacho).
209
210 2007-06-06  Kristian Rietveld  <kris@imendio.com>
211
212         * gtk/gtktooltip.c (gtk_tooltip_show_tooltip): bail out if
213         last_window is not a GdkWindow anymore. (Fixes #434021, several
214         reporters).
215
216 2007-06-06  Matthias Clasen <mclasen@redhat.com>
217
218         * gdk/Makefile.am: Remove leftover reference to medialib_h_sources.
219
220 2007-06-06  Brian Cameron  <brian.cameron@sun.com>
221
222         * gdk/Makefile.am: Add gdkmedialib.h to EXTRA_DIST so this header
223           file gets included with the distribution, as needed.  Fixes bug
224           #442888.  Reviewed by Matthias Clasen.
225
226 2007-06-06  Richard Hult  <richard@imendio.com>
227
228         * gdk/quartz/gdkevents-quartz.c
229         (_gdk_quartz_events_update_mouse_window): Ignore if the old and new
230         windows are the same.
231
232 2007-06-06  Kristian Rietveld  <kris@imendio.com>
233
234         * gtk/gtktreeview.c (gtk_tree_view_unrealize): also remove the
235         auto expand timeout if it exists.
236
237 2007-06-06  Richard Hult  <richard@imendio.com>
238
239         * gdk/quartz/gdkevents-quartz.c (synthesize_crossing_events):
240         Update comment to be more clear and print a warning if we try to
241         create a crossing event without knowing what the current mouse
242         window is, to help track down focus bugs.
243
244         * gdk/quartz/gdkevents-quartz.c
245         (_gdk_quartz_events_update_focus_window): Fix indentation.
246
247 2007-06-06  Richard Hult  <richard@imendio.com>
248
249         * gdk/quartz/GdkQuartzWindow.c: Don't let temp windows become key
250         window.
251
252 2007-06-06  Tor Lillqvist  <tml@novell.com>
253
254         * gdk/x11/gdkwindow-x11.c (gdk_window_set_opacity): Fix
255         embarrassing crash. (#444457, Torsten Schoenfeld)
256
257 2007-06-05  Yevgen Muntyan  <muntyan@tamu.edu>
258
259         * demos/gtk-demo/textview.c (insert_text): Drop the phrase
260         saying invisible text doesn't work (#444236).
261
262 2007-06-05  Matthias Clasen <mclasen@redhat.com>
263
264         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Check that
265         window_private is not NULL before using it.  (#444351, David Ronis)
266
267 2007-06-05  Jakub Steiner <jimmac@ximian.com>
268
269         * gtk/stock-icons/{16,24}/gtk-find*: drop the paper sheet.
270                 gtk-find is used for search, rather than find within a document
271                 (file dialog).
272
273 2007-06-05  Kristian Rietveld  <kris@gtk.org>
274
275         Fix #399071, suggestion from Benoit Dejean.
276
277         * gtk/gtkliststore.[ch] (gtk_list_store_set_vector_internal): new
278         function, factored out code iterating (columns, values) vectors from
279         gtk_list_store_new_with_valuesv to here,
280         (gtk_list_store_set_valuesv): new public function to set list store
281         values using (columns, values) vectors,
282         (gtk_list_store_new_with_valuesv): call new _set_vector_internal
283         instead.
284
285         * gtk/gtktreestore.[ch] (gtk_tree_store_set_vector_internal),
286         (gtk_tree_store_set_valuesv), (gtk_tree_store_new_with_valuesv):
287         likewise.
288
289         * gtk/gtk.symbols: updated.
290
291 2007-06-04  Richard Hult  <richard@imendio.com>
292
293         * gdk/quartz/gdkwindow-quartz.c:
294         (show_window_internal): Don't try to make temp windows key
295         windows, fixes problem introduced below.
296
297 2007-06-04  Richard Hult  <richard@imendio.com>
298
299         * gdk/quartz/GdkQuartzWindow.c: 
300         * gdk/quartz/gdkwindow-quartz.c: Implement simple versions of
301         gdk_window_set_accept_focus and gdk_window_set_focus_on_map.
302
303 2007-06-04  Richard Hult  <richard@imendio.com>
304
305         * gdk/quartz/gdkwindow-quartz.c: (gdk_window_raise),
306         (gdk_window_lower): Implement.
307
308 2007-06-04  Richard Hult  <richard@imendio.com>
309
310         * gdk/quartz/gdkwindow-quartz.c:
311         * gdk/quartz/gdkwindow-quartz.h: Implement 
312         gdk_window_set_transient_for.
313
314 2007-06-04  Cody Russell  <bratsche@gnome.org>
315
316         * gtk/gtklinkbutton.h
317         * gtk/gtkaboutdialog.h: Change function argument "link"
318         to "link_" to fix warnings for applications compiling
319         with -Wshadow. (#379213)
320
321 2007-06-04  Cody Russell  <bratsche@gnome.org>
322
323         * gtk/gtkpathbar.c (gtk_path_bar_scroll_down): Check
324         if down_button is NULL.  This happens when the pathbar button
325         for the current directory is too large to fit in the
326         space, e.g. on Windows for directories named something like
327         "My Documents and Settings".  (#389603)
328
329 2007-06-04  Matthias Clasen  <mclasen@redhat.com>
330
331         * configure.in: Bump version
332
333         * === Released 2.11.1 ===
334
335         * gdk/gdkwindow.c (gdk_window_set_composited): Improve docs.
336
337         * NEWS:
338         * README.in: Updates
339
340 2007-06-04  Michael Natterer  <mitch@imendio.com>
341
342         Move "move-focus" signals from several widgets to GtkWidget to
343         enable more flexible costomization of keyboard navigation via
344         bindings. Fixes bug #414947.
345
346         * gtk/gtkwidget.c: add "move-focus" binding signal, default to
347         calling the toplevel GtkWindow's "move-focus" vfunc.
348
349         * gtk/gtktextview.[ch]
350         * gtk/gtkwindow.[ch]: remove "move-focus" signals and add compat
351         code that makes sure that both emitting the signal on the widget
352         and overriding the virtual functions keeps working as before.
353
354         * gtk/gtktoolbar.c: remove "move-focus" signal here too and use
355         GtkWidget's signal. This change slightly changes keyboard
356         navigation in toolbars. I'll fix the behavior if somebody can
357         explain me if and how exactly the new behavior is broken.
358
359 2007-06-04  Matthias Clasen  <mclasen@redhat.com>
360
361         * gtk/gtkmarshalers.list:
362         * gtk/gtknotebook.[hc]: Add a create-window signal that allows
363         to override the global create-window-hook on a per-notebook
364         basis. The default handler falls back to the global hook.
365         (#386935, Christian Hammond)
366         
367 2007-06-04  Emmanuele Bassi  <ebassi@gnome.org>
368
369         * gtk/gtkradiobutton.[ch]:
370         * gtk/gtk.symbols:
371         * tests/testgtk.c: Revert previous commit; the API is not yet
372         finalized - see bug #166995.
373
374 2007-06-04  Emmanuele Bassi  <ebassi@gnome.org>
375
376         * gtk/gtkradiobutton.h:
377         * gtk/gtkradiobutton.c:
378         * gtk/gtk.symbols: Add gtk_radio_button_set_value(),
379         gtk_radio_button_get_current_value() and gtk_radio_button_get_value().
380         Use these functions to set and get an arbitrary integer associated to
381         a GtkRadioButton in a group, like the value associated to a
382         GtkRadioAction.
383
384         * tests/testgtk.c:
385         (create_radio_buttons), (radio_toggled_cb): Exercise the new API.
386
387 2007-06-03  Torsten Schoenfeld  <kaffeetisch@gmx.de>
388
389         * gtk/gtkicontheme.c (choose_icon): Initialize unthemed_icon to NULL
390         to avoid accessing uninitialized memory when
391         gtk_icon_theme_choose_icon() is called with an empty names list.
392
393 2007-06-03  Richard Hult  <richard@imendio.com>
394
395         * gdk/quartz/gdkevents-quartz.c: (create_crossing_event): Set the key
396         modifier state.
397
398 2007-06-03  Richard Hult  <richard@imendio.com>
399
400         * gdk/quartz/gdkevents-quartz.c: Make pointer grab emulation work a bit
401         better:
402         (gdk_display_pointer_is_grabbed): Do what the docs say and don't
403         consider implicit grabs here.
404         (gdk_pointer_grab): Overriding a grab by the same app should always be
405         succesful.
406         (gdk_event_translate): Implicit grabs should not be owner events.
407
408 2007-06-03  Matthias Clasen  <mclasen@redhat.com>
409
410         * NEWS: Updates
411
412 2007-06-03  Matthias Clasen  <mclasen@redhat.com>
413
414         * docs/tools/widgets.c: Add a volume button
415
416 2007-06-03  Matthias Clasen  <mclasen@redhat.com>
417
418         * gtk/gtkradiobutton.c:
419         * gtk/gtkradiomenuitem.c: Fix doc typos.  
420
421 2007-06-03  Matthias Clasen  <mclasen@redhat.com>
422
423         * configure.in: Allow to disable Xinerama.  (#348065, Diego Pettenò)
424
425 2007-06-03  Xan Lopez  <xan@gnome.org>
426
427         * gtk/gtknotebook.c: remove index parameter in gtk_notebook_switch_page
428         and remove g_return_if checks in private functions. (#443247)
429
430 2007-06-01  Richard Hult  <richard@imendio.com>
431
432         * gdk/quartz/gdkevents-quartz.c:
433         (get_converted_window_coordinates), (create_crossing_event): Fix the
434         coordinates in crossing events so they are relative to the right
435         window.
436
437 2007-06-01  Richard Hult  <richard@imendio.com>
438
439         * gdk/quartz/gdkevents-quartz.[ch]: Make function naming
440         consistent for the various functions that retrieve data from an
441         event.
442
443         * gdk/quartz/gdkprivate-quartz.h: 
444         * gdk/quartz/gdkwindow-quartz.[ch]: Remove the now unused
445         _gdk_quartz_window_find_child_by_point() function.
446
447 2007-06-01  Matthias Clasen  <mclasen@redhat.com>
448
449         Add support for composited child windows.  (#412882, Ryan Lortie)
450
451         * gdk/gdk.symbols:
452         * gdk/gdkdisplay.h:
453         * gdk/gdkinternals.h:
454         * gdk/gdkwindow.[hc]: Add gdk_display_supports_composite() and
455         gdk_window_set_composited().
456
457         * gdk/x11/gdkevents-x11.c:
458         * gdk/x11/gdkdisplay-x11.[hc]:
459         * gdk/x11/gdkwindow-x11.[hc]: X11 implementation.
460
461         * gdk/win32/gdkdisplay-win32.c:
462         * gdk/win32/gdkwindow-win32.c: Dummy win32 implementration.
463
464         * gdk/quartz/gdkdisplay-quartz.c:
465         * gdk/quartz/gdkwindow-quartz.c: Dummy Quartz implementation.
466
467         * gdk/directfb/gdkdisplay-directfb.c:
468         * gdk/directfb/gdkwindow-directfb.c: Dummy DirectFB implementation.
469
470         * tests/testgtk.c: Add a "composited window" test.
471
472 2007-06-01  Michael Natterer  <mitch@imendio.com>
473
474         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): don't switch
475         submenu opening direction for overlapping reasons if there is even
476         less space on the other side (bug #441863, Tommi Komulainen).
477
478 2007-06-01  Michael Natterer  <mitch@imendio.com>
479
480         * gtk/gtkfilechooserdialog.c (response_cb): change fix for #347883
481         to not obfuscate the code.
482
483 2007-06-01  Yevgen Muntyan  <muntyan@tamu.edu>
484
485         Avoid recreating pangolayouts in GtkTextView on cursor movement
486         (#435405, Behdad Esfahbod).
487
488         * gtk/gtktextlayout.c:
489         * gtk/gtktextlayout.h: new GtkTextLayout method invalidate_cursors(),
490         and functions gtk_text_layout_invalidate_cursors() and
491         gtk_text_layout_cursors_changed(), to use when invalidation is due
492         to moved marks or changed selection.
493
494         * gtk/gtktextbtree.c:
495         * gtk/gtktextbtree.h: use what's appropriate when invalidating layout.
496
497         * gtk/gtk.symbols: add new functions.
498
499         * README.in: added a note about changed GtkTextLayout API.
500
501 2007-06-01  Alp Toker  <alp.toker@collabora.co.uk>
502
503         * gdk/gdkcairo.c (gdk_cairo_set_source_pixmap): Fix doc typos.
504
505 2007-05-31  Yevgen Muntyan  <muntyan@tamu.edu>
506
507         * gtk/gtkstyle.c (get_insertion_cursor_gc): use text colors from
508         widget style to draw cursor instead of hardcoded black and grey
509         (#79585, comment #30).
510
511 2007-06-01  Kristian Rietveld  <kris@gtk.org>
512
513         * gtk/gtkcellrenderertext.c (get_size): transform the ink_rect using
514         pango_extents_to_pixels to avoid rounding errors.  (Fixes #430218,
515         Shlomi Israel).
516
517 2007-05-31  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
518
519         * tests/autotestfilechooser.c: Reactivate the other file-chooser
520         tests. Forgot that before commiting revision 17994.
521
522 2007-05-31  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
523
524         * gtk/gtkfilechooserdialog.c, tests/autotestfilechooser.c: Reset
525         the internal response_requested flag, once the response triggered by
526         file_chooser_widget_response_requested has been processed (#347883).
527
528 2007-05-30  Richard Hult  <richard@imendio.com>
529
530         * gdk/quartz/gdkselection-quartz.c (gdk_free_text_list): Add this
531         function, bug #438440.
532
533 2007-05-30  Tor Lillqvist  <tml@novell.com>
534
535         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Subtract the
536         multi-monitor offset from x and y before setting up the rectangle
537         for ClipCursor(). Fixes #442326.
538
539 2007-05-30  Matthias Clasen  <mclasen@redhat.com>
540
541         * gtk/gtkiconview.c (gtk_icon_view_layout): Queue a resize
542         if the size changed.  (#418047, Alex Graveley)
543
544 2007-05-30  Simos Xenitellis  <simos@gnome.org>
545
546         * gdk/gdkkeysyms-update.pl: Updated script to new upstream 
547         location of keysymdef.h (#442183)
548
549 2007-05-30  Emmanuele Bassi  <ebassi@gnome.org>
550
551         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Return
552         after setting the file chooser entry with the current selection.
553
554 2007-05-30  Matthias Clasen  <mclasen@redhat.com>
555
556         * gtk/gtkiconcachevalidator.c: Correct the handling
557         of display names.  (#441767, Marcin Bachry)
558
559 2007-05-30  Xan Lopez  <xan@gnome.org>
560
561         * gtk/gtknotebook.c (gtk_notebook_set_current_page): Small cleanup.
562         Fixes #442172.
563
564 2007-05-28  Cody Russell  <bratsche@gnome.org>
565
566         * gdk/win32/xcursors.h: Fix initialization of last item. (#440511)
567
568 2007-05-28  Richard Hult  <richard@imendio.com>
569
570         * gdk/quartz/gdkevents-quartz.c (get_child_coordinates_from_ancestor)
571         (get_ancestor_coordinates_from_child): Break out code that was
572         repeated into separate functions and call them instead.
573         (find_window_for_mouse_nsevent): Break out this from
574         find_window_for_nsevent to make the code clearer.
575         (find_window_for_nsevent): Use the above and fix the returned
576         coordinates in the process so that they are always relative the
577         found window, both for the normal case and during grabs. Still
578         needs fixing for the case where we get nsevents for a window other
579         than than grab window during grabs.
580
581 2007-05-28  Richard Hult  <richard@imendio.com>
582
583         * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Fix typo,
584         we need both press and release in the mask to trigger implicit
585         grabs.
586
587 2007-05-28  Richard Hult  <richard@imendio.com>
588
589         * gdk/quartz/gdkevents-quartz.c (pointer_ungrab_internal): Reset
590         all the grab state, to help debugging.
591         (gdk_event_translate): Use pointer_ungrab_internal instead of
592         duplicating the code here.
593
594 2007-05-28  Richard Hult  <richard@imendio.com>
595
596         * gdk/quartz/gdkprivate-quartz.h:
597         * gdk/quartz/gdkwindow-quartz.c (find_child_window_helper)
598         (_gdk_quartz_window_find_child): Refactored version of
599         _gdk_quartz_window_find_child_by_point, that doesn't return any
600         coordinates as the users of this function already have the
601         coordinates and need to translate them differently.
602         (_gdk_windowing_window_get_pointer): Fixup coordinate translation.
603         (_gdk_windowing_window_at_pointer): Likewise.
604
605 2007-05-28  Richard Hult  <richard@imendio.com>
606
607         * gdk/quartz/gdkevents-quartz.c
608         (find_window_interested_in_event_mask): Don't traverse beyond the
609         toplevel of the passed in window.
610
611 2007-05-28  Richard Hult  <richard@imendio.com>
612
613         * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init): Set
614         a size for the root window.
615
616 2007-05-28  Richard Hult  <richard@imendio.com>
617
618         * gdk/quartz/gdkwindow-quartz.c: Add comments about what various
619         coordinates are relative to.
620
621 2007-05-28  Carlos Garnacho  <carlos@imendio.com>
622
623         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed_recurse):
624         Add back variable declaration removed in r17958.
625
626 2007-05-28  Carlos Garcia Campos  <carlosgc@gnome.org>
627
628         * gtk/gtkprinter.[ch]: Add new capability
629         GTK_PRINT_CAPABILITY_NUMBER_UP.
630         * docs/reference/gtk/tmpl/gtkprintunixdialog.sgml: 
631         * gtk/gtkprintunixdialog.c: (update_dialog_from_capabilities):
632         * modules/printbackends/file/gtkprintbackendfile.c:
633         (file_printer_get_options), (file_printer_get_settings_from_options):
634         * modules/printbackends/cups/gtkprintbackendcups.c:
635         (cups_printer_get_capabilities): Add a new print capability to specify
636         whether print dialog will offer printing multiple pages per sheet. (#398414)
637         
638 2007-05-28  Matthias Clasen  <mclasen@redhat.com>
639
640         * gtk/gtktoolbar.h: Actually undeprecate 
641         gtk_toolbar_[un]set_icon_size.  (#314172. Yevgen Muntyan)
642
643 2007-05-28  Matthias Clasen  <mclasen@redhat.com>
644
645         * gtk/gtkwidget.c: Document some more signals
646
647         * gtk/gtktextview.c: Improve docs
648
649 2007-05-27  Tor Lillqvist  <tml@novell.com>
650
651         * configure.in (GDK_EXTRA_LISB): Drop bogus -user32 switch. Was
652         supposed to be -luser32, but he "l" was missing. But nobody has
653         noticed, so presumably unnecessary.
654
655 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
656
657         * gtk/gtkprintoperationpreview.c: Improve docs
658
659 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
660
661         * gtk/gtkentry.c: Move docs inline.
662
663 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
664
665         * gdk/directfb/gdkkeys-directfb.c: Remove duplicate doc comments
666         that cause problems when building the docs.
667
668 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
669         
670         * gdk/x11/gdkdisplay-x11.c: Update docs
671         * gdk/gdk.c: Update docs
672         * gdk/directfb/gdkwindow-directfb.c: Remove duplicate doc comments.
673         * gdk/x11/gdkwindow-x11.c: Fix doc formatting
674
675 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
676
677         * gtk/gtktooltip.c:
678         * gtk/gtkstatusicon.c:
679         * gtk/gtkscalebutton.c:
680         * gtk/gtkrecentaction.c:
681         * gtk/gtkrange.c:
682         * gtk/gtkprinter.c:
683         * gtk/gtkprintsettings.c:
684         * gtk/gtkpapersize.c:
685         * gtk/gtkpagesetup.c:
686         * gtk/gtknotebook.c:
687         * gtk/gtkentrycompletion.c: Document new api
688
689 2007-05-26  Richard Hult  <richard@imendio.com>
690
691         * gtk/gtkprinter.c: (gtk_printer_set_location): Fix typo to get the
692         build working.
693
694 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
695
696         * configure.in: Require gtk-doc 1.6, for signal and property links.
697         * gtk/gtkbox.c:
698         * gtk/gtkbutton.c:
699         * gtk/gtkcontainer.c:
700         * gtk/gtkdialog.c:
701         * gtk/gtkentry.c:
702         * gtk/gtkimage.c:
703         * gtk/gtklabel.c:
704         * gtk/gtkmisc.c:
705         * gtk/gtksettings.c:
706         * gtk/gtkwidget.c: Documentation improvements, link signals
707         and properties where it makes sense.
708
709 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
710
711         * gtk/gtktextmark.c:
712         * gtk/gtktextbuffer.c: Formatting fixes.
713
714 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
715
716         Allow to separate GtkTextMark creation from buffer insertion.
717         (#132818, Gustavo Giráldez, patch by Yevgen Muntyan)
718
719         * gtk/gtktextmarkprivate.h:
720         * gtk/gtktextmark.[hc] (gtk_text_mark_new): New function to 
721         create a GtkTextMark.
722
723         * gtk/gtktextbuffer.[hc] (gtk_text_buffer_add_mark): New 
724         function to add an existing mark to a buffer. 
725
726         * gtk/gtktextbtree.c: Allow adding existing marks.
727
728         * gtk/gtk.symbols: Add new functions.
729
730         * tests/testtextbuffer.c: Add some tests for new mark 
731         functionality.
732
733 2007-05-25  Xan Lopez  <xan@gnome.org>
734
735         * gtk/gtkaction.c: (gtk_action_set_short_label):
736         Use private->data->short_label to update the proxies. (#440780)
737
738 2007-05-25  Richard Hult  <richard@imendio.com>
739
740         * gdk/quartz/gdkimage-quartz.c: (_gdk_quartz_image_copy_to_image):
741         Implement copying from a window, part of bug #348493.
742
743 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
744
745         * gtk/gtkprintoperation-unix.c (unix_end_run): Hold a 
746         refence on the print operation until gtk_print_job_send()
747         is done.  (#440040, Chris Vine)
748
749 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
750
751         * gtk/gtkiconview.c (gtk_icon_view_accessible_ref_child):
752         Don't crash and don't leak.  (#439565, Pedro Villavicencio)
753
754 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
755
756         * gtk/gtkiconfactory.c: Improve a warning
757         * gtk/gtkicontheme.c (gtk_icon_info_load_icon): Always
758         set the error when returning NULL.  (#440982, Carlos Garcia
759         Campos)
760
761 2007-05-25  Michael Natterer  <mitch@imendio.com>
762
763         Merge fix from maemo-gtk:
764
765         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): open submenus
766         also if the menu item we're entering is already selected. Also, it
767         makes no sense to forward the event to the parent menu shell if we
768         are entering a menu item of *this* menu shell.
769
770 2007-05-24  Matthias Clasen  <mclasen@redhat.com>
771
772         * gtk/stock-icons/*: Make sure all svg icons are added
773         as pngs.
774
775 2007-05-24  Matthias Clasen  <mclasen@redhat.com>
776
777         * modules/input/Makefile.am: Fix broken DESTDIR support
778
779 2007-05-24  Michael Natterer  <mitch@imendio.com>
780
781         * gtk/gtktooltip.c (find_widget_under_pointer): apply patch from
782         Bogdan Nicula which fixes a crash on GdkWindows which have no
783         GtkWidget as user_data (bug #440890).
784
785 2007-05-24   Matthias Clasen  <mclasen@redhat.com>
786
787         * configure.in: Bump version
788
789         * === Released 2.11.0 ===
790
791         * NEWS: Updates
792
793 2007-05-23   Matthias Clasen  <mclasen@redhat.com>
794
795         * gtk/gtk.symbols: 
796         * gdk/x11/xsettings-common.h: 
797         * gdk/gdk.symbols: Add some missing symbols.
798
799         * gtk/paper_names_offsets.c:
800         * gtk/gen-paper-names.c: Make variables static.
801
802         * gtk/gtktooltip.[hc]:
803         * gtk/gtkvolumebutton.c:
804         * gtk/gtkscalebutton.c:  Fix up symbol aliasing.
805
806 2007-05-23  Yevgen Muntyan  <muntyan@tamu.edu>
807
808         * gtk/gtkprintunixdialog.c: missing #include <ctype.h>.
809
810         * gtk/gtkhandlebox.c (gtk_handle_box_paint):
811         * gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers):
812         * gtk/gtkstatusbar.c (gtk_statusbar_get_context_id):
813         * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path):
814         * gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request):
815         * gtk/gtkpreview.c (gtk_preview_finalize):
816         * gtk/gtknotebook.c (gtk_notebook_set_group_id):
817         * tests/testnotebookdnd.c (window_creation_function):
818         * tests/testiconview.c (do_popup_menu):
819         Fixed some compiler warnings (#440689).
820
821 2007-05-23  Kristian Rietveld  <kris@imendio.com>
822
823         * gtk/gtktooltip.c (find_widget_under_pointer): translate coordinates
824         from the window they were received on to the event widget's window;
825         correct for no-window widgets after that, bail out on failure.  This
826         makes the coordinates given by GtkWidget::query-tooltip truly relative
827         to widget->window.  (#435188).
828
829         * gtk/gtkwidget.c (gtk_widget_class_init): update docs for
830         GtkWidget::query-tooltip.
831
832 2007-05-22  Behdad Esfahbod  <behdad@gnome.org>
833
834         * gtk/gtkprintcontext.c (gtk_print_context_finalize),
835         (_gtk_print_context_new), (_gtk_print_context_get_fontmap),
836         (gtk_print_context_set_cairo_context),
837         (gtk_print_context_get_pango_fontmap),
838         (gtk_print_context_create_pango_context):
839         Don't create new pango fontmaps.  Use the default pangocairo
840         fontmap and set resolution on PangoContext instead. (#417707)
841
842 2007-05-21  Richard Hult  <richard@imendio.com>
843
844         * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_open): Set the
845         resolution.
846         
847         * gdk/quartz/gdkscreen-quartz.c: Use the autorelease pool macros.
848
849 2007-05-21  Michael Natterer  <mitch@imendio.com>
850
851         * gtk/gtkcombobox.c (gtk_combo_box_set_model): revert last change.
852
853 Mon May 21 13:58:32 2007  Tim Janik  <timj@imendio.com>
854
855         * gtk/gtkcombobox.c (gtk_combo_box_set_model): removed redundant check.
856
857 2007-05-21  Tor Lillqvist  <tml@novell.com>
858
859         * gtk/gtkscalebutton.c (gtk_scale_popup): Make it work better with
860         multiple monitors.
861
862 2007-05-20  Attilio Fiandrotti  <attilio.fiandrotti@gmail.com>
863
864         * gdk/directfb/gdkwindow-directfb.c:
865         * gdk/directfb/gdkdirectfb.h: Updated minimum DirectFB version
866         required to enable gdk_directfb_create_child_window.
867         (Closes: #437379)
868
869 2007-05-20  Bastien Nocera  <hadess@hadess.net>
870
871         * gtk/Makefile.am:
872         * gtk/gtk.h:
873         * gtk/gtk.symbols:
874         * gtk/gtkvolumebutton.[ch]: Add the GtkVolumeButton widget,
875         a button that pops up a scale when clicked (Closes: #415775)
876         * tests/Makefile.am:
877         * tests/testvolumebutton.c: Add a test program for the
878         volume button
879
880 2007-05-19  Bastien Nocera  <hadess@hadess.net>
881
882         reviewed by: Matthias Clasen <mclasen@redhat.com>
883
884         * gtk/Makefile.am:
885         * gtk/gtk.h:
886         * gtk/gtk.symbols:
887         * gtk/gtkscalebutton.[ch]: Add the GtkScaleButton widget,
888         a button that pops up a scale when pressed
889
890 2007-05-19  Matthias Clasen  <mclasen@redhat.com>
891
892         * gtk/gtk.symbols:
893         * gtk/gtknotebook.[hc]: Deprecate gtk_notebook_[gs]et_group_id
894         in favour of new functions gtk_notebook_[gs]et_group, which
895         takes a pointer as group identifier and makes it easier to
896         avoid group id collisions.  (#386930, Christian Hammond)
897                 
898         * tests/testnotebookdnd.c: Use new grouping api.
899
900 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
901
902         * gtk/gtkactiongroup.c: Warn and refuse to add actions with
903         duplicate names.  (#150877, Tommi Komulainen, patch by Kalle
904         Vahlman)
905
906 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
907
908         * gtk/gtk.symbols:
909         * gtk/gtkentry.[hc]: Add gtk_entry_[gs]et_cursor_hadjustment()
910         to allow automatic scrolling in response to cursor movements
911         in the entry.  (#438651, Nate Nielsen)
912
913 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
914
915         * gtk/gtktextview.c: Add a toggle-cursor-visibility keybinding
916         signal, and bind F7 to it.  (#380048, Tim Miao)
917
918 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
919
920         * gtk/gtk.symbols:
921         * gtk/gtkicontheme.h:
922         * gtk/gtkicontheme.c: Add a function to look up an icon from
923         a list of icon names.  (#396901, Luca Ferretti)
924
925 2007-05-18  Emmanuele Bassi  <ebassi@gnome.org>
926
927         * gtk/gtkrecentchooserdefault.c:
928         (gtk_recent_chooser_default_dispose): Reset the state on dispose.
929
930         (cleanup_after_load): load_id != 0 && load_state == LOAD_EMPTY
931         is a valid state, if the main loop never had the chance to
932         properly spin at least once. (#438671)
933
934 2007-05-18  Emmanuele Bassi  <ebassi@gnome.org>
935
936         * gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark
937         string for translation. (#439437)
938
939 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
940
941         * gtk/gtkwindow.c (gtk_window_set_transient_for): Fix
942         doc typo.  (#438100, Vincent Untz)
943
944 2007-05-18  Michael J. Chudobiak  <mjc@cvs.gnome.org>
945
946         * INSTALL.in:
947         * README.in:
948         * configure.in: Bump libtiff requirement to 3.6.0, by requiring
949           presence of TIFFReadRGBAImageOriented.
950
951         * gdk-pixbuf-scaled-anim.c: (get_scaled_pixbuf):
952         Preserve pixbuf options when generating a new scaled pixbuf.
953
954         * io-jpeg.c: (get_orientation), (gdk_pixbuf__jpeg_image_load),
955         (gdk_pixbuf__jpeg_image_load_increment): Read the exif
956         orientation tag and associate it with the "orientation" pixbuf
957         option. Renders libexif unnecessary in some applications.
958
959         * io-tiff.c: (tiff_image_parse): Read the tiff orientation tag,
960         compensate for the partial rotations performed by libtiff,
961         and generate an "orientation" option for the pixbuf.
962
963 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
964
965         * gtk/gtkexpander.c: remove c++ style comment.
966
967 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
968
969         Make combobox menu popdown keybindable (#433593)
970
971         * gtk/gtkcombobox.c (gtk_combo_box_class_init): Add "popdown" binding
972         signal and keybindings.
973         (gtk_combo_box_real_popdown): Added, "popdown" keybinding signal
974         handler.
975         (gtk_combo_box_menu_key_press):
976         (gtk_combo_box_list_key_press): forward the event to the combobox if
977         it wasn't handled by the menu.
978
979 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
980
981         * gtk/gtknotebook.c (gtk_notebook_init) (gtk_notebook_drag_motion)
982         (gtk_notebook_drag_drop): Allow widgets up in the hierarchy to run
983         their DnD handlers if the target doesn't match with anything the
984         notebook manages. (#350665, Joakim Lundborg).
985
986 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
987
988         Refactor GtkFileChooserDialog sizing.
989
990         * gtkfilechooserembed.[ch] (delegate_get_resizable_hints)
991         (_gtk_file_chooser_embed_get_resizable_hints):
992         s/resizable_hints/resizable/, return just one boolean value to
993         determine whether the filechooser should be resizable or not.
994
995         * gtkfilechooserprivate.h (struct GtkFileChooserDialogPrivate): remove
996         variables related to the GtkFileChooserEmbed get_default_size() and
997         get_resizable() implementations.
998         (struct GtkFileChooserDefault): Move default size management here.
999
1000         * gtkfilechooserdefault.c (gtk_file_chooser_default_size_allocate):
1001         Added, store currently allocated size to calculate default size later.
1002         (gtk_file_chooser_default_get_resizable_hints):
1003         s/resizable_hints/resizable/.
1004         (gtk_file_chooser_default_set_property): Reload settings if the file
1005         chooser action changes, this way the save expander state will be known
1006         before mapping the window, avoiding wrong window positioning and
1007         flickering. (#424299, #424309)
1008         (find_good_size_from_style): Only get size from style if it wasn't set
1009         previously.
1010         (gtk_file_chooser_default_get_default_size): return default size based
1011         on stored default size and preview/extra widget sizes.
1012
1013         * gtkfilechooserdialog.c (file_chooser_widget_update_hints)
1014         (file_chooser_widget_realized_size_changed)
1015         (file_chooser_widget_unrealized_size_changed): simplified to
1016         (file_chooser_widget_size_changed): set window size and resizability
1017         based on the GtkFileChooserEmbed interface implementation. (Bug
1018         #420285, Tomeu Vizoso)
1019         (gtk_file_chooser_dialog_map): force a dialog size change, so it's
1020         clamped for sure to the 75% of the screen size.
1021
1022 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
1023
1024         * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Do not unset
1025         the brand new current page if there was none set previously. Fixes
1026         #425138 (Reported by Michail Crayson). Some code simplifications.
1027         (gtk_notebook_draw_arrow): code style fix.
1028
1029 2007-05-16  Matthias Clasen  <mclasen@redhat.com>
1030
1031         * gtk/gtkpathbar.c: Add ATK names to the Up, Down, and Root
1032         buttons. Keep the focus from vanishing when Up or Down arrows
1033         become insensitive or invisible.  (#357005, Patrick Wade)
1034
1035 2007-05-16  Brian Cameron  <brian.cameron@sun.com>
1036
1037         * acconfig.h, configure.in, gdk/Makefile.am, gdkprivate.h, gdkrgb.c,
1038           gdkdraw.c, gdk-pixbuf/gdk-pixbuf-scale.c,
1039           gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/pixops/pixops.[ch],
1040           gdk-pixbuf/pixops/timescale.c:  Add Sun mediaLib support so that
1041           hardware acceleration via mediaLib is enabled if mediaLib is
1042           detected via configure.  Enhancement request #344813.  I was given
1043           permission to commit in the bug report by Matthias Clasen.
1044         * gdk/medialib.[ch]: New files added for mediaLib support.
1045         * docs/reference/gdk-pixbuf/tmpl/scaling.sgml,
1046           docs/reference/gdk/tmpl/rgb.sgml, gdk/gdkdraw.c:  Add docs for
1047           mediaLib support.
1048
1049 2007-05-15  Torsten Schoenfeld  <kaffeetisch@gmx.de>
1050
1051         * gtk/gtkprintoperation.c (pdf_end_run): Unset priv->platform_data and
1052         priv->free_platform_data to prevent gtk_print_operation_finalize()
1053         from freeing the cairo surface a second time.
1054
1055 2007-05-14  Kristian Rietveld  <kris@gtk.org>
1056
1057         * gtk/gtkfilechooserdefault.c (recent_column_path_sort_func): remove
1058         dangling semicolon, fixes the segfault ebassi was seeing earlier today
1059         ;)
1060
1061 2007-05-14  Tristan Van Berkom  <tvb@gnome.org>
1062
1063         * gtk/gtkaboutdialog.c: Functions: gtk_about_dialog_get/set_name() 
1064         were deprecated in favour of gtk_about_dialog_get/set_program_name(), 
1065         the GtkAboutDialog now uses the "program-name" property instead of 
1066         the conflicting "name" property (fixes bug 345822).
1067
1068 2007-05-14  Emmanuele Bassi  <ebassi@gnome.org>
1069
1070         * configure.in: Add check for GNU extensions to ftw()/nftw().
1071
1072         * gtk/gtksearchenginesimple.c: Fix compilation on systems with
1073         only POSIX-compliant ftw(). (#435797, based on a patch by
1074         Richard Hult)
1075
1076 2007-05-14  Emmanuele Bassi  <ebassi@gnome.org>
1077
1078         * gtk/gtkfilechooserdefault.c:
1079         Convert the GtkTreeIter inside the sorting functions for the
1080         search and recent modes. This doesn't yet fix the segfault when
1081         clicking the 'Name' column in recent mode, though.
1082
1083 2007-05-14  Behdad Esfahbod  <behdad@gnome.org>
1084
1085         * modules/input/gtkimcontextthai.c
1086         (gtk_im_context_thai_filter_keypress):
1087         Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)
1088
1089 2007-05-14  Matthias Clasen  <mclasen@redhat.com>
1090
1091         * gtk/gtkscrolledwindow.c: Document scrollbars-within-bevel
1092         as 2.12 addition.  (#438131, Mart Raudsepp)
1093
1094 2007-05-14  Matthias Clasen  <mclasen@redhat.com>
1095
1096         * gtk/gtkvseparator.c (gtk_vseparator_size_request): Fix
1097         size requisition for wide vertical separators.  (#438113, 
1098         Benjamin Berg)
1099
1100 2007-05-13  Emmanuele Bassi  <ebassi@gnome.org>
1101
1102         * gtk/gtksearchenginesimple.c: Include <ftw.h> and use nftw() and
1103         all the symbols defined in <ftw.h> conditionally.
1104
1105 2007-05-13  Cody Russell  <bratsche@gnome.org>
1106
1107         * gdk/win32/gdkevents-win32.c: Only do the configure event context
1108         iteration under WM_WINDOWPOSCHANGED instead of inside
1109         handle_configure_event().  This fixes a bug that prevented window
1110         contents from being redrawn after gtk_window_resize(). (#436721)
1111
1112 2007-05-12  Behdad Esfahbod  <behdad@gnome.org>
1113
1114         * gdk/gdkdraw.c (gdk_draw_trapezoids): Fix wrong cairo path
1115         generation.  (#437879, Eddie C. Dost)
1116
1117 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1118
1119         GtkFileChooser search fixes and recent files support.  (#435342)
1120         
1121         * gtk/gtkfilechooserdefault.c: Support drag and drop for
1122         adding shortcuts of folders when in search or recent files
1123         mode.
1124
1125 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1126
1127         GtkFileChooser search fixes and recent files support.  (#435342)
1128
1129         * gtk/gtkfilechooserprivate.h:
1130         * gtk/gtkfilechooserdefault.c: Follow the sorting order of
1131         the GtkTreeView displaying the files list.
1132
1133         (shortcuts_get_index), (shortcuts_insert_separator),
1134         (shortcuts_model_create), (shortcuts_combo_filter_func): Remove
1135         the separator between the Search and the Recently Used shortcuts.
1136
1137         (list_select_func), (list_icon_data_func), (list_name_data_func),
1138         (list_mtime_data_func): Update the sensitivity of the row
1139         depending on the GtkFileChooserAction used.
1140
1141 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1142
1143         GtkFileChooser search fixes and recent files support.  (#435342)
1144
1145         * gtk/gtkfilechooserprivate.h:
1146         * gtk/gtkfilechooserdefault.c: Update the contents of the
1147         files list when changing the filter of the GtkFileChooserDefault
1148         widget.
1149
1150 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1151
1152         GtkFileChooser search fixes and recent files support.  (#435342)
1153
1154         * gtk/gtkfilechooserdefault.c: Update the add bookmark button
1155         sensitivity when in search or recent files mode, and allow
1156         adding a bookmark for a folder.
1157
1158 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1159
1160         GtkFileChooser search fixes and recent files support.  (#435342)
1161
1162         * gtk/gtkfilechooserdefault.c: UI fixes in the Search mode: add
1163         a mnemonic to the label, de-boldify the label's text and assign
1164         focus to the search entry when switching to the search mode.
1165
1166         (list_name_data_func): Split the text in both search and recent
1167         files mode: on the first line use the short name and on the
1168         second line use the full path.
1169
1170 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1171
1172         GtkFileChooser search fixes and recent files support.  (#435342)
1173
1174         * gtk/gtkfilechooserprivate.h:
1175         * gtk/gtkfilechooserdefault.c: Add support for showing the
1176         recently used files list as a special shortcut item.
1177
1178 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1179         
1180         GtkFileChooser search fixes and recent files support.  (#435342)
1181
1182         * gtk/gtkfilechooserdefault.c: Overall whitespace fixes and
1183         indentation style consistency.
1184
1185         (list_row_activated): If the search hit is a folder, follow it
1186         when activating the row, and switch back to browse mode.
1187
1188         (search_clear_model), (search_start_query),
1189         (search_entry_activate_cb), (search_setup_widgets): Remember
1190         the last query when switching between modes.
1191
1192 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1193
1194         GtkFileChooser search fixes and recent files support.  (#435342)
1195
1196         * gtk/gtkfilechooserdefault.c:
1197         (_gtk_file_chooser_default_class_init): Add key binding for
1198         the Search shortcut; default to MOD1+S.
1199
1200         (search_shortcut_handler): Handle the key binding.
1201
1202         (search_hit_get_info_cb), (search_add_hit), (search_clear_model),
1203         (search_setup_model): Retrieve informations on the search hits
1204         when adding them to the model.
1205
1206         (list_icon_data_func): Show the search hit icon.
1207
1208 2007-05-11  Michael Natterer  <mitch@imendio.com>
1209
1210         * gtk/gtktextview.c (selection_motion_event_handler): call
1211         gdk_event_request_motions(event) so selecting works with
1212         XInput devices too. Spotted by Tommi Komulainen.
1213
1214 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
1215
1216         * gtk/gtksearchengine.c (_gtk_search_engine_new): Fall back
1217         to GtkSearchEngineSimple only if gthread has already been
1218         initialiased; otherwise, disable search support in the file
1219         chooser widget.  (#435847)
1220
1221 2007-05-10  Matthias Clasen <mclasen@redhat.com>
1222
1223         * gtk/gtkbutton.c (gtk_button_set_image): Unparent the old
1224         image before overwriting priv->image.  (#437281, Jochen Baier)
1225
1226 2007-05-10  Matthias Clasen <mclasen@redhat.com>
1227
1228         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_child):
1229         Correct a confusing warning.  (#437284, Björn Lindqvist)
1230
1231 2007-05-10  Matthias Clasen <mclasen@redhat.com>
1232
1233         * gdk/gdkdraw.c (gdk_draw_pixbuf): Don't call into
1234         the backend if the region is empty.  (#437081, Sven Neumann)
1235
1236 2007-05-10  Matthias Clasen <mclasen@redhat.com>
1237
1238         * gtk/gtksearchenginesimple.c (search_visit_func);
1239         Assume Posix nftw behaviour. 
1240
1241 2007-05-09  Dom Lachowicz <domlachowicz@gmail.com>
1242
1243         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: GtkTreeView doesn't 
1244         expand/collapse with Right/Left cursor keys on Windows
1245         (#436269, Daniel Atallah)
1246
1247 2007-05-09  Cody Russell  <bratsche@gnome.org>
1248
1249         * gtk/gtkmenu.c:
1250         (get_arrows_border): New function to calculate the border sizes needed 
1251         for the scroll arrows.
1252         (get_arrows_visible_area): New function to calculate the arrows visible 
1253         area.
1254         (get_arrows_sensitive_area): New function to calculate the arrows
1255         sensitive area.
1256         (gtk_menu_paint): Refactored code to calculate the border sizes needed
1257         for the scroll arrows into get_arrows_border and the code to calculate 
1258         the visible area into get_arrows_visible_area.
1259         (gtk_menu_handle_scrolling): Refactored arrow sensitive calculations
1260         to get_arrows_sensitive_area.
1261         (gtk_menu_realize, gtk_menu_size_allocate, gtk_menu_scroll_by,
1262         gtk_menu_position, gtk_menu_scroll_to, gtk_menu_scroll_item_visible,
1263         get_visible_size, get_menu_height, gtk_menu_real_move_scroll): Update
1264         callers.  (From #436533, Tommi Komulainen)
1265
1266 2007-05-09  Kristian Rietveld  <kris@imendio.com>
1267
1268         * gtk/gtktreeview.c (gtk_tree_view_key_press),
1269         (gtk_tree_view_key_release):
1270         * gtk/gtkiconview.c (gtk_icon_view_class_init),
1271         (gtk_icon_view_key_press),
1272         (gtk_icon_view_key_release): Disable key bindings during rubber
1273         banding, make pressing Esc stop rubber banding.  (#405027).
1274
1275 2007-05-09  Emmanuele Bassi  <ebassi@gnome.org>
1276
1277         * gtk/gtkrecentmanager.c:
1278         (gtk_recent_info_get_icon): Return GTK_STOCK_DIRECTORY for entries
1279         with MIME type "x-directory/normal", instead of GTK_STOCK_FILE.
1280
1281 2007-05-05  Richard Hult  <richard@imendio.com>
1282
1283         * gdk/quartz/gdkdrawable-quartz.c:
1284         (gdk_quartz_drawable_get_context),
1285         (gdk_quartz_drawable_release_context): Fix bugs #428733 and #433301.
1286         Turns out the lockFocus logic was flawed, now we only lock/unlock 
1287         when called outside a real expose event and never flush manually.
1288
1289 2007-05-03  Behdad Esfahbod  <behdad@gnome.org>
1290
1291         * gtk/gtklabel.c (gtk_label_ensure_layout):
1292         * gtk/gtktextlayout.c (set_para_values): Make GTK_JUSTIFY_FILL work,
1293         using pango_layout_set_justify() that works now. (#435675)
1294
1295 2007-05-03  Emmanuele Bassi  <ebassi@gnome.org>
1296
1297         * gtk/gtksearchenginesimple.c (search_engine_simple_finalize): Remove
1298         spurious g_free() call.
1299
1300 Thu May  3 16:27:34 2007  Tim Janik  <timj@imendio.com>
1301
1302         * tests/testgtk.c (create_handle_box): made handle box test non-modal,
1303         so other test can interact with handle boxes.
1304
1305 2007-05-02  Emmanuele Bassi  <ebassi@gnome.org>
1306
1307         Add search file support in the GtkFileChooser. Original patch
1308         by Federico Mena Quintero; patch updated by Matthias Clasen.
1309         See bug #344785.
1310
1311         * gtk/gtksearchengine.[ch]: Private search engine abstraction
1312         object.
1313
1314         * gtk/gtksearchenginebeagle.[ch]: Private search engine
1315         implementation using libbeagle (via g_module_open()).
1316
1317         * gtk/gtksearchenginesimple.[ch]: Private search engine
1318         implementation using file tree walking.
1319
1320         * gtk/gtksearchenginetracker.[ch]: Private earch engine
1321         implementation using libtracker (via g_module_open()).
1322
1323         * gtk/gtkquery.[ch]: Private query object for the search
1324         engines.
1325
1326         * gtk/gtkfilechooserprivate.h:
1327         * gtk/gtkfilechooserdefault.c: Use the GtkSearchEngine to
1328         query a search engine backend using GtkQuery; create a new
1329         operating mode, OPERATION_MODE_SEARCH, and call the common
1330         operating mode OPERATION_MODE_BROWSE; add support for virtual
1331         shortcuts inside the shortcuts model and create a new "Search"
1332         virtual shortcut.
1333
1334         * gtk/Makefile.am: Update the build with the new files
1335
1336 2007-05-02  Armin Burgmeier  <armin@openismus.com>
1337
1338         * gtk/gtkcombobox.c: Destroy the menu in dispose instead of
1339         finalize, because the menu might unparent itself from its parent and
1340         cause a signal emission on a finalized object. (#430746)
1341
1342 2007-05-02  Dom Lachowicz <domlachowicz@gmail.com>
1343
1344         * modules/engines/ms-windows/msw_style.c: MS-Windows Theme top tabs 
1345         rendered upside down for non-XP theme (#435053, Daniel Atallah)
1346
1347 Wed May  2 11:35:45 2007  Tim Janik  <timj@imendio.com>
1348
1349         * docs/faq/gtkfaq.sgml: removed, since this file is long outdated
1350         and fully replaced by docs/faq/gtk-faq.sgml.
1351
1352 2007-05-02  Kristian Rietveld  <kris@imendio.com>
1353
1354         * gtk/gtktreeview.c (gtk_tree_view_grab_notify): stop the rubber band
1355         if it's active.
1356
1357 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
1358
1359         * gtk/gtkiconcachevalidator.c: Don't be too strict when checking
1360         icon flags.  (#435062)
1361
1362 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
1363         
1364         * gtk/Makefile.am: When generating gtkbuiltincache.h, only copy
1365         pngs.
1366
1367 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
1368
1369         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_path_do):
1370         Don't ignore the fact that gtk_file_system_get_parent() 
1371         may return NULL.  (#424042, Jan Martinek)
1372
1373 2007-05-01  Dan Winship  <danw@novell.com>
1374
1375         * gdk/x11/gdkwindow-x11.c (setup_toplevel_window): Make sure the
1376         leader_window's WM_CLIENT_LEADER points to itself. #435028
1377
1378 2007-05-02  Christian Persch  <chpe@gnome.org>
1379
1380         * gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use
1381         GSlice for gtk_tree_iter_copy. Bug #434863.
1382
1383 2007-05-02  Christian Persch  <chpe@gnome.org>
1384
1385         * gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only
1386         GtkPaperSizes into the list, don't mix it with GtkPageSetups. Bug
1387         #434861.
1388
1389 2007-05-02  Christian Persch  <chpe@gnome.org>
1390
1391         * gtk/gtkpapersize.c: (gtk_paper_size_new_from_info),
1392         (gtk_paper_size_new), (gtk_paper_size_new_custom),
1393         (gtk_paper_size_copy), (gtk_paper_size_free): Use GSlice to allocate
1394         GtkPaperSize. Bug #434862.
1395
1396 2007-05-02  Christian Persch  <chpe@gnome.org>
1397
1398         * gtk/gtkstatusbar.c: (gtk_statusbar_get_context_id),
1399         (gtk_statusbar_expose_event): No need to allocate a guint; just stuff
1400         the ID into the pointer directly. Bug #434865.
1401
1402 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
1403
1404         * gtk/gtkfilechooserdefault.c (struct UpdateCurrentFolderData),
1405         (update_current_folder_get_info_cb): add a new struct field to clear
1406         the file entry after the current folder has been updated.
1407
1408         (gtk_file_chooser_default_update_current_folder),
1409         (change_folder_and_display_error): Add a new function parameter to
1410         trigger file entry clearing.
1411
1412         (edited_idle_create_folder_cb),
1413         (file_list_drag_data_received_get_info_cb),
1414         (gtk_file_chooser_default_map),
1415         (gtk_file_chooser_default_set_current_folder),
1416         (switch_to_selected_folder), (save_entry_get_info_cb),
1417         (shortcuts_activate_volume_mount_cb), (shortcuts_activate_volume),
1418         (shortcuts_activate_get_info_cb), (list_row_activated),
1419         (path_bar_clicked): use new function parameter appropriately.
1420
1421         (gtk_file_chooser_default_should_respond): trigger file entry clearing
1422         after the directory is updated instead of clearing it before, this way 
1423         we avoid reloading the completion model with the soon to be old folder, 
1424         causing a warning and a glitch in the folder where completion happens. 
1425         (#379414, Carlos Garnacho)
1426
1427 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
1428
1429         * gtk/gtkiconcachevalidator.[hc]: Add an icon cache validator.
1430
1431         * gtk/updateiconcache.c: Validate the generated cache before
1432         moving it in place. Also add a --validate option to validate
1433         an existing icon cache.
1434
1435         * gtk/gtkiconcache.c: Validate icon caches before using them.
1436
1437         * gtk/Makefile.am: Integrate it.
1438
1439 2007-05-01  Michael Emmel  <mike.emmel@gmail.com>
1440
1441         * gdk/directfb/gdkdisplay-directfb.c:
1442         Added stub gdk_notify_startup_complete_with_id to compile
1443         * gdk/directfb/gdkwindow-directfb.c:
1444         Added gdk_window_set_opacity
1445         * gdk/directfb/gdkkeys-directfb.c:
1446         Fix menu key handling crash Bug #413328
1447
1448 2007-05-01  Christian Persch  <chpe@gnome.org>
1449
1450         * gtk/gtkprinter.h:
1451         * gtk/gtkprintjob.h: Also move gtk_print_capabilities_get_type() to
1452         the new location. Bug #390437.
1453
1454 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
1455
1456         * gtk/gtksettings.c (settings_update_color_scheme):
1457         Make sure we always have a color_hash.  (#423916, Jens Granseuer)
1458
1459 2007-04-30  Christian Persch  <chpe@gnome.org>
1460
1461         * docs/reference/gtk/gtk-sections.txt:
1462         * gtk/gtk.symbols:
1463         * gtk/gtkprinter-private.h:
1464         * gtk/gtkprinter.c: (gtk_printer_get_capabilities),
1465         (gtk_print_capabilities_get_type):
1466         * gtk/gtkprinter.h:
1467         * gtk/gtkprintjob.c:
1468         * gtk/gtkprintjob.h:
1469         * gtk/gtkprintunixdialog.c: (selected_printer_changed):
1470         Make gtk_printer_get_capabilities public, and move the
1471         GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
1472
1473 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
1474
1475         * gtk/gtkexpander.c (gtk_expander_realize): A NO_WINDOW widget
1476         must not set the background of its window.  (#433972,
1477         Guilherme Polo)
1478
1479 2007-04-30  Richard Hult  <richard@imendio.com>
1480
1481         * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_opacity):
1482         Implement.
1483
1484 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
1485
1486         * modules/printbackends/cups/gtkprintbackendcups.c: Get all
1487         the printer attributes when getting the list of printers,
1488         not via separate requests.  (#387889, Krishan Purahoo)
1489
1490 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
1491
1492         Some more compiler warning fixes.
1493
1494         * gdk/directfb/gdkscreen-directfb.c (gdk_screen_is_composited):
1495         Fix NULL/FALSE confusion.
1496
1497 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
1498
1499         Fix some compiler warnings.  (#433642, Kjartan Maraas)
1500
1501         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info):
1502         (gtk_file_system_win32_create_folder):
1503         * gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion.  
1504
1505         * gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass
1506         the right type to uri_func.  
1507         
1508         * gtk/gtktext.c (gtk_text_key_press):
1509         * gtk/gtkstatusicon.c (gtk_status_icon_get_property): 
1510         * gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts.
1511
1512         * gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed): 
1513         (gtk_tray_icon_delete):
1514         * gtk/gtkprintunixdialog.c (create_main_page):
1515         * gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables.
1516
1517         * gtk/gtkliststore.c: Adapt callbacks to GSequence types.
1518
1519 2007-04-30  Cody Russell  <bratsche@gnome.org>
1520
1521         * gdk/win32/gdkwindow-win32.c: Reintroduced erase_background(),
1522         but now we're calling it from _gdk_windowing_window_clear_area()
1523         instead of from the WM_ERASEBKGND event.  Also fixes the area
1524         that is cleared so that it is not an extra row and column too
1525         large.  (Neil Roberts, #415681)
1526
1527 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
1528
1529         * gtk/gtktextview.c: Allow indents to be negative.  (#Bug 434308)
1530
1531 2007-04-30  Michael Natterer  <mitch@imendio.com>
1532
1533         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): pop up the
1534         submenu explicitely only in touchscreen mode since otherwise
1535         selecting the item already pops up the submenu. Restores the
1536         drag-selection timeout (spotted by Søren Sandmann, #128968).
1537
1538 2007-04-30  Michael Natterer  <mitch@imendio.com>
1539
1540         * gtk/gtkpapersize.h: really rename gtk_paper_size_get_builtins()
1541         to gtk_paper_size_get_paper_sizes().
1542
1543 2007-04-30  Tor Lillqvist  <tml@novell.com>
1544
1545         * gtk/gtkpapersize.c (gtk_paper_size_get_paper_sizes):
1546         _gtk_load_custom_papers() exists only on Unix.
1547
1548 2007-04-30  Tor Lillqvist  <tml@novell.com>
1549
1550         Add functionality to set overall opacity of a top-level
1551         window. (#405316)
1552
1553         * gdk/gdk.symbols: Add gdk_window_set_opacity.
1554
1555         * gdk/x11/gdkwindow-x11.c
1556         * gdk/win32/gdkwindow-win32.c: Implement
1557         gdk_window_set_opacity(). On X11 use the _NET_WM_WINDOW_OPACITY
1558         property. On Win32 use SetLayeredWindowAttributes(LWA_ALPHA).
1559
1560         * gdk/gdkwindow.h: Declare gdk_window_set_opacity().
1561
1562         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_rgba_colormap): Document
1563         that this is not implemented in the Windows backend. Add reference
1564         to gdk_window_set_opacity().
1565
1566         * gtk/gtk.symbols: Add gtk_window_set_opacity and
1567         gtk_window_get_opacity.
1568
1569         * gtk/gtkwindow.c (struct _GtkWindowPrivate)
1570         (gtk_window_class_init): Add opacity property, a double in the
1571         range [0, 1].
1572         (gtk_window_set_opacity, gtk_window_get_opacity): Implement.
1573         (gtk_window_realize): If opacity is set, call
1574         gdk_window_set_opacity().
1575
1576         * gtk/gtkwindow.h: Declare gtk_window_set_opacity() and
1577         gtk_window_get_opacity().
1578
1579 2007-04-30  Matthias Clasen <mclasen@redhat.com>
1580
1581         * gtk/gtk.symbols:
1582         * gtk/gtkpapersize.[hc]: Rename gtk_paper_size_get_builtins()
1583         to gtk_paper_size_get_paper_sizes() and optionally include
1584         custom paper sizes.
1585
1586         * gtk/gtkpagesetupunixdialog.c: Internally export a function
1587         to load custom paper sizes.
1588
1589         * modules/printbackends/file/gtkprintbackendfile.c: Implement
1590         printer_list_papers, returning all paper sizes.  (#434329,
1591         Christian Persch)
1592
1593 2007-04-30  Matthias Clasen <mclasen@redhat.com>
1594         
1595         * gtk/gtkprintoperation.c: Translate the default job
1596         name, and don't utf8-validate the job name in the
1597         setter.  (#421993, Morten Welinder)
1598
1599 2007-04-30  Matthias Clasen <mclasen@redhat.com>
1600
1601         * gtk/gtkprintjob.c (gtk_print_job_get_surface): Use
1602         g_unlink.  (#421990, Morten Welinder)
1603
1604 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1605
1606         Fix some issues with reference handling in the printing
1607         code.  (#429902, Mathias Hasselmann)
1608
1609         * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
1610         Unref the print context, if we have one.
1611         (gtk_print_operation_done): Add a default ::done handler 
1612         that unrefs the print context.
1613         (preview_ready): Take a reference on the print operation
1614         preview here.
1615         (print_pages_idle): ...not here,
1616         (preview_print_idle_done): ...and release it here.
1617
1618         * tests/print-editor.c (preview_cb): Take a reference
1619         on the print operation here.
1620
1621 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1622
1623         * gtk/gtkprintoperation.c (print_pages_idle): Don't get
1624         stuck in a recursive mainloop if a synchronous preview
1625         is cancelled.
1626
1627 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1628
1629         Make the emission of ::end-print and ::done consistent
1630         for previews.  (#347567, Yevgen Muntyan)
1631
1632         * gtk/gtkprintoperation.c (preview_iface_end_preview): Set
1633         the finished status here.
1634         (preview_end_run): ...and not here.
1635         (print_pages_idle_done): Emit ::done for a cancelled preview.
1636         (print_pages_idle): If a preview has been cancelled, don't
1637         emit ::ready, but emit ::end-print. 
1638
1639         * tests/print-editor.c: Use ::end-print to undo allocations
1640         from ::begin-print.
1641
1642 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1643
1644         * gtk/gtkpapersize.c (gtk_paper_size_new): Mark paper sizes
1645         in the PWG "custom" namespace as custom. Add a link to 
1646         the spec in the docs.  (#426416, Andreas Guelzow)
1647
1648 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1649
1650         * gtk/gtkprintoperation.c (gtk_print_operation_run): Document
1651         that a print operation can be run only once, and add a 
1652         corresponding g_return_if_fail().   (#379399, Masao Mutoh)
1653
1654 2007-04-29  Dan Winship  <danw@novell.com>
1655
1656         * gdk/x11/gdkdisplay-x11.c
1657         (gdk_x11_display_broadcast_startup_message): New method to
1658         marshall and send a Startup Notification message. (from #415070)
1659         (gdk_notify_startup_complete_with_id): Use that
1660
1661 2007-04-29  Mattthias Clasen  <mclasen@redhat.com>
1662
1663         * gtk/gtkprintoperation-unix.c 
1664         (_gtk_print_operation_platform_backend_launch_preview):
1665         Don't leak a file descriptor, and don't make the error
1666         dialog modal.  (#421985, Morten Welinder, Christian Persch)
1667
1668 2007-04-29  Xan Lopez  <xan@gnome.org>
1669
1670         * docs/faq/gtk-faq.sgml: Fix typo in FAQ (#373706,
1671         Diego Escalante Urrelo).
1672
1673         I'm fixing gtk-faq.sgml as it seems this is the file
1674         we actually use...
1675
1676 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1677
1678         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): 
1679         Only strip parentheses of the form (_x).  (#434261,
1680         Brian Wellington)
1681
1682 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1683
1684         * gtk/gtkprintoperation-unix.c
1685         (_gtk_print_operation_platform_backend_launch_preview):
1686         Support passing a print settings file to the preview 
1687         command.  (#403717, Christian Persch)
1688
1689         * gtk/gtksettings.c: Document %s in the 
1690         gtk-print-preview-command setting.
1691
1692 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1693
1694         * gtk/gtkprintoperation.c (print_pages_idle): Also check
1695         the default handler when deciding whether to emit the
1696         paginate signal.  (#345345, Yevgen Muntyan)
1697
1698 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1699
1700         * gtk/gtkprintoperation.h: Add a new error code
1701
1702         * gtk/gtk.symbols:
1703         * gtk/gtkpagesetup.[hc]:
1704         * gtk/gtkpapersize.[hc]:
1705         * gtk/gtkprintsettings.[hc]: Add functions to serialize 
1706         and deserialize page setups and print settings to files 
1707         and key files.  (#344515, Christian Persch)
1708
1709         * gtk/gtkpagesetupunixdialog.c: Adapt to the new functions.
1710
1711         * tests/print-editor.c: Use the new functions to persist 
1712         page setup and print settings.
1713
1714 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1715
1716         * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_finalize):
1717         Free the custom paper list.  (#403267, Felix Riemann)
1718
1719 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1720
1721         * gtk/gtkprintjob.c (gtk_print_job_get_surface): Fix a 
1722         small memory leak.  (#403251, Felix Riemann)
1723
1724 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1725
1726         * modules/printbackends/cups/gtkprintbackendcups.c: Fix a
1727         typo. String change !  (#406160, Stephane Raimbault)
1728
1729 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1730
1731         * gtk/gtk.symbols:
1732         * gtk/gtkpapersize.[hc]: Add a function to list the
1733         builtin paper sizes.  (#382355, Christian Persch)
1734
1735 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1736
1737         * gtk/gtk.symbols:
1738         * gtk/gtkprinter-private.h:
1739         * gtk/gtkprinter.[hc]: Make gtk_printer_has_details() and
1740         gtk_printer_request_details() public.
1741
1742         * gtk/gtkpagesetupunixdialog.c:
1743         * gtk/gtkprintunixdialog.c: Update callers.  (#389203, 
1744         Christian Persch)
1745
1746 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1747
1748         * configure.in: Add --enable-test-print-backend, defaulting
1749         to no.
1750
1751         * modules/printbackends/Makefile.am: Make building the test
1752         print backend conditional.
1753
1754 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1755
1756         * modules/printbackends/lpr/*:
1757         * modules/printbackends/cups/*: Correct some copyright lines.
1758
1759         * configure.in:
1760         * modules/printbackends/Makefile.am:
1761         * modules/printbackends/test/*: Add a test print backend.
1762         (#409089, John Palmieri)
1763
1764 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1765
1766         * gtk/gtktexttag.[hc]: Add a way to specify accumulative
1767         margins.  (#344499, Nate Nielsen)
1768
1769 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1770
1771         * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets
1772         of the input-only window if we also have a visible window. 
1773         (#405089)
1774
1775 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1776
1777         * gtk/gtkliststore.c (gtk_list_store_set_valist_internal):
1778         * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal):
1779         Recognize negative column indices as invalid.  (#415260,
1780         Chris Wilson)
1781
1782 2007-04-28  Ronald Bultje  <rbultje@ronald.bitfreak.net>
1783
1784         * gdk/quartz/gdkeventloop-quartz.c: (select_thread_func),
1785         (poll_func): fix two more potential races that could happen when
1786         an application is polling in the mainloop and a separate thread
1787         tries to wake it up using g_idle_add(). Fixes #425271 comment 5.
1788
1789 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1790
1791         * gtk/gtkentry.c (gtk_entry_grab_focus): 
1792         (gtk_entry_real_insert_text): Only call g_object_get() 
1793         when necessary.  (#373137, Morten Welinder, patch by Xan Lopez)
1794
1795 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1796
1797         * gtk/gtkstatusicon.c (gtk_status_icon_get_size): Add
1798         a note about being embedded.  (#340107, Christian Persch)
1799
1800 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1801
1802         * gtk/gtkdnd.[hc]: Add GTK_TARGET_OTHER_{APP,WIDGET} to
1803         restrict drags within an application/widget.  (#163141, 
1804         Jorn Baayen)
1805
1806 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1807
1808         * docs/tools/Makefile.am:
1809         * gtk/Makefile.am: Make make clean clean.  (#410160, Tommi
1810         Komulainen)
1811
1812 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1813
1814         * gdk/win32/bdfcursor.c (compose_cursors_from_fonts):
1815         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_reorder): 
1816         * gtk/gtkfilesystemmodel.c (got_root_folder_cb):
1817         (get_children_folder_cb): Plug memory leaks caused by wrong 
1818         use of g_slist_remove_link().  (#405515, Nicolas Peninguy)
1819
1820 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1821         
1822         * demos/gtk-demo/printing.c: Fix the headers in the print
1823         demo.  (#423722, Yevgen Muntyan)
1824
1825 2007-04-28  Xan Lopez  <xan@gnome.org>
1826
1827         * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text): 
1828         Use strstr instead of g_strstr with -1 for length.
1829
1830 2007-04-28  Xan Lopez  <xan@gnome.org>
1831
1832         * gtk/gtkentry.c:
1833         * gtk/gtkentrycompletion.c:
1834         * gtk/gtkentrycompletion.h:
1835         * gtk/gtkentryprivate.h:
1836
1837         Remember the user input that triggered the completion, add
1838         API to the retrieve it and reset the entry contents to it
1839         if the user cancels the tentative completion during
1840         the inline-selection.
1841         
1842 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1843
1844         * gdk/x11/gdkgeometry-x11.c: Factor out window movement
1845         functions. (#63820, Tilman Sauerbeck)
1846
1847 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1848
1849         * gdk/x11/gdkgeometry-x11.c: Factor out translate_pos().
1850         (#63820, Tilman Sauerbeck)
1851
1852 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1853
1854         * gdk/x11/gdkgeometry-x11.c: Factor out window mapping
1855         and unmapping functions.  (#63820, Tilman Sauerbeck)
1856
1857 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1858
1859         * gdk/x11/gdkgeometry-x11.c: Make list handling code
1860         easier to read.  (#63820, Tilman Sauerbeck)
1861
1862 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1863
1864         * gtkassistant.c:
1865         * gtkiconfactory.c:
1866         * gtkiconview.c:
1867         * gtkpapersize.c:
1868         * gtkrecentmanager.c:
1869         * gtktextiter.c: Internalize some strings, pointed out
1870         by Damon Chaplin.
1871
1872 2007-04-27  Xan Lopez  <xan@gnome.org>
1873
1874         Support inline-selection in entries (#318459)
1875         
1876         * gtk/gtkentry.c:
1877         * gtk/gtkentrycompletion.c:
1878         * gtk/gtkentrycompletion.h:
1879         * gtk/gtkentryprivate.h:
1880
1881         When enabled cursor-match is emited when the cursor is on
1882         a possible completion on the list. The default implementation
1883         will replace the contents on the entry with the contents of
1884         the text column in the completion model.
1885
1886         Review and improvements by Matthias Clasen.
1887
1888 2007-04-27  Michael Natterer  <mitch@imendio.com>
1889
1890         Merged heavily modified patch from maemo-gtk which enables opening
1891         and closing submenus on click, and introduces some usability
1892         changes when gtk-touchscreen-mode is enabled (bug #128968):
1893
1894         * gtk/gtkmenushell.c (struct GtkMenuShellPrivate): added boolean
1895         "activated_submenu" to indicate that the current mouse operation
1896         (click or drag) has opened a submenu.
1897
1898         (gtk_menu_shell_button_press): pop up submenus without delay
1899         and record the fact in "activated_submenu".
1900
1901         (gtk_menu_shell_button_release): if a submenu was explicitely
1902         opened, or not opened by this release's button_press, or enough
1903         time has passed since timeout-opening it, close the submenu here.
1904
1905         (gtk_menu_shell_enter_notify): when entering a menu item with
1906         any mouse button pressed, open its submenu.
1907
1908         (gtk_real_menu_shell_move_current): in touchsreen mode, close the
1909         submenu when moving the focus away from it via keyboard-navigation.
1910
1911         * gtk/gtkmenuitem.[ch] (_gtk_menu_item_popup_submenu): added
1912         parameter "gboolean with_delay" so GtkMenuShell can control this
1913         for the different scenarios of submenu showing.
1914
1915         (_gtk_menu_item_popdown_submenu): new function. also needed by
1916         GtkMenuShell for closing submenus on click.
1917
1918         Renamed internal function gtk_menu_item_select_timeout() to
1919         gtk_menu_item_popup_timeout().
1920
1921         (gtk_menu_item_real_popup_submenu): new utility function which
1922         does the actual popup and records the exact time of the popup when
1923         the menu was timeout-opened (using g_get_current_time()).
1924
1925         (gtk_real_menu_item_select): don't add the popup timeout when in
1926         touchscreen mode.
1927
1928         * gtk/gtkmenu.c (gtk_menu_popup): in touchscreen mode, select the
1929         first item of every opened menu.
1930
1931 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1932
1933         * gtk/gtkfilechooserentry.c: Append a '/' to directory names
1934         in the completion popup.  (#431323, Maarten Maathuis)
1935
1936 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1937
1938         * demo/gtk-demo/combobox.c: Add a simple validation demo. 
1939         * gtk/gtkcomboboxentry.c: Make it possible to add arbitrary
1940         children to a GtkComboBoxEntry.  (#426401, Paul Pogonyshev)
1941
1942 2007-04-26  Tor Lillqvist  <tml@novell.com>
1943
1944         * gtk/gtkinputdialog.c (gtk_input_dialog_fill_axes)
1945         (gtk_input_dialog_fill_keys): Remove old child of scrolled window
1946         before adding a new one when switching what input device is being
1947         handled. (#399425)
1948
1949 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1950
1951         * modules/printbackends/lpr/gtkprintbackendlpr.c
1952         (gtk_print_backend_lpr_init): Mark the printer list as done. 
1953         (#428665, Bogdan Gheorghe)
1954
1955 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1956
1957         * Makefile.am:
1958         * gtk/Makefile.am: Don't install UNIX-printing headers and
1959         support files on non-UNIX platforms.  (#425655, Vincent Geddes)
1960
1961 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1962
1963         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Accept
1964         unnamed separators.  (#369112, Christian Persch)
1965
1966 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1967
1968         * gtk/gtkaccelgroup.c (gtk_accel_group_finalize): Don't access
1969         invalid memory.  (#429732, Armin Burgmeier)
1970
1971 2007-04-26  Cody Russell  <bratsche@gnome.org>
1972
1973         * gdk/win32/xcursors.h:
1974         * gdk/win32/gdkcursor-win32.c:
1975
1976         Use Win32 native cursors instead of the ones built into GTK
1977         where it makes sense. (#128852, Tim Evans)
1978
1979 2007-04-25  Cody Russell  <bratsche@gnome.org>
1980
1981         * gdk/gdkwindow.h:
1982         * gtk/gtkwidget.c:
1983         * gtk/gtkhandlebox.c:
1984         * gdk/directfb/gdkwindow-directfb.c:
1985         * gdk/linux-fb/gdkwindow-fb.c:
1986         * gdk/quartz/gdkwindow-quartz.c:
1987         * gdk/win32/gdkwindow-win32.c:
1988         * gdk/x11/gdkwindow-x11.c:
1989         Added window type hint and implement drop shadows on Win32
1990         for menus, tooltips, etc. (#148535, Tim Evans, Dom Lachowicz)
1991
1992 2007-04-25  Jakub Steiner <jimmac@ximian.com>
1993
1994         * gtk/stock-icons/16/gtk-close.{png,svg}: added 16x16 version of
1995                 gtk-close as per discussion in bug #431740.
1996
1997 2007-04-25  Matthias Clasen  <mclasen@redhat.com>
1998
1999         * gtk/gtktreeview.c (gtk_tree_view_style_set): Set the background
2000         of the header window again.  (#431067, Benjamin Berg)
2001
2002 2007-04-25  Matthias Clasen  <mclasen@redhat.com>
2003
2004         * gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to
2005         NULL for builtin icons, sinc gtk_icon_info_get_builtin_pixbuf()
2006         depends on it. 
2007
2008         * tests/testicontheme.c: Report builtin icons.
2009
2010 2007-04-25  Matthias Clasen  <mclasen@redhat.com>
2011
2012         * gtk/gtkprintoperation.c (preview_iface_end_preview): Don't 
2013         crash if end_run is not set.  (#424168, Matthias Hasselmann)
2014
2015 2007-04-25  Michael Natterer  <mitch@imendio.com>
2016
2017         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of
2018         scroll buttons (we were setting the state to ACTIVE but
2019         immediately overwriting it with NORMAL or PRELIGHT). Also got rid
2020         of many separate calls to gdk_window_invalidate_rect() by
2021         remembering the old button state and only invalidating the area if
2022         the state has changed (addresses parts of bug #433242, Tommi
2023         Komulainen).
2024
2025         (gtk_menu_scroll_to): change the arrow states only if changing
2026         from or to INSENSITIVE state, so we don't overwrite the ACTIVE
2027         state set by above function.
2028
2029 2007-04-25  Michael Natterer  <mitch@imendio.com>
2030
2031         * gtk/gtkprintoperation.c (preview_iface_is_selected): fix the
2032         build. Dunno if the fix is right, but I think it is.
2033
2034 2007-04-25  Kristian Rietveld  <kris@imendio.com>
2035
2036         * gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
2037         cleanup/refactor some leftover code.
2038
2039 2007-04-24  Matthias Clasen  <mclasen@redhat.com>
2040
2041         * gtk/gtkprintunixdialog.c (dialog_get_page_ranges): Parse
2042         half-open ranges like -2 or 3-, and be a bit more liberal
2043         about whitespace.
2044         (dialog_set_page_ranges): Support half-open ranges.
2045
2046         * gtk/gtkprintoperation.c (print_pages_idle): Substitute the
2047         number of pages in half-open ranges.
2048         (preview_iface_is_selected): Support half-open ranges here, too.
2049
2050 2007-04-24  Chris Wilson  <chris@chris-wilson.co.uk>
2051
2052         * gtk/gtkicontheme.c (scan_directory): Ensure the 
2053         icon_theme->all_icons and dir->icons hash tables use the same string
2054         as their keys. (#418531)
2055
2056 2007-04-23  Cody Russell  <bratsche@gnome.org>
2057         * modules/engines/ms-windows/msw_style.c: Fixed one-pixel drawing error on
2058         left-most tab when notebooks are top-oriented.  Also general cleanup of
2059         notebook tab related code.  (Lieven van der Heide, Cody Russell)
2060
2061 2007-04-23  Matthias Clasen  <mclasen@redhat.com>
2062
2063         * modules/printbackends/cups/gtkprintbackendcups.c: Reduce
2064         the amount of debug spew if we are not debugging.
2065         
2066 2007-04-23  Michael Natterer  <mitch@imendio.com>
2067
2068         * tests/Makefile.am (testtooltips_SOURCES): fix typo:
2069         testtoooltips_SOURCES -> testtooltips_SOURCES.
2070
2071 2007-04-19  Cody Russell <bratsche@gnome.org>
2072
2073         * modules/engines/ms-windows/msw_style.c: Fix menuitem rendering
2074         for Windows Vista.  (#392015, Hiroyuki Yamamoto)
2075
2076 2007-04-19  Dominic Lachowicz <domlachowicz@gmail.com>
2077
2078         * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in
2079         non-WinXP rendering paths. From Daniel Atallah (#403470)
2080         
2081 2007-04-19  Matthias Clasen  <mclasen@redhat.com>
2082
2083         * gtk/gtkicontheme.h:
2084         * gtk/gtkicontheme.c: Add GTK_ICON_LOOKUP_GENERIC_FALLBACK
2085         icon lookup flag and implement it.  (#396901, Luca Ferreti)
2086         
2087 2007-04-18  Richard Hult  <richard@imendio.com>
2088
2089         * gdk/quartz/gdkwindow-quartz.c:
2090         (gdk_window_quartz_process_updates_internal),
2091         (gdk_window_quartz_process_all_updates),
2092         (gdk_window_impl_quartz_process_updates): Refactor the process 
2093         updates functions to share code between them. Also fixes bug 
2094         #427660 by not updating larger regions than necessary.
2095
2096 2007-04-18  Matthias Clasen  <mclasen@redhat.com>
2097
2098         * gdk/gdkregion-generic.h (GROWREGION): Handle the case
2099         of nRects == 0 correctly.  
2100         
2101 2007-04-18  Emmanuele Bassi  <ebassi@gnome.org>
2102
2103         * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
2104         a leak by not increasing the refcount of the GtkRecentInfo
2105         object when returning it (thanks to Matthias Clasen).
2106
2107 2007-04-16  Alexander Larsson  <alexl@redhat.com>
2108
2109         * gtk/gtkprintoperation.c (gtk_print_operation_run):
2110         Make async print preview work by actually starting
2111         the print process in that case (#424168)
2112
2113 2007-04-14  Yevgen Muntyan <muntyan@tamu.edu>
2114
2115         * gtk/gtkselection.c (selection_get_text_plain): fixed
2116         wrong g_convert_with_fallback() call which caused
2117         gtk_selection_data_get_text() return invalid UTF-8 for
2118         non-ASCII text in text/plain selection (#382824).
2119
2120 2007-04-12  Jakub Steiner <jimmac@ximian.com>
2121
2122         * gtk/stock-icons/*: update the stock icons to follow the Tango
2123                 style guidelines
2124
2125 2007-04-11  Chris Wilson  <chris@chris-wilson.co.uk>
2126
2127         * gtk/gtkiconfactory.c (_gtk_icon_factory_list_ids):
2128         * gtk/gtkstock.c (gtk_stock_list_ids):
2129             Switch over to use glib's new g_hash_table_get_keys() rather
2130             than our own static implementation.
2131
2132         * gtk/gtkiconfactory.h: Update to return a GList.
2133
2134         * configure.in: Bump required version to 2.13.1
2135
2136 2007-04-11  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
2137
2138         * gdk/quartz/gdkeventloop-quartz.c: Protect the polling thread
2139           setup and shutdown function by mutexes and read the wakeup
2140           pipe unconditionally and unblocking. This should make the main
2141           loop always be woken up when using g_idle_add() from another
2142           thread in the Quartz backend (#425271).
2143
2144 2007-04-10  Matthias Clasen  <mclasen@redhat.com>
2145
2146         * gdk/x11/xsettings-client.[hc]: Change the XSettingsWatchFunc
2147         to return a Bool to indicate success. Update callers and 
2148         implementors. Based on a patch by Owen Taylor.
2149         
2150         * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Don't
2151         leak a reference to gdkwin.
2152
2153 2007-04-07  Xan Lopez  <xan@gnome.org>
2154
2155         * gtk/gtknotebook.c (gtk_notebook_class_init): 
2156         s/arrow-size/arrow-spacing in the arrow-spacing
2157         style property docs.
2158
2159 2007-04-06  Richard Hult  <richard@imendio.com>
2160
2161         * gdk/quartz/: Clean up namespaces to make the code more
2162         maintainable.
2163
2164         * gdk/quartz/gdkdrawable-quartz.c:
2165         * gdk/quartz/gdkgc-quartz.c: Fix bug #418384, alignment of tiled
2166         images, by setting the pattern phase for the CG pattern.
2167
2168 2007-04-04  Kristian Rietveld  <kris@imendio.com>
2169
2170         * gtk/gtktooltip.c (tooltip_browse_mode_expired),
2171         (gtk_tooltip_hide_tooltip), (tooltip_popup_timeout),
2172         (gtk_tooltip_start_delay): use new gdk_threads API.
2173
2174 2007-04-03  Behdad Esfahbod  <behdad@gnome.org>
2175
2176         * gtk/gtksettings.c (settings_update_font_options): Don't set
2177         metrics-hinting font option.  Rely on the default value which is
2178         on for all raster cairo surfaces. (#425985)
2179
2180 2007-04-03  Loïc Minier  <lool@dooz.org>
2181
2182         * gdk/x11/gdkscreen-x11.c: (check_xfree_xinerama): Revert to
2183         non-xinerama mode when XineramaQueryScreens returns NULL; patch from
2184         Simon McVittie; #425786.
2185
2186 2007-04-02  Michael Natterer  <mitch@imendio.com>
2187
2188         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): remove
2189         artifact from the time when type checking casts warned on NULL,
2190         some whitespace cleanup.
2191
2192 2007-04-01  Cody Russell  <bratsche@gnome.org>
2193
2194         * modules/engines/ms-windows/msw_style.c: Fix rendering of
2195         notebook tabs when they are bottom-oriented.  Fixes #399253.
2196
2197 2007-03-31  Elijah Newren  <newren gmail com>
2198
2199         * gdk/x11/gdkwindow-x11.c (setup_toplevel_window,
2200           gdk_x11_window_set_user_time):
2201         Patch from Matthias to add support for the
2202         _NET_WM_USER_TIME_WINDOW EWMH protocol; see #354213.
2203
2204         WARNING: This patch will make metacity <= 2.18.0 freeze on
2205         workspace switch.  This is due to a weird problem that should only
2206         affect window managers using gdk in-process for decoration drawing
2207         and which make an unsafe assumption relating to doing so (i.e. it
2208         should only affect metacity).  Upgrade your version of metacity if
2209         you hit this bug.
2210
2211 2007-03-29  Michael Natterer  <mitch@imendio.com>
2212
2213         Don't close menus on clicks on their border area (bug #423761).
2214         (modified patch from maemo-gtk).
2215
2216         * gtk/gtkmenu.c (gtk_menu_button_press)
2217         (gtk_menu_button_release): bail out early if the click was on the
2218         menu's border (not on any item and not outside the window).
2219
2220         (pointer_in_menu_window): new utility function which checks if
2221         passed root coords are inside the menu_shell or one of its
2222         parent shells.
2223
2224 2007-03-29  Michael Natterer  <mitch@imendio.com>
2225
2226         * gtk/gtkmenu.c: get rid of local GtkSettings variables by moving
2227         gtk_widget_get_settings() into the g_object_get() call. Some small
2228         indentation fixes.
2229
2230 2007-03-28  Matthias Clasen  <mclasen@redhat.com>
2231
2232         * modules/printbackends/cups/gtkcupsutils.[hc]:
2233         * modules/printbackends/cups/gtkprintbackendcups.c: Apply
2234         a patch by John Palmieri to make the cups print backend support
2235         raw printers.  
2236
2237 2007-03-28  Kristian Rietveld  <kris@imendio.com>
2238
2239         * gtk/gtkwidget.c (gtk_widget_set_tooltip_window): don't unref
2240         tooltip_window, since this is handled by set_qdata_full() already.
2241         (#412001, Torsten Schoenfeld).
2242
2243 2007-03-27  Tor Lillqvist  <tml@novell.com>
2244
2245         * modules/input/Makefile.am: Use LDADDS for im-multipress.la, too: 
2246
2247 2007-03-26  Christian Persch  <chpe@gnome.org>
2248
2249         * gtk/gtkrc.c: (gtk_rc_context_get): Initialise variable. Bug #423064.
2250
2251 2007-03-24  Kristian Rietveld  <kris@gtk.org>
2252
2253         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
2254         calculate the depth with the corrected real_cell_area and don't
2255         subtract horizontal_separator/2.
2256
2257 2007-03-24  Andreas Nilsson <andreas@andreasn.se>
2258
2259         * gtk-yes.png
2260         * gtk-no: More Tango love.
2261
2262 2007-03-23  Jakub Steiner <jimmac@ximian.com>
2263
2264         * gtk-dialog-authentication.svg
2265         * gtk-dialog-error.svg
2266         * gtk-dialog-info.svg
2267         * gtk-dialog-question.svg
2268         * gtk-dialog-warning.svg: Start with a Tango face-lift.
2269
2270 2007-03-23  Rodney Dawes  <dobey@novell.com>
2271
2272         * gtk/gtkicontheme.c: Fix a couple of comment typos (#421627)
2273
2274 2007-03-23  Matthias Clasen  <mclasen@redhat.com>
2275
2276         * gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to
2277         toggle whether to show hidden files.  (#344657, 
2278         Wouter Bolsterlee, Priit Laes, et al)
2279
2280 2007-03-23  Matthias Clasen  <mclasen@redhat.com>
2281
2282         * gtk/gtkfilechooserdefault.c: Add a keybinding (C-l) to
2283         toggle the visibility of the location entry.  (#383354, 
2284         John Pye, patch by Carlos Garnacho)
2285
2286 2007-03-22  Matthias Clasen  <mclasen@redhat.com>
2287
2288         * gtk/gtksettings.c (merge_color_scheme): Freeze property
2289         notification.
2290         * gtk/gtksettings.c (_gtk_settings_handle_event): Handle
2291         the gtk-color-scheme xsetting being unset.
2292
2293         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Handle
2294         recursion locally.
2295
2296 2007-03-21  Matthias Clasen  <mclasen@redhat.com>
2297
2298         * gtk/gtkprintoperation-unix.c: Remove leftover debug spew.
2299
2300 2007-03-21  Rodney Dawes  <dobey@novell.com>
2301
2302         * gtk/gtk.symbols:
2303         * gtk/gtkicontheme.[ch]:
2304         * docs/reference/gtk/gtk-sections.txt:
2305         * tests/testicontheme.c:
2306         Add a new API call gtk_icon_theme_list_contexts so that one can
2307         choose icons from a theme by context (#420719)
2308         
2309 2007-03-21  Ross Burton  <ross@burtonini.com>
2310
2311         * gtk/gtktexttag.c:
2312         Document the ::event signal (#420703).
2313
2314 2007-03-20  Kristian Rietveld  <kris@gtk.org>
2315
2316         * gtk/gtktreeviewcolumn.c:
2317         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_focus_area().
2318
2319         * gtk/gtktreeview.c (gtk_tree_view_clamp_column_visible): add
2320         focus_to_cell parameter, rework to handle clamping columns which
2321         are bigger than the available page size better,
2322         (gtk_tree_view_key_press): remove code handling moving the focus
2323         to other column headers,
2324         (gtk_tree_view_header_focus): add clamp_column_visible parameter,
2325         fix RTL support, don't wrap around when moving focus to other
2326         column headers, call gtk_tree_view_clamp_column_visible() instead
2327         of duplicating code,
2328         (gtk_tree_view_focus): only clamp the column visible when we are
2329         explicitly moving to another column header (fixes #399555, Charles
2330         Kerr),
2331         (gtk_tree_view_move_cursor_left_right): update call to
2332         gtk_tree_view_clamp_column_visible().
2333
2334 2007-03-19  Matthias Clasen <mclasen@redhat.com> 
2335
2336         * demos/gtk-demo/appwindow.c: Explicitly set the title on the
2337         about dialog.
2338
2339 2007-03-18  Matthias Clasen <mclasen@redhat.com> 
2340
2341         * gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix):
2342         Ensure that the prefix is valid UTF-8.  (#419568, Nickolay V. Shmyrev)
2343
2344 2007-03-18  Matthias Clasen <mclasen@redhat.com> 
2345
2346         * modules/input/gtkimcontextmultipress.[hc]:
2347         * modules/input/im-multipress.conf:
2348         * modules/input/immultipress.c:
2349         * modules/input/README.multipress: Add the multipress input
2350         method.  (#417446, Johannes Schmid, Murray Cumming)
2351
2352         * modules/input/Makefile.am: Glue
2353
2354 2007-03-17  Chris Wilson  <chris@chris-wilson.co.uk>
2355
2356         * gdk/x11/gdkvisual-x11.c (_gdk_visual_init):
2357         Initialise nxvisuals to 0 in order to handle XGetVisualInfo()
2358         failures gracefully. (#419171)
2359
2360 2007-03-17  Emmanuele Bassi  <ebassi@gnome.org>
2361
2362         * gtk/gtkrecentaction.c (recent_chooser_set_property),
2363         (gtk_recent_action_set_property): Remove useless inlined
2364         function and propagate the properties to the GtkRecentChooser
2365         objects we create, instead of all the proxies.
2366
2367         (set_current_filter): Remove 'inline' marker.
2368
2369 2007-03-16  Emmanuele Bassi  <ebassi@gnome.org>
2370
2371         Apply changes suggested by Michael Natterer. (#338843)
2372
2373         * gtk/gtkaction.h:
2374         * gtk/gtkaction.c: Rename get_submenu() to create_menu();
2375         rename gtk_action_get_submenu() to gtk_action_create_menu().
2376
2377         * gtk/gtkrecentaction.c: Update for GtkAction change.
2378
2379         * gtk/gtkuimanager.c (update_node): Update for GtkAction change;
2380         also, use the menu from the GtkAction for both menuitem and
2381         toolitem nodes.
2382
2383 2007-03-16  Xan Lopez  <xan@gnome.org>
2384
2385         * gtk/gtkwidget.c: Fix documentation error in
2386         gtk_widget_set_redraw_on_allocate.
2387
2388 2007-03-16  Matthias Clasen  <mclasen@redhat.com>
2389
2390         * gtk/gtkprintunixdialog.c (printer_added_cb): Scroll to
2391         make the selected printer visible.  (#418403, Nickolay V. Shmyrev,
2392         patch by Christian Persch)
2393
2394 2007-03-15  Federico Mena Quintero  <federico@novell.com>
2395
2396         Merged from gtk-2-10:
2397
2398         * gtk/gtkfilechooserdefault.c (find_good_size_from_style):
2399         PANGO_PIXELS() gives us device units, which are *points* in
2400         pangocairo's parlance, but we want actual pixels.  So, get the
2401         screen's resolution to compute the actual number of pixels.
2402         Fixes bug #418585.
2403
2404 2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
2405
2406         * gtk/gtkrecentmanager.c (gtk_recent_manager_add_item): Remove
2407         unused GError; do not allocate GtkRecentData and use a variable
2408         on the stack. (#418673, Morten Welinder)
2409
2410 2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
2411
2412         * gtk/gtkaction.[ch]: Add GtkActionClass::get_submenu() vfunc:
2413         actions providing a menu item or a menu tool button with already
2414         a submenu should return the GtkMenu widget.
2415
2416         * gtk/gtkuimanager.c (update_node): If an action provides its
2417         own submenu, use it instead of adding an empty one
2418
2419         * gtk/gtkrecentaction.[ch]: Add GtkRecentAction, an action
2420         implementing the GtkRecentChooser interface for displaying the
2421         list of recently used files into menus and toolbars generated
2422         using GtkUIManager. (#338843)
2423
2424         * gtk/Makefile.am:
2425         * gtk/gtk.h:
2426         * gtk/gtk.symbols: Add GtkRecentAction API to the build.
2427
2428         * tests/testactions.c: Exercise the GtkRecentAction API.
2429
2430 2007-03-15  Chris Wilson  <chris@chris-wilson.co.uk>
2431
2432         * gtk/gtkicontheme.c (ensure_valid_themes), (rescan_themes),
2433         (gtk_icon_theme_rescan_if_needed): Protect ensure_valid_themes()
2434         from recursion, which can happen for example if the app tries to
2435         reload an icon from within a theme-changed handler. (#418531)
2436
2437 2007-03-15  Richard Hult  <richard@imendio.com>
2438
2439         * gdk/quartz/gdkmain-quartz.c: Add stubs for
2440         gdk_notify_startup_complete_with_id and gdk_window_set_startup_id
2441         here too.
2442
2443 2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
2444
2445         * gtk/gtkrecentmanager.c: Fix documentation errors. (Morten
2446         Welinder)
2447
2448 2007-03-15  Tor Lillqvist  <tml@novell.com>
2449
2450         * gdk/gdk.symbols: Add gdk_notify_startup_complete_with_id and
2451         gdk_window_set_startup_id.
2452
2453         * gdk/win32/gdkmain-win32.c: Add dummy implementations of the above.
2454
2455 2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
2456
2457         * gtk/gtkrecentchooserprivate.h:
2458         * gtk/gtkrecentchooserutils.c: Move filtering of the recent
2459         files list into the shared implementation; do the filtering
2460         before the sorting, so that we always clamp on the desired
2461         size. (#418219)
2462
2463         * gtk/gtkrecentchoosermenu.c: Remove the filtering of the
2464         list, as it's already been done.
2465
2466         * gtk/gtkrecentchooserdefault.c: Ditto; also remove the
2467         GtkTreeModelFilter: just reload the view if the sorting and
2468         filtering properties change.
2469
2470         * gtk/testrecentchoosermenu.c: Exercise the limit property.
2471
2472 2007-03-14  Michael Natterer  <mitch@imendio.com>
2473
2474         Make gtk_widget_set_extension_events() work on already realized
2475         widgets (bug #379550, Tommi Komulainen)
2476
2477         * gdk/x11/gdkinput.c (gdk_input_set_extension_events): allow to be
2478         called multiple times without leaking and work correctly when
2479         already realized (don't rely on a configure event following).
2480
2481         * gtk/gtkwidget.c (gtk_widget_set_extension_events_internal): new
2482         internal function which walks the GdkWindow tree and sets the
2483         extension events on all windows that belong to the widget.
2484
2485         (gtk_widget_realize)
2486         (gtk_widget_set_extension_events): use the new function.
2487
2488 2007-03-14  Emmanuele Bassi  <ebassi@gnome.org>
2489
2490         Various clean ups in the GtkRecent code. (see #338843)
2491
2492         * gtk/gtkrecentchooserdefault.c:
2493         * gtk/gtkrecentchoosermenu.c:
2494         * gtk/gtkrecentchooserprivate.h:
2495         * gtk/gtkrecentchooserutils.c: Move the recent chooser function
2496         for getting the sorted and clamped list of recent files from the
2497         manager outside the implementations.
2498
2499         * gtk/gtkrecentchooserdefault.c (chooser_set_sort_type): Repopulate
2500         the list when the sorting order changes.
2501
2502         (gtk_recent_chooser_default_dispose),
2503         (gtk_recent_chooser_default_finalize): Move object unref and
2504         source removal from finalize to dispose.
2505
2506         * gtk/gtkrecentchooser.c (gtk_recent_chooser_type_init): Relax the
2507         prerequisite for the GtkRecentChooser interface implementations,
2508         from GtkObject to GObject.
2509
2510         (gtk_recent_chooser_class_init): Use GTK_PARAM_* instead of
2511         G_PARAM_*
2512
2513 2007-03-13  Emmanuele Bassi  <ebassi@gnome.org>
2514
2515         Apply patch by Vytautas Liuolia for changing the startup
2516         notification id on a window in the X11 backend. (#347375)
2517
2518         * gdk/gdk.h:
2519         * gdk/gdkx.h:
2520         * gdk/x11/gdkdisplay-x11.c: Add gdk_notify_startup_complete_with_id()
2521         and gdk_x11_display_get_startup_notification_id().
2522
2523         * gdk/gdkwindow.h:
2524         * gdk/x11/gdkwindow-x11.c: Add gdk_window_set_startup_id().
2525
2526         * gtk/gtkwindow.h:
2527         * gtk/gtkwindow.c: Add gtk_window_set_startup_id(), used to
2528         change the startup notification id.
2529         
2530         (gtk_window_class_init), (gtk_window_init),
2531         (gtk_window_set_property): Add write-only "startup-id" property
2532         to GtkWindow.
2533
2534         (gtk_window_realize): Set the startup notification id
2535         on a GtkWindow if it's valid.
2536
2537         (gtk_window_map): If we have another valid startup notification
2538         id then finish the notification process.
2539
2540 2007-03-13  Matthias Clasen  <mclasen@redhat.com>
2541
2542         * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
2543         Fix tabbed browsing in epiphany.  (#413664, Christian Persch)
2544
2545 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2546
2547         * gtk/gtksizegroup.c (gtk_size_group_add_widget): Clarify
2548         docs.  (#345844, Torsten Schoenfeld)
2549
2550         * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
2551         * gdk/gdkwindow.c (gdk_window_add_filter): Add
2552         cross-references.  (#351252, Vincent Untz)
2553
2554         * gtk/gtkprintoperation.c: Fix an oversight in an
2555         example.  (#381083, Ian Puleston)
2556
2557         * gtk/gtkcombobox.c: Clean up and clarify docs.  (#412484)
2558
2559 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2560
2561         * gtk/gtkspinbutton.c (gtk_spin_button_style_set): Set
2562         the background of the panel window on style changes. (#402144,
2563         Benjamin Berg)
2564
2565 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2566
2567         * gtk/gtkbindings.c (gtk_binding_entry_add_signal): Remove
2568         an obsolete comment.  (#402169, Xan Lopez)
2569
2570 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2571
2572         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
2573         Don't copy PangoLanguage.  (#340031, Morten Welinder)
2574
2575 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2576
2577         * gtk/gtkfilechooserbutton.c (change_icon_theme_get_info_cb):
2578         Handle the row reference path being NULL.  (#410565, Joe Markus
2579         Clarke, patch by Chris Wilson)
2580
2581 2007-03-11  Matthias Clasen  <mclasen@redhat.com>
2582
2583         * tests/testiconview.c: Handle Menu key presses without
2584         crash.  (#385637, Christian Persch)
2585
2586 2007-03-11  Matthias Clasen  <mclasen@redhat.com>
2587
2588         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window):
2589         Don't crash if active_tips_data is NULL.  (#382904, Li Yuan)
2590
2591 2007-03-11  Matthias Clasen  <mclasen@redhat.com>
2592
2593         * gtk/gtktextview.c (gtk_text_view_set_buffer): Set first_para_mark
2594         to NULL.  (#396805, Colin Leroy, patch by Mariano Suárez-Alvarez)
2595         
2596 2007-03-12  Kristian Rietveld  <kris@gtk.org>
2597
2598         * gtk/gtkfilechooserdefault.c (check_save_entry): immediately
2599         bail out if current_folder is NULL. (#350988, lots of reporters,
2600         modified patch by Jan Darmochwal).
2601
2602 2007-03-10  Kristian Rietveld  <kris@gtk.org>
2603
2604         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only
2605         hide the search dialog and send focus events if the search dialog
2606         is currently visible.
2607
2608 2007-03-10  Richard Hult  <richard@imendio.com>
2609
2610         * gdk/quartz/gdkdrawable-quartz.c:
2611         (gdk_quartz_ref_cairo_surface): Reuse the surface during its lifetime.
2612         (gdk_quartz_drawable_get_context): Update for the new quartz cairo 
2613         surface API (#410442). Don't lock focus unless called outside of an 
2614         expose event.
2615         (gdk_quartz_drawable_release_context): Only flush the CG context and 
2616         unlock focus if called outside of expose.
2617         (_gdk_quartz_drawable_finish): New function, used to free the cached
2618         cairo surface.
2619
2620         * gdk/quartz/gdkwindow-quartz.c:
2621         (gdk_window_impl_quartz_begin_paint_region): A few small style changes.
2622         (_gdk_window_impl_quartz_get_type): No need to make the type info
2623         static.
2624         (gdk_window_quartz_process_all_updates): Move the autorelease pool
2625         allocation and freeing outside the loop.
2626         (_gdk_windowing_window_destroy): Finish the drawable.
2627         (move_resize_window_internal): Small cleanup and remove comment.
2628
2629         * gdk/quartz/gdkpixmap-quartz.c: Finish the drawable.
2630
2631 2007-03-10  Richard Hult  <richard@imendio.com>
2632
2633         * gdk/quartz/gdkprivate-quartz.h: Add missing function signature to fix
2634         a build warning.
2635
2636 2007-03-10  Richard Hult  <richard@imendio.com>
2637
2638         * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_get_name): Plug a leak.
2639
2640 2007-03-10  Richard Hult  <richard@imendio.com>
2641
2642         * gdk/quartz/GdkQuartzView.c: Remove unneccesary exposure mask check.
2643
2644 2007-03-10  Richard Hult  <richard@imendio.com>
2645
2646         * gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Don't set
2647         the font name here, leave that to themes, fixes #387508.
2648
2649 2007-03-10  Kristian Rietveld  <kris@gtk.org>
2650
2651         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_ref_node),
2652         (gtk_tree_model_sort_real_unref_node): when (un)reffing an
2653         element, also (un)ref its parent elements. (Fixes #364946,
2654         reported by many, testcase by Andreas Koehler).
2655
2656 2007-03-10  Matthias Clasen <mclasen@redhat.com>
2657
2658         * gtk/gtkprintoperation-unix.c: Initialize the do_preview
2659         field of PrintResponseData.  (#396703, Christian Persch)
2660
2661         * tests/print-editor.c: Plug some leaks.
2662
2663 2007-03-09  Matthias Clasen <mclasen@redhat.com>
2664
2665         * gtk/gtktextview.c (gtk_text_view_end_selection_drag):
2666         Get rid of the unused event argument. Update all callers.
2667
2668         * gtk/gtktextview.c (gtk_text_view_focus_out): Call
2669         gtk_text_view_end_selection_drag.  (#351671, Boyd Timothy)
2670
2671 2007-03-09  Matthias Clasen <mclasen@redhat.com>
2672
2673         * modules/input/gtkimcontextxim.c 
2674         (gtk_im_context_xim_filter_keypress): Don't commit
2675         modifier-adorned characters.  (#331369, #335796, Lin Ma
2676         and others)
2677
2678 2007-03-09  Matthias Clasen <mclasen@redhat.com>
2679
2680         * Everywhere: Remove unnecessary NULL checks before
2681         g_free().  (#369666, Morten Welinder, Djihed Afifi)
2682
2683         * configure.in: Check for ftw.h
2684
2685 2007-03-09  Matthias Clasen <mclasen@redhat.com>
2686
2687         * gtk/gtkfilesystemwin32.c (get_icon_path): Remove
2688         C99isms.  (#416525, Kazuki Iwamoto)
2689
2690 2007-03-09  Tor Lillqvist  <tml@novell.com>
2691
2692         * README.win32: Update.
2693
2694 2007-03-08  Matthias Clasen <mclasen@redhat.com>
2695
2696         * gdk/x11/gdkasync.c (send_event_handler): Defer the callbacks
2697         to an idle to avoid deadlock with xcb-ified libX11.  (#413032,
2698         Sebastian Dröge)
2699
2700 2007-03-08  Matthias Clasen <mclasen@redhat.com>
2701
2702         * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
2703         Set child visibility to FALSE here; it will be turned
2704         back on in switch_page.  (#413664, Carlos Garnacho)
2705         
2706 2007-03-08  Mathias Hasselmann <mathias.hasselmann@gmx.de>
2707
2708         * modules/engines/ms-windows/msw_style.c: Use proper border style
2709         when drawing shadow of scrolled windows on Windows XP (#168326)
2710         * modules/engines/ms-windows/xp_theme.c: Explicitly set size of
2711         element_part_map array to ensure it always is large enough.
2712         
2713 2007-03-08  Mathias Hasselmann <mathias.hasselmann@gmx.de>      
2714
2715         * gtk/gtkcombobox.c: Add shadow-type style property, set shadow-type
2716         property of GtkEntry accordingly, unify size-allocation of toggle
2717         button (#411123, patch from Mathias Hasselmann).
2718         * gtk/gtkentry.c: Add shadow-type property. Query style properties
2719         on style changes only (#411123, patch from Mathias Hasselmann).
2720         * modules/engines/ms-windows/msw_style.c: Drop combo_box_draw_box
2721         hack as GtkComboBox emits drawing requests now (#411123, patch 
2722         from Mathias Hasselmann).
2723         
2724 2007-03-08  Mathias Hasselmann <mathias.hasselmann@gmx.de>
2725
2726         * gtk/gtkscrolledindow.c: Improve look of GtkScrolledWindow on Windows
2727         by implementing a scrollbars-within-bevel style property. (#168326)
2728         
2729 2007-03-08  Mathias Hasselmann <mathias.hasselmann@gmx.de>
2730
2731         * gtk/gtkfilesystemwin32.c: Use Windows shell icons. Icons are
2732         stored in the current theme with the name
2733         "gtk-win32-shell-icon;PATH;INDEX". PATH and INDEX reference shell
2734         icons as reported by SHGetFileInfoW. (#412221)
2735
2736 2007-03-07  Matthias Clasen <mclasen@redhat.com>
2737
2738         * gtk/gtkexpander.c (gtk_expander_paint_focus): Draw the
2739         focus around the arrow if there is no label widget.  
2740         (#124045, Cody Russell)
2741
2742 2007-03-07  Matthias Clasen <mclasen@redhat.com>
2743
2744         * gtk/gtkcombo.c: (gtk_combo_init):
2745         * gtk/gtkcombobox.c: (gtk_combo_box_set_popup_widget),
2746         (gtk_combo_box_menu_setup):
2747         Set names on the popup widgets to make them themable. (#414975, 
2748         Benjamin Berg)
2749
2750 2007-03-07  Michael Natterer  <mitch@imendio.com>
2751
2752         * gtk/gtkcellrendereraccel.c: use multihead safe ungrab functions
2753         instead of gdk_keyboard_ungrab() and gdk_pointer_ungrab(), remove
2754         empty finalize() implementation, some cosmetic cleanup
2755         (bug #415645).
2756
2757 2007-03-06  Chris Wilson  <chris@chris-wilson.co.uk>
2758
2759         * gtk/gtkicontheme.c (update_current_theme), (gtk_icon_theme_init),
2760         (do_theme_change), (gtk_icon_theme_set_custom_theme),
2761         (load_themes):
2762         Be careful not to trigger a style reset before we have loaded
2763         the icon theme. (#414875).
2764
2765 2007-03-06  Tor Lillqvist  <tml@novell.com>
2766
2767         * gdk/Makefile.am
2768         * gtk/Makefile.am: Further fixes for building on Win32 outside
2769         srcdir. (#413492, Mathias Hasselmann)
2770
2771 2007-03-04  Ihar Hrachyshka <iharh@gnome.org>
2772
2773         * configure.in: Added be@latin to ALL_LINGUAS. Problems seems to be
2774         fixed.
2775
2776 2007-03-04  Claudio Saavedra  <csaavedra@alumnos.utalca.cl>
2777
2778         * configure.in: Removed be@latin from ALL_LINGUAS, as it's currently
2779         breaking the build.
2780
2781 2007-03-04  Ihar Hrachyshka <iharh@gnome.org>
2782
2783         * configure.in: Added be@latin to ALL_LINGUAS
2784
2785 2007-03-03  Guillaume Savaton <llumeao@gmail.com>
2786
2787         * configure.in: Added Esperanto (eo) to ALL_LINGUAS
2788
2789 2007-03-01  Matthias Clasen <mclasen@redhat.com>
2790
2791         * gtk/gtksettings.c: Always store gtk-color-scheme
2792         values from all sources in the ColorSchemeData struct
2793         and ignore the property_value for gtk-color-scheme.
2794         This fixes #412596, reported by Thomas Wood.
2795
2796 2007-02-28  Matthias Clasen <mclasen@redhat.com>
2797
2798         * gtk/gtksettings.c: Make color scheme update properly
2799         when changing themes.  (#402131, Benjamin Berg)
2800
2801 2007-02-28  Matthias Clasen <mclasen@redhat.com>
2802
2803         * gtk/gtkrc.c: Don't leak references to the color-hash 
2804         gotten from GtkSettings.  (#409357, Benjamin Berg)
2805
2806 2007-02-28  Tristan Van Berkom <tvb@gnome.org>
2807
2808         * gtk/gtkradiobutton.c: Fixed a warning from
2809         g_object_set (radiobutton, "group", NULL, NULL).
2810
2811 2007-02-26  Matthias Clasen <mclasen@redhat.com>
2812
2813         Apply a patch by Carlos Garnacho to fix several problems
2814         with filechooser size handling (#325477, #151169, 143213,
2815         #153785)
2816
2817         * gtk/gtkfilechooserdefault.c: Increase NUM_LINES slightly.
2818         (browse_widgets_create): Don't force the paned position to 200.
2819         (find_good_size_from_style): Take the size of the extra widget
2820         into account.
2821
2822         * gtk/gtkfilechooserdialog.c (file_chooser_widget_update_hints):
2823         Accept a minimal width parameter. Update all callers.
2824
2825 2007-02-26  Matthias Clasen <mclasen@redhat.com>
2826
2827         * gtk/gtkprintunixdialog.c: Change the label to "Pages per side",
2828         which is more accurate, suggested by Tim Waugh. String change! 
2829
2830 2007-02-26  Matthias Clasen <mclasen@redhat.com>
2831
2832         * gtk/gtkprinteroptionwidget.c: Make the folder selection for
2833         print-to-file work. Reported by Ian Collier.
2834
2835 2007-02-26  Chris Wilson  <chris@chris-wilson.co.uk>
2836
2837         Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might cause gnome-panel crash
2838
2839         * gtk/gtkicontheme.c: (scan_directory):
2840                 Reorder the replacement of the shared base_name key, so that we
2841                 avoid dereferencing the string in the icon_theme->all_icon
2842                 hash table after freeing it from the dir->icons hash table.
2843
2844 2007-02-26  Tor Lillqvist  <tml@novell.com>
2845
2846         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon_name): Add
2847         comment clarifying that "icon name" here is not related to the
2848         freedesktop.org icon naming stuff.
2849
2850 2007-02-23  Dom Lachowicz  <domlachowicz@gmail.com>
2851
2852         * modules/engines/ms-windows/msw_style.c: Bug 411118 - bad bevel for
2853         progress bar on windows classic. Match from Mathias Hasselmann.
2854         
2855 2007-02-19  Tor Lillqvist  <tml@novell.com>
2856
2857         * gdk/win32/gdkinput.c
2858         (gdk_device_finalize, gdk_device_class_init): Remove.
2859         (gdk_device_get_type): Drop class init function. The X11 version
2860         doesn't have one either.
2861         (gdk_devices_list): Call gdk_display_list_devices() on _gdk_display.
2862         (gdk_display_list_devices): Check that the argument is
2863         _gdk_display.
2864
2865         * gdk/win32/gdkinput-win32.h (GdkAxisInfo, GdkDevicePrivate):
2866         Cleanup: remove unused fields.
2867         * gdk/win32/gdkinput-win32.c: Corresponding changes. Fix function
2868         names in a few debugging printouts.
2869
2870 2007-02-18  Matthias Clasen  <mclasen@redhat.com>
2871
2872         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
2873         Ignore invisible text when going to end of the previous line.
2874         (#382565)
2875
2876 2007-02-18  Richard Hult  <richard@imendio.com>
2877
2878         * gdk/quartz/gdkwindow-quartz.c:
2879         (gdk_window_quartz_process_all_updates),
2880         (_gdk_windowing_window_destroy): Setup release pools to plug two leaks,
2881         patch from Erik van Pienbroek, fixes bug #396649.
2882
2883 2007-02-18  Richard Hult  <richard@imendio.com>
2884
2885         * gdk/quartz/gdkevents-quartz.c: Add stub for 
2886         gdk_display_add_client_message_filter, patch from Taybin Rutkin. Fixes
2887         bug #405870.
2888
2889         * gdk/quartz/gdkprivate-quartz.h: Add prototypes to fix build warnings.
2890
2891 2007-02-18  Richard Hult  <richard@imendio.com>
2892
2893         * gdk/quartz/GdkQuartzView.h:
2894         * gdk/quartz/GdkQuartzWindow.h:
2895         * gdk/quartz/gdkquartz.h: Import AppKit.h instead of Quartz.h.
2896         * gdk/quartz/gdkscreen-quartz.c: (get_mm_from_pixels): Don't use 
2897         userSpaceScaleFactor for 10.3. Those changes bring us closer to working
2898         on panther, patch from Mathias Hasselmann.
2899         
2900         * gdk/quartz/gdkeventloop-quartz.c: Add includes to fix build warnings.
2901
2902 2007-02-16  Behdad Esfahbod  <behdad@gnome.org>
2903
2904         * gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS
2905         instead of division. (#334617)
2906
2907 2007-02-16  Kristian Rietveld  <kris@gtk.org>
2908
2909         * gtk/gtktreeprivate.h: add cursor_offset field.
2910
2911         * gtk/gtktreeview.c (gtk_tree_view_init),
2912         (gtk_tree_view_move_cursor_page_up_down): fix off by one error
2913         in page up/down handling by memorizing the offset into the cursor
2914         row.  (Fixes #399809, reported by Bruce Bowler).
2915
2916 2007-02-16  Kristian Rietveld  <kris@gtk.org>
2917
2918         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): send
2919         a focus-in event to the tree view after hiding the search dialog.
2920         (#356515, Rich Burridge, Peter Parente).
2921
2922 2007-02-16  Kristian Rietveld  <kris@imendio.com>
2923
2924         * tests/testtooltips.c (query_tooltip_text_view_cb): also handle
2925         keyboard tooltips. (#408325, Matthias Clasen).
2926
2927 2007-02-16  Xan Lopez  <xan@gnome.org>
2928
2929         * gtk/gtkcombobox.c (gtk_combo_box_expose_event): Cleanup the logic
2930         in expose event handler. Reviewed by Matthias Clasen, #406112
2931
2932 2007-02-16  Matthias Clasen  <mclasen@redhat.com>
2933
2934         * gtk/gtkmain.c: Run pre_parse_hook only once.  (#403139, Kjartan
2935         Maraas)
2936
2937 2007-02-15  Matthias Clasen  <mclasen@redhat.com>
2938
2939         * gdk/x11/gdmain-x11.c (_gdk_xgrab_check_button_event): Be more
2940         careful when checking for ButtonRelease events that end implicit
2941         grabs.  (#386618, Christof Krüger)
2942
2943 2007-02-15  Matthias Clasen  <mclasen@redhat.com>
2944
2945         * gtk/gtktextbtree.c (_gtk_text_btree_delete): Free the lines
2946         even if there are no views.  (#408018, Albert Huang)
2947
2948 2007-02-15  Cody Russell  <bratsche@gnome.org>
2949
2950         * gdk/win32/gdkevents-win32.c: Make sure we get enough main context 
2951         iterations while we're resizing so that the window contents are resized 
2952         more smoothly (#389765).
2953
2954         * gdk/win32/gdkevents-win32.c: Fix flickering widgets when window contents
2955         are resized (#310522).
2956
2957 2007-02-15  Matthias Clasen  <mclasen@redhat.com>
2958
2959         * gtk/updateiconcache.c: Handle symlinked .icon files 
2960         intelligently; also avoid storing duplicate strings.
2961
2962 2007-02-15  Michael Natterer  <mitch@imendio.com>
2963
2964         * gtk/gtkmenushell.c: remove two antique function typedefs that
2965         are probably obsolete for ages.
2966
2967 2007-02-14  Stefan Kost  <ensonic@users.sf.net>
2968
2969         reviewed by: Matthias Clasen  <mclasen@redhat.com>
2970
2971         * configure.in: determine installation prefixes of dependent libs to
2972         crossreference docs (#407146).
2973
2974 2007-02-14  Kristian Rietveld  <kris@imendio.com>
2975
2976         * gtk/gtktooltip.c (child_location_foreach): check return value
2977         of gtk_widget_translate_coordinates() so we cannot end up
2978         using uninitialized x, y values.  (#407863, patch from Carlos
2979         Garnacho).
2980
2981 2007-02-14  Kristian Rietveld  <kris@imendio.com>
2982
2983         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
2984         use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window
2985         position instead of a hardcoded value.  (Taken from maemo-gtk).
2986
2987 2007-02-14  Michael Natterer  <mitch@imendio.com>
2988
2989         * gtk/gtkmenu.c (gtk_menu_motion_notify): don't forget to set the
2990         state of the synthesized GDK_ENTER_NOTIFY event. Fix taken from
2991         maemo-gtk.
2992
2993 2007-02-13  Kristian Rietveld  <kris@imendio.com>
2994
2995         * gtk/gtktooltip.c (gtk_tooltip_hide_tooltip): stop any
2996         pending tooltip timeout. (Fixes #406110, Carlos Garnacho).
2997
2998 2007-02-10  Emmanuele Bassi  <ebassi@gnome.org>
2999
3000         * gtk/gtkrecentchoosermenu.c: Fix the english of the comment;
3001         remove some type checking; use better variable naming for the
3002         internal menu item markers.
3003
3004 2007-02-09  Emmanuele Bassi  <ebassi@gnome.org>
3005
3006         * gtk/gtkrecentchoosermenu.c: Add support for both prepending
3007         and appending custom menu items.
3008
3009         (gtk_recent_chooser_menu_constructor): Add a placeholder menu
3010         item for the empty menu case, and for giving us a starting
3011         point for the recent items populating process.
3012
3013         (gtk_recent_chooser_menu_insert_item),
3014         (gtk_recent_chooser_menu_dispose_items): Insert an item at
3015         the position following the placeholder (and find that position
3016         if needed).
3017
3018         (idle_populate_func), (idle_populate_clean_up): Show the
3019         placeholder menu item, instead of creating one each time.
3020
3021         (gtk_recent_chooser_menu_populate): Kill some indirections
3022         and hide the placeholder before populating the menu.
3023
3024         (set_recent_manager): Remember to remove the idle population
3025         source if the manager changes.
3026
3027         * tests/testrecentchoosermenu.c: Test the appending and
3028         prepending of the menu items to the recent chooser menu
3029         widget.
3030
3031 2007-02-08  Emmanuele Bassi  <ebassi@gnome.org>
3032
3033         * gtk/gtkrecentchoosermenu.c (idle_populate_func): Keep count
3034         of the displayed items to build the menu items mnemonic instead
3035         of the overall item count. (#377164)
3036
3037         (idle_populate_clean_up): Append a menu item if all the items
3038         got filtered in the idle populate function. (#405696)
3039
3040         * tests/Makefile.am:
3041         * tests/testrecentchoosermenu.c: Add a test for the
3042         GtkRecentChooserMenu widget.
3043
3044 Thu Feb  8 13:07:08 2007  Tim Janik  <timj@imendio.com>
3045
3046         * applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
3047         GtkButtonBox (bug #336159).
3048
3049         * gtk/gtkenums.h:
3050         * gtk/gtkvbbox.c, gtk/gtkhbbox.c, gtk/gtkbbox.c:
3051         support GTK_BUTTONBOX_CENTER.
3052
3053         * tests/testbbox.c: new button box test, which allows testing of 
3054         the various button box properties.
3055
3056         * tests/testgtk.c: added GTK_BUTTONBOX_CENTER. to button box test.
3057
3058 2007-02-07  Cody Russell  <bratsche@gnome.org>
3059
3060         * gdk/gdk.symbols: Add gdk_event_request_motions
3061
3062 Wed Feb  7 19:03:28 2007  Tim Janik  <timj@gtk.org>
3063
3064         * gtk/gtkentry.c (gtk_entry_motion_notify): fixed motion request 
3065         condition which was wrongly ported with my last commit.
3066
3067 Tue Feb  6 15:53:59 2007  Tim Janik  <timj@imendio.com>
3068
3069         * gtk/gtktextview.c (gtk_text_view_motion_event):
3070         * gtk/gtkspinbutton.c (gtk_spin_button_motion_notify):
3071         * gtk/gtkaboutdialog.c (credits_motion_notify_event):
3072         * gtk/gtkhruler.c (gtk_hruler_motion_notify):
3073         * gtk/gtkvruler.c (gtk_vruler_motion_notify): 
3074         * gtk/gtkentry.c (gtk_entry_motion_notify):
3075         * gtk/gtktooltip.c (_gtk_tooltip_handle_event):
3076         * gtk/gtkhsv.c (gtk_hsv_motion): call gdk_event_request_motions()
3077         for new motion events after receiving motion hints.
3078
3079         * gdk/gdkevents.[hc]: added gdk_event_request_motions().
3080
3081 2007-02-06  Kristian Rietveld  <kris@imendio.com>
3082
3083         * gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
3084         remove unused get of has_tooltip.
3085
3086         * tests/testtooltips.c (query_tooltip_tree_view_cb): use the
3087         portable g_snprintf instead of snprintf.
3088
3089 2007-02-06  Michael Natterer  <mitch@imendio.com>
3090
3091         * gtk/gtktooltip.c (gtk_tooltip_finalize): chain up.
3092
3093         (gtk_tooltip_show_tooltip): move variables and code to local
3094         scope. Fixes warnings about maybe uninitialized variables.
3095
3096 2007-02-06  Kristian Rietveld  <kris@imendio.com>
3097
3098         New tooltips API.
3099
3100         * gtk/Makefile.am
3101         * gtk/gtk.h
3102         * gtk/gtk.symbols: build system foo.
3103
3104         * gtk/gtkmain.c (gtk_main_do_event): call tooltip event handler
3105         hook for appropriate events.
3106
3107         * gtk/gtkmarshalers.list: add BOOLEAN:INT,INT,BOOLEAN,OBJECT.
3108
3109         * gtk/gtkrc.c: add style for gtk-tooltip.
3110
3111         * gtk/gtksettings.c (gtk_settings_class_init): make the
3112         different tooltip timeouts configurable.
3113
3114         * gtk/gtkwidget.[ch]: add new properties, signals, make sure
3115         tooltips are hidden on unmap, destroy, update window event
3116         mask on realize, hook into focus change and show help
3117         handlers.
3118
3119         * gtk/gtkwindow.h: move GtkWindow typdef to gtkwidget.h ...
3120
3121         * gtk/gtktooltip.[ch]: new files.
3122
3123         * tests/Makefile.am
3124         * tests/testtooltips.c: add test application.
3125
3126 2007-02-05  Dom Lachowicz <domlachowicz@gmail.com>
3127
3128         * modules/engines/ms-windows/msw_style.c: Fix bug 404506, caused
3129         by prematurely releasing a DC. By Hiroyuki Yamamoto
3130         * modules/engines/ms-windows/msw_style.c: Fix bug 403470 - leaking 
3131         pixbufs when drawing rotated tabs. By Daniel Atallah
3132         
3133 2007-02-05  Michael Natterer  <mitch@imendio.com>
3134
3135         * gtk/gtksettings.c: add new boolean settings gtk-enable-accels
3136         and gtk-enable-mnemonics which enable/disable accelerators and
3137         mnemonics (bug #72375, based on a patch from Tommi Komulainen).
3138
3139         * gtk/gtkwindow.c (gtk_window_activate_key)
3140         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): don't invoke them
3141         if the resp. setting is FALSE.
3142
3143         * gtk/gtkaccellabel.c (gtk_accel_label_refetch)
3144         * gtk/gtklabel.c (gtk_label_set_pattern_internal): don't display
3145         them if the setting is FALSE.
3146
3147         * gtk/gtklabel.c: added signal connection to the screen's settings
3148         object and traverse all widgets on the screen when the setting
3149         changes. It's slightly ugly to also update GtkAccelLabels here,
3150         but less ugly than connecting and traversing all widgets twice.
3151
3152 2007-02-05  Michael Natterer  <mitch@imendio.com>
3153
3154         * gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
3155         values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
3156         ansi C enum value limits. Fixes bug #46757.
3157
3158 2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>
3159
3160         * gtk/gtksequence.[ch]: Remove these files since GSequence has
3161         been moved into GLib.
3162
3163         * gtk/gtkliststore.c: Port to GSequence instead of GtkSequence.
3164
3165         * configure.in: Require glib-2.13.0
3166         
3167 2007-02-04  Tor Lillqvist  <tml@novell.com>
3168
3169         * gdk/win32/gdkcursor-win32.c: Don't define BITMAPV5HEADER on
3170         mingw with w32api >= 3.8, which has it in wingdi.h. (#403896)
3171
3172 2007-02-02  Kristian Rietveld  <kris@gtk.org>
3173
3174         * gtk/gtktreeview.c (gtk_tree_view_row_changed): remove unused
3175         style_get of vertical-separator. (#403165, Chris Wilson).
3176
3177 2007-02-02  Christian Persch  <chpe@svn.gnome.org>
3178
3179         * gtk/gtkfilechoosersettings.c: (get_config_filename),
3180         (ensure_settings_read), (_gtk_file_chooser_settings_init),
3181         (_gtk_file_chooser_settings_set_show_hidden),
3182         (_gtk_file_chooser_settings_set_expand_folders),
3183         (_gtk_file_chooser_settings_save): Use a simple key file instead of a
3184         markup file. Bug #399592.
3185
3186 2007-02-02  Mariano Suárez-Alvarez  <mariano@gnome.org>
3187
3188         * gtk/gtkcellrenderertext.c(gtk_cell_renderer_text_class_init):
3189         be a little more helpful with the docs on GtkCellRendererText:alignment.
3190         Bug #403409.
3191
3192 2007-02-01  Michael Natterer  <mitch@imendio.com>
3193
3194         * gtk/gtkmenu.c (gtk_menu_paint): pass &event->area to
3195         gtk_paint_box() calls.
3196
3197 2007-02-01  Michael Natterer  <mitch@imendio.com>
3198
3199         * gtk/gtkmenu.c (gtk_menu_button_press)
3200         (gtk_menu_button_release)
3201         (gtk_menu_button_scroll): remove redundant and confusing
3202         if (GTK_IS_MENU (widget)) checks because "widget" is always a
3203         GtkMenu here.
3204
3205 Thu Feb  1 12:22:06 2007  Tim Janik  <timj@imendio.com>
3206
3207         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
3208         that gtkcombobox keeps on priv->popup_widget if it's a tree view.
3209
3210 2007-01-31  Christian Persch  <chpe@svn.gnome.org>
3211
3212         * gtk/gtkaboutdialog.c: (update_credits_button_visibility),
3213         (gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
3214         (gtk_about_dialog_set_artists),
3215         (gtk_about_dialog_set_translator_credits): Hide the Credits button iff
3216         there are no credits to show. Bug #402806.
3217
3218 2007-01-31  Tor Lillqvist  <tml@novell.com>
3219
3220         * gdk/win32/gdkinput-win32.c (print_cursor): New debugging
3221         function.
3222         (_gdk_input_wintab_init_check): Call it when debugging output is
3223         requested.
3224         (_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
3225         tablets. The Wacom driver reports duplicated cursors with
3226         physid==0. Fix verified by Robert Ögren.
3227
3228 2007-01-30  Felix Riemann  <friemann@svn.gnome.org>
3229
3230         * modules/printbackends/file/gtkprintbackendfile.c:
3231         (file_printer_get_options): Fix leaked string. Fixes bug #402565.
3232
3233 2007-01-30  Matthias Clasen  <mclasen@redhat.com>
3234
3235         * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
3236         (gdk_x11_window_set_user_time): Be more careful about toplevel
3237         possibly being NULL.  (#402453, Sebastian Bacher)
3238
3239 Tue Jan 30 12:09:56 2007  Tim Janik  <timj@gtk.org>
3240
3241         * gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
3242         class_n_properties and leave an uninitialized value array behind.
3243
3244 2007-01-29  Michael Natterer  <mitch@imendio.com>
3245
3246         * gtk/gtkmenuitem.c (gtk_menu_item_select)
3247         (gtk_menu_item_deselect): queue a draw on the parent_menu_item of
3248         this menu item's menu, to enable themeing menu items depending on
3249         whether something is selected in their submenu (patch taken from
3250         maemo-gtk).
3251
3252 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
3253
3254         * gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
3255         that was mistakenly "cleaned up" a while ago. Also
3256         revert a problematic change to the screen_changed
3257         handler.  (#401598, Søren Sandmann)
3258
3259 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
3260
3261         * gtk/gtkframe.c (gtk_frame_size_allocation): Fix a 
3262         problem with large y thickness.  (#136592, Xan Lopez)
3263
3264 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
3265
3266         * gtk/gtkaction.c (gtk_action_new): Use canonical
3267         property names.  
3268
3269 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
3270
3271         * gtk/gtknotebook.c (gtk_notebook_draw_arrow):
3272         (gtk_notebook_draw_focus): Avoid some unnecessary 
3273         gtk_widget_get_style() calls.
3274
3275 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
3276
3277         * gtk/gtktoolbar.c:
3278         * gtk/gtktoolitem.c:
3279         * gtk/gtktoolbutton.c: Rearrange things so that setting
3280         multiple properties causes not more than a single 
3281         reconstruction of the contents.
3282
3283         * gtk/gtkaction.c (connect_proxy): Set all tool button 
3284         properties in one go.
3285
3286 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
3287
3288         * gtk/gtkstatusicon.c:
3289         * gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
3290         take up space on the panel if it is invisible.  (340110, Christian
3291         Persch)
3292
3293         * tests/teststatusicon.c:
3294         * tests/Makefile.am: Updates
3295
3296 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
3297
3298         * gtk/gtkfilesel.h:
3299         * gtk/gtkrc.h:
3300         * gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
3301         and the old file selector.  (#348256)
3302
3303 2007-01-26  Matthias Clasen  <mclasen@redhat.com>
3304
3305         * gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)
3306
3307 2007-01-26  Matthias Clasen  <mclasen@redhat.com>
3308
3309         * gtk/updateiconcache.c: Check the mtime of all directories,
3310         not just the toplevel, if ftw() is available.  (#331671, Behdad
3311         Esfahbod)
3312
3313         * configure.in: Check for ftw.h.
3314
3315 2007-01-26  Michael Natterer  <mitch@imendio.com>
3316
3317         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
3318         destroy the XIM only if it exists. While the code does look safe
3319         in general, there can be corner cases where the "reconnecting"
3320         boolean being FALSE does not correspond to the XIM being
3321         allocated (fixes #329450, fix taken from maemo-gtk).
3322
3323 Fri Jan 26 13:07:07 2007  Tim Janik  <timj@imendio.com>
3324
3325         * gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
3326         window bounds (fix from Maemo Gtk).
3327
3328 2007-01-26  Michael Natterer  <mitch@imendio.com>
3329
3330         * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
3331         only block/unblock completion->priv->insert_text_id if it is
3332         actually connected. While this can't happen the way GtkEntry
3333         itself uses the completion, it's still public API and should not
3334         blindly call functions that will spit warnings (fix taken from
3335         maemo-gtk).
3336
3337 2007-01-25  Matthias Clasen  <mclasen@redhat.com>
3338
3339         * gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
3340         the paintable iface.  
3341
3342 2007-01-24  Michael Natterer  <mitch@imendio.com>
3343
3344         * gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
3345         of PRELIGHT state for the reasons given in bug #135666. Widget
3346         states are sometimes abused or otherwise used wrongly for historic
3347         reasons, causing this part of the patch to break e.g. menu items.
3348
3349 2007-01-24  Roozbeh Pournader  <roozbeh@farsiweb.info>
3350
3351         * README: Remove mention of no-longer-existing PATCH
3352         keyword in bugzilla. (#396899)
3353
3354 2007-01-23  Carlos Garcia Campos  <carlosgc@gnome.org>
3355
3356         * gtk/gtkpagesetup.c
3357         (gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
3358         Fixes bug #399907. 
3359
3360 2007-01-22  Chris Wilson <chris@chris-wilson.co.uk>
3361
3362         Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
3363
3364         * gtk/gtkstyle.h:
3365                 Cause gcc to issue a warning if the style returned from
3366                 gtk_style_attach is not used. Failure to update
3367                 widget->style causes some very difficult to reproduce bugs,
3368                 eg Bug 353498 – crash in Terminal: changing icon theme.
3369
3370 2007-01-19  Michael Emmel  <mike.emmel@gmail.com>
3371
3372         * gdk/directfb/gdkevents-directfb.c: added fixes for window
3373         crossing events frm Attilio Fiandrotti<attilio.fiandrotti@gmail.com>
3374
3375 2007-01-19  Matthias Clasen  <mclasen@redhat.com>
3376
3377         * gtk/gtkcalendar.c: Fix build breakage.
3378
3379 2007-01-19  Kristian Rietveld  <kris@imendio.com>
3380
3381         * gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
3382         (add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
3383         add_scroll_timeout().  (taken from maemo-gtk).
3384
3385 2007-01-18  Matthias Clasen  <mclasen@redhat.com>
3386
3387         * gtk/gtkcalendar.c: Fix problems with the initial
3388         focus in GtkCalendar.  (#397783, Vincent Untz)
3389
3390 2007-01-19  Robert Ögren  <gtk@roboros.com>
3391
3392         Fix for bug #143460 - missed tablet clicks on Windows
3393
3394         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
3395         Request absolute reporting of tablet button state, and cut down
3396         the packet queue size a bit.
3397         (_gdk_input_other_event): Change button state handling
3398         accordingly. Also drop the no longer necessary code that detects
3399         missed clicks/releases for button 1. The switch to absolute button
3400         state should prevent missed events for all buttons. Additionally,
3401         swap button 2 and 3.
3402         (_gdk_input_grab_pointer): Don't reset button_state, that will only
3403         cause a new press event as soon as the next tablet packet arrives.
3404
3405 2007-01-19  Tor Lillqvist  <tml@novell.com>
3406
3407         Build Wintab support always on Windows. Don't require the Wintab
3408         SDK.
3409
3410         * configure.in: Drop the --with-wintab option. Drop the
3411         HAVE_WINTAB feature test macro and Automake variable.
3412
3413         * acconfig.h
3414         * config.h.win32.in: Drop HAVE_WINTAB.
3415
3416         * gdk/win32/gdkevents-win32.c
3417         * gdk/win32/gdkinput.c
3418         * gdk/win32/gdkinput-win32.h
3419         * gdk/win32/gdkinput-win32.c
3420         * gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
3421         unconditional.
3422
3423         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
3424         to load wintab32.dll dynamically here. If it is found look up the
3425         handful Wintab functions we use.
3426         (rest of file): Use these function pointers instead of calling the
3427         functions from wntab32x.lib. The code in wntab32x.lib did the same
3428         thing anyway: tried to load wintab32.dll, and looked up the
3429         addresses of the actual functions from it.
3430
3431         * gdk/Makefile.am
3432         * gdk/win32/Makefile.am: Drop the libwntab32x hacks.
3433
3434         * gdk/win32/wintab.h
3435         * gdk/win32/pktdef.h: New files. Copied from the Wintab
3436         SDK. Copyright blurb says: "The text and information contained in
3437         this file may be freely used, copied, or distributed without
3438         compensation or licensing restrictions."
3439
3440         * README.win32: Update a bit. Remove the text about the Wintab
3441         SDK.
3442
3443 2007-01-18  Tor Lillqvist  <tml@novell.com>
3444
3445         * gdk-pixbuf/Makefile.am
3446         * gdk/Makefile.am
3447         * gdk/win32/Makefile.am
3448         * gtk/Makefile.am: Fixes for building outside srcdir on
3449         Win32. (#336819, #340013) Drop distributing the handmade .la
3450         libtool wrapper for the wntab32x library. It's too much trouble
3451         making it work when building outside srcdir. Just link to the
3452         library direcly using -Wl,win32/libwntab32x.a.
3453
3454 2007-01-18  Michael Natterer  <mitch@imendio.com>
3455
3456         * gtk/gtkcheckbutton.c
3457         * gtk/gtkdnd.c
3458         * gtk/gtkentry.c
3459         * gtk/gtkmenu.c
3460         * gtk/gtktreeview.c
3461         * gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo()
3462         functions. Based on a patch from maemo-gtk (bug #398023).
3463
3464 2007-01-17  Tor Lillqvist  <tml@novell.com>
3465
3466         * gtk-zip.sh.in: Include also the COPYING file.
3467
3468 2007-01-17  Matthias Clasen  <mclasen@redhat.com>
3469
3470         * modules/printbackends/cups/gtkprintbackendcups.c: Don't use
3471         httpGetFd() when building against cups 1.1
3472
3473 2007-01-17  Tor Lillqvist  <tml@novell.com>
3474
3475         Proper fix for #396175:
3476
3477         * gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
3478         include gtkprivate.h. On Win32 we do want to use the redefinition
3479         of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().
3480
3481         * gtk/gtkimmodule.c: Instead, correct the prefix also on
3482         simple_context_info.domain_dirname. Do the prefix corrections
3483         always on Win32, not just when GTK_LIBDIR is defined. i.e., until
3484         now they were done only in the autoconfiscated gcc builds. Hans
3485         needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
3486         in MSVC builds now.
3487         (correct_localedir_prefix): New function, like
3488         correct_libdir_prefix(), but for GTK_LOCALEDIR, in case
3489         GTK_LOCALEDIR is not a descendant of GTK_LIBDIR.
3490         (gtk_im_module_initialize): Thus call correct_localedir_prefix()
3491         on the domain_dirname instead of correct_libdir_prefix().
3492         (_gtk_im_module_list): Call correct_localedir_prefix() on
3493         simple_context_info.domain_dirname.
3494
3495 2007-01-16  Matthias Clasen  <mclasen@redhat.com>
3496
3497         * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
3498         grab changes.  (#396470, Benjamin Berg)
3499
3500 2007-01-15  Emmanuele Bassi  <ebassi@gnome.org>
3501
3502         * gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
3503         if they grow too much. (#357303)
3504
3505 2007-01-14  Matthias Clasen  <mclasen@redhat.com>
3506
3507         * gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching
3508         non-scalable dir, keep going and look for a closer match.
3509         (#395830, Luca Ferretti)
3510
3511 2007-01-14  Christian Persch  <chpe@svn.gnome.org>
3512
3513         * gtk/gtkclipboard.c: (gtk_clipboard_set_text),
3514         (gtk_clipboard_set_image): Use gtk_target_table_new_from_list and
3515         gtk_target_table_free instead of duplicating the code. Bug #396493.
3516
3517 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
3518
3519         * gtk/gtkuimanager.c: Don't crash if menu or toolbar
3520         positions can't be found.  (#396161, Hans Breuer)
3521
3522 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
3523
3524         * gtk/gtkselection.c (_gtk_selection_request): Plug 
3525         memory leaks.  (#396160, Carlos Garcia Campos)
3526
3527 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
3528
3529         * configure.in: Link libgtk against Xfixes.  (#396074,
3530         Tommi Komulainen)
3531
3532 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
3533
3534         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
3535         a compiler warning.  (#395045, Chris Wilson)
3536
3537 2007-01-13  Hans Breuer <hans@breuer.org>
3538
3539         * gtk/gtkprintoperation-win32.c : take the custom tab label from
3540         gtk_print_operation_set_custom_tab_label() into account (bug #390746).
3541
3542         * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid
3543         differing definitions of GTK_LOCALEDIR (bug #396175).
3544
3545         * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is
3546         not available everywhere
3547
3548         * gtk/makefile.msc.in : updated
3549
3550 2007-01-12  Michael Natterer  <mitch@imendio.com>
3551
3552         * gtk/gtkentry.c (gtk_entry_button_press): don't add
3553         entry->scroll_offset to entry->drag_start_y. Fixes the entry
3554         starting drags after ridiculously small mouse movements.
3555
3556 2007-01-11  Richard Hult  <richard@imendio.com>
3557
3558         * demos/gtk-demo/main.c: (load_file): Close the file after it's
3559         loaded (bug #395316).
3560
3561 2007-01-11  Kjartan Maraas  <kmaraas@gnome.org>
3562
3563         * gtk/gtkfilesystemunix.c: (expand_tilde):
3564         Make a single tilde go to $HOME in the location entry.
3565         Patch from Yevgen Muntyan. Closes the gtk+ part of
3566         bug #334168.
3567
3568 2007-01-10  Behdad Esfahbod  <behdad@gnome.org>
3569
3570         * gdk/gdkpango.c (gdk_draw_layout_with_colors):
3571         * gtk/gtklabel.c (gtk_label_size_request):
3572         Use pango_matrix_transform_rectangle(). (#340141)
3573
3574         * configure.in: Bump pango requirement to 1.15.3.
3575
3576 2007-01-10  Kristian Rietveld  <kris@imendio.com>
3577
3578         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
3579         refactor to initialize indicator_size to TOGGLE_WIDTH instead
3580         of the hardcoded value of 12.
3581
3582 2007-01-09  Matthias Clasen  <mclasen@redhat.com>
3583
3584         * configure.in: Fix the directfb cairo test. (#394855, 
3585         Josselin Mouette)
3586
3587 2007-01-09  Behdad Esfahbod  <behdad@gnome.org>
3588
3589         * configure.in: Fix comment for --with-included-loaders.  That option
3590         affects builds with module loading enabled too.
3591
3592 2006-01-08  Peter Teichman  <peter@novell.com>
3593
3594         * gtk/gtkfilechooserdefault.c:
3595         * gtk/gtkfilechooserprivate.h:
3596         * gtk/gtkfilechoosersettings.c:
3597         * gtk/gtkfilechoosersettings.h:
3598         Save the expanded state of the folder browser with the file
3599         chooser settings.  Resolves the expander portions of (#153828,
3600         Lemmit Kaplinski)
3601
3602 2007-01-08  Emmanuele Bassi  <ebassi@gnome.org>
3603
3604         * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
3605         Don't leak the icon pixbuf after setting it to the image menu
3606         item.  Found by Paolo Borelli.
3607
3608 2007-01-08  Matthias Clasen  <mclasen@redhat.com>
3609
3610         * gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't 
3611         corrupt memory when faced with paths with ridiculously
3612         large indices. Found by the GTKVTS test suite.  
3613
3614 2007-01-08  Matthias Clasen  <mclasen@redhat.com>
3615
3616         * gtk/gtkmodules.c (_gtk_modules_init): Set 
3617         default_display_opened before loading modules.  (#393102,
3618         Brian Cameron)
3619  
3620 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
3621
3622         * gtk/gtktextview.c (gtk_text_view_set_border_window_size):
3623         Call text_window_realize() with the correct parameters.
3624         (#393813, Yevgen Muntyan)
3625
3626 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
3627
3628         * gtk/gtkstatusbar.c: Move docs inline, and expand them 
3629         a bit.
3630
3631 2007-01-06  Matthias Clasen  <mclasen@redhat.com>
3632
3633         * gtk/gtklabel.c: Make line wrapping work with width-chars
3634         and max-width-chars, and simplify the storage of wrap-width.
3635         (#322580, Itai Bar-Haim)
3636
3637 2007-01-06  Tor Lillqvist  <tml@novell.com>
3638
3639         * gdk/win32/cursor.bdf: New file. Downloaded from
3640         freedesktop.org's webcvs. Slighly edited cursors "crosshair",
3641         "diamond_cross", "draft_large", "gobbler" and "target" to fix
3642         #392504. It is possible that the same end result could have been
3643         achieved by tweaking bdfcursor.c instead.
3644         
3645         * gdk/win32/bdfcursor.c: Add optional debugging output.
3646
3647         * gdk/win32/xcursors.h: Regenerated.
3648
3649 2007-01-05  Matthias Clasen  <mclasen@redhat.com>
3650
3651         * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
3652         menu labels.  (#393255, Michail Crayson)
3653
3654 2007-01-05  Kristian Rietveld  <kris@gtk.org>
3655
3656         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree
3657         == NULL.  (Fixes #392685, reported by Yevgen Muntyan).
3658
3659 2007-01-05  Kristian Rietveld  <kris@gtk.org>
3660
3661         * gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow to
3662         invalidate nodes if the tree view is not realized. (#363147,
3663         Carlos Garnacho, Miguel Cabrera).
3664
3665 2007-01-05  Matthias Clasen  <mclasen@redhat.com>
3666
3667         * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
3668         account when drawing the background.  (#393166, Benjamin Berg)
3669
3670 2007-01-05  Behdad Esfahbod  <behdad@gnome.org>
3671
3672         * gtk/gtklabel.c (get_layout_location): Fix broken width computation,
3673         again.
3674
3675 2007-01-05  Carlos Garnacho  <carlosg@gnome.org>
3676
3677         * gtk/gtknotebook.c (gtk_notebook_size_request): take into account
3678         both scroll arrows when calculating size request in GTK_POS_LEFT or
3679         GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)
3680
3681 2007-01-05  Michael Natterer  <mitch@imendio.com>
3682
3683         * gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
3684         the right function (fix taken from maemo-gtk).
3685
3686 2007-01-05  Behdad Esfahbod  <behdad@gnome.org>
3687
3688         * gdk/gdkprivate.h:
3689         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors),
3690         (gdk_draw_layout_with_colors):
3691         * gdk/gdkwindow.c (gdk_window_draw_glyphs_transformed):
3692         Avoid overflow when converting coordinates to Pango units. (#332266,
3693         Jody Goldberg)
3694
3695 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
3696
3697         * gtk/gtkcombobox.c (gtk_combo_box_popup): move set_cursor
3698         after realization of the popup window, so clamp node doesn't fail.
3699         (#346616, Tommi Komulainen, patch by Kristian Rietveld).
3700
3701 2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
3702
3703         * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
3704         variable.
3705
3706 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
3707
3708         * gtk/Makefile.am:
3709         * gdk-pixbuf/Makefile.am:
3710         * configure.in:
3711         * gdk/win32/rc/gdk.rc.in: Cross-compilation fixes.
3712         (#392646, Yevgen Muntyan)
3713
3714 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
3715
3716         * demos/gtk-demo/textscroll.c:
3717         * gtk/gtkhandlebox.c:
3718         * gtk/gtkcolorsel.c: Fix some compiler warnings.
3719
3720 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3721
3722         * gtk/gtktextview.c: Rework the beep-on-uninserted-text
3723         by calling the input method regardless of editability,
3724         and beeping from the commit/preedit-changed handlers.
3725         (#390514, Yevgen Muntyan)
3726
3727 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3728
3729         Fix #332604, reported by Joe Wreschnig, patch
3730         by Jan Arne Petersen and Behdad Esfahbod.
3731
3732         * gtk/gtklabel.c (gtk_label_size_allocate): Only
3733         set the width of the layout when necessary.
3734         (get_layout_location): Use pango_layout_get_pixel_extents()
3735         instead of pango_layout_get_width().
3736
3737 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3738
3739         * modules/printbackends/cups/gtkprintbackendcups.c 
3740         (available_choices): Don't leak conflicts.
3741
3742         * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
3743         Don't leak the status string.
3744
3745 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3746
3747         * gtk/gtkfilechooserdefault.c (update_chooser_entry):
3748         Exit early if we can't get file info - this happens
3749         if the iter points to the row where we are editing
3750         the name for a newly created folder.  (#392191, Michael
3751         Partridge, patch by Kristian Rietveld)
3752
3753 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3754
3755         * gtk/*.c:
3756         * gdk/x11/*.c: Apply a patch by Chris Wilson to
3757         avoid spurious valgrind warnings from XSendEvent() 
3758         calls.  (#392532)
3759
3760         * modules/printbackends/cups/gtkprintbackendcups.c: Close
3761         the http connection after getting the PPD.
3762
3763         * gtk/gtkprinteroptionwidget.c (filesave_changed_cb):
3764         Fix memory leaks.  
3765
3766 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3767
3768         * gtk/gtkassistant.c (remove_page): If the current page
3769         is removed, always pick a different one.  (#392457, 
3770         Colin Watson)
3771
3772 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3773
3774         * modules/printbackend/cups/*.c: Coding style cleanups.
3775
3776 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3777
3778         * configure.in: Export SED to make sourcing of
3779         libtool work. Tighten up the directfb pkgconfig check.
3780
3781 2007-01-03  Michael Natterer  <mitch@imendio.com>
3782
3783         * gtk/gtkstyle.c (option_menu_get_props)
3784         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use 
3785         gtk_border_free when freeing borders.
3786
3787 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3788
3789         * gtk/gtkentry.c (get_text_area_size): Work when the
3790         entry is not realized.  (#392315, Yevgen Muntyan)
3791
3792         * gtk/gtkentry.c (gtk_entry_queue_draw): Use 
3793         GTK_WIDGET_DRAWABLE() here.  (#392227, Chris Wilson)
3794
3795         * gtk/gtkentry.c (cursor_blinks): Don't get settings
3796         unnecessarily.  (#392227)
3797
3798 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3799
3800         * gtk/gtkwindow.c (gtk_window_move_resize): Only process
3801         updates on the window at hand, not on all windows, to
3802         avoid violating resize/redraw ordering constraints.
3803         (#362406, Owen Taylor)
3804         
3805 2007-01-03  Kristian Rietveld  <kris@gtk.org>
3806
3807         * gtk/gtkcellrendererprogress.c
3808         (gtk_cell_renderer_progress_class_init): fix docs.
3809
3810 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3811         
3812         * gtk/updateiconcache.c: Include locale.h
3813
3814 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3815
3816         * gtk/updateiconcache.c (main): Call setlocale().
3817
3818         * gtk/gtkfilesel.c:
3819         * gtk/gtkfilesystemunix.c:
3820         * gtk/gtkfilesystemwin32.c:
3821         * gtk/gtkfilechoosersettings.c:
3822         * gtk/updateiconcache.c: Consistently use folder instead of
3823         directory in translated messages.  (#344584, Javier F. Serrador)
3824
3825 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3826
3827         Try to fix #315732, reported by Luke Hutchinson:
3828
3829         * gdk/x11/xsettings-client.[hc]:
3830         * gdk/x11/gdkdevents-x11.c: Don't assume that ref'ing a GdkWindow
3831         will guarantee that it can be looked up in the xid hash later.
3832         Also, use the nesting server grab function during the xsettings
3833         client initialization. Finally, make xsettings client not
3834         eat DestroyNotifys so that GDK can do its regular cleanup. 
3835
3836 2007-01-02  Michael Natterer  <mitch@imendio.com>
3837
3838         * gtk/gtkrange.c (gtk_range_scroll) (gtk_range_move_slider): beep
3839         when a keybinding didn't change adjustment->value.
3840
3841 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3842
3843         * gtk/gtktextbuffer.c (gtk_text_view_key_press_event):
3844         Try harder not to beep on events which are not meant to
3845         insert stuff in the buffer.  (#390514, Yevgen Muntyan) 
3846
3847 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3848
3849         * gtk/gtktextbufferrichtext.c: Small documentation fixes.
3850
3851 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3852
3853         * gtk/gtkentry.c (get_text_area_size): Center in the frame.  
3854         (#304482, Rob Staudinger, patch by  Richard Stellingwerff)
3855
3856 2007-01-02  Michael Emmel  <mike.emmel@gmail.com>
3857
3858         * gdkwindow-directfb.c: fixed leak of dfb resource on destroy 
3859
3860 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3861
3862         * gtk/gtkscrolledwindow.h:
3863         * gtk/gtkscrolledwindow.c: Only handle key bindings
3864         for scrolling if the scrollbars are visible.
3865         (#340135, Christian Persch)
3866
3867 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3868
3869         * gtk/gtktextview.c (gtk_text_view_scroll_hpages):
3870         Don't segfault on horizontal scrolling.  
3871
3872 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3873
3874         * gtk/gtknotebook.h:
3875         * gtk/gtknotebook.c: Only handle key bindings for
3876         tab reordering if the tabs are shown and reorderable. 
3877         (#390468, Yevgen Muntyan)
3878
3879         * gtk/gtkmarshalers.list: Add required marshaler
3880
3881 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3882
3883         * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
3884         Mention in the docs that the return value is
3885         NULL-terminated.  (#383373, Christian Neumair)
3886
3887 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3888
3889         * gtk/gtkicontheme.c (load_themes): Waste less time
3890         with non-directories.  (#391725, Chris Wilson)
3891
3892 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3893
3894         * gtk/gtkcellrendererprogress.c: Implement activity mode
3895         for GtkCellRendererProgress.  (#377851, Brad Taylor)
3896
3897 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3898
3899         Fix some IPP compliance issues.  (#391523, Albrecht Dress)
3900
3901         * modules/printbackends/cups/gtkcupsutils.c
3902         (gtk_cups_request_encode_option): Use IPP_TAG_JOB, not
3903         IPP_TAG_OPERATION.
3904         * modules/printbackends/cups/gtkprintbackendcups.c
3905         (gtk_print_backend_cups_print_stream): Don't add the
3906         requesting-user-name attribute a second time. 
3907
3908 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3909
3910         * gtk/gtkimcontextsimple.c: Fix en/em dash confusion.  (#378462)
3911
3912 2006-12-31  Emmanuele Bassi  <ebassi@gnome.org>
3913
3914         * gtk/gtkrecentchoosermenu.c (set_recent_manager): Use the
3915         right object when disconnecting from the GtkRecentManager::changed
3916         signal; save us a few indirections using a variable.
3917
3918 2006-12-31  Emmanuele Bassi  <ebassi@gnome.org>
3919
3920         * gtk/gtkrecentchoosermenu.c: Move the signal and idle
3921         disconnections into the dispose function, as well as the
3922         object unrefs; reset every handler id and the
3923         pointers. (suggested by Paolo Borelli, #390873)
3924
3925 2006-12-31  Matthias Clasen  <mclasen@redhat.com>
3926
3927         * gtk/gtkprintoperation-win32.c: Include windows.h (#391229,
3928         Kazuki Iwamoto)
3929
3930 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3931
3932         * gtk/gtktextview.c (gtk_text_view_destroy): Remove the
3933         scroll timeout.  (#390872, Yevgen Muntyan)
3934
3935 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3936
3937         * gtk/gtkprintoperation-unix.c:
3938         * gtk/gtkprintbackend.c:
3939         * gtk/gtkfilechooserdefault.c:
3940         * gtk/gtksettings.c: Move a few settings to gtksettings.c
3941         to make sure they show up in the docs.  (#365364, Christian
3942         Persch)
3943
3944 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3945
3946         * gtk/gtkassistant.c: Redraw assistant on reallocate
3947         to avoid rendering glitches.  (#343956, Christian
3948         Persch, Carlos Garnacho)
3949
3950 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3951
3952         * gtk/gtkrange.c: Typo fix.  (#352121, Clytie Siddall)
3953
3954 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3955
3956         * gtk/gtkaction.c: Improve the docs of the "label" 
3957         property.  (#341730, Kristof Vansant)
3958
3959 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3960
3961         * gtk/gtkwindow.c (gtk_window_compute_configure_request_size):
3962         Correctly handle min size. (#320465, Philipp Langdale)
3963
3964 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3965
3966         * gtk/prop-editor.c: Implement editing of flags.
3967
3968 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3969
3970         * gtk/gtkentry.c:
3971         * gtk/gtklabel.c:
3972         * gtk/gtkpaned.c:
3973         * gtk/gtkstatusbar.c:
3974         * gtk/gtktextview.c: Don't install cursors on insensitive
3975         widgets.  (#358864, Jan Schampera)
3976
3977 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
3978
3979         * gtk/gtkrecentmanager.h:
3980         * gtk/gtkprintoperation.c: Fix doc typos.  (#370909,
3981         Shiino Yuki)
3982
3983         * gtk/gtkstyle.c (gtk_style_attach): Clarify docs.  (#353423,
3984         Christian Persch)
3985
3986         * gtk/gtkentry.c (blink_cb):
3987         * gtk/gtktextview.c (blink_cb): Don't die in an assertion
3988         if focus went missing. Just warn, clean up and continue.
3989         (#374378)
3990
3991 2006-12-29  Carlos Garnacho  <carlosg@gnome.org>
3992
3993         * gtk/gtknotebook.c (gtk_notebook_scroll): return if the widget that
3994         originally received the event is a notebook page. (#315440, reported
3995         by Mateusz Stefek)
3996
3997 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
3998
3999         * gdk/gdkcolor.c (gdk_color_hash): Fix a typo. (#390613,
4000         Paolo Borelli)
4001
4002 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
4003
4004         * tests/prop-editor.c: Display children of containers
4005         and cell renderers of cell layouts.
4006
4007         * gtk/gtk.symbols:
4008         * gtk/gtkcelllayout.[hc] (gtk_cell_layout_get_cells):
4009         New function to get the cell renderers of a cell layout.
4010
4011         * gtk/gtktreeviewcolumn.c:
4012         * gtk/gtkcellview.c:
4013         * gtk/gtkiconview.c: Implement get_cells.
4014
4015 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
4016
4017         * gtk/gtkiconview.c: Use word wrapping by default, and
4018         center multiline labels.  (#318763, Ross Burton)
4019
4020         * gtk/gtkcellrenderertext.c (get_layout): Remove a special
4021         case for single-line layouts.
4022
4023 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
4024
4025         * gtk/gtkarrow.c: Fix a typo in the docs.  (#390423,
4026         David Lodge)
4027
4028         * gtk/gtkuimanager.c (update_node): Only use the results
4029         of find_menu/toolbar_position() if they succeed. May fix
4030         bug #388041.
4031
4032 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
4033
4034         * gdk/gdk.c: Fix some formatting errors in docs.  
4035
4036 2006-12-28  Tor Lillqvist  <tml@novell.com>
4037
4038         * gtk/gtkstatusicon.c (gtk_status_icon_finalize)
4039         (gtk_status_icon_update_image): Don't leak HICONs on
4040         Win32. (#364868, Hiroyuki Yamamoto)
4041
4042 2006-12-28  Carlos Garnacho  <carlosg@gnome.org>
4043
4044         Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
4045
4046         * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
4047         * gtk/gtkmarshalers.list: add new marshaler definition.
4048         * gtk/gtkenums.h: add GtkDragResult enum.
4049
4050         * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
4051         operation wasn't successful.
4052         (_gtk_drag_source_handle_event) (gtk_drag_drop)
4053         (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
4054         (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
4055         (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
4056         gtk_drag_drop_finished() the operation result.
4057
4058         * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
4059         (gtk_notebook_drag_data_get): do not call window creation hook here.
4060         (gtk_notebook_init): do not set "application/x-rootwindow-drop"
4061         target, instead connect to "drag-failed".
4062         (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
4063
4064 2006-12-28  Mikael Hallendal  <micke@imendio.com>
4065
4066         * gdk/quartz/gdkevents-quartz.c: Factored out the event loop 
4067         integration into gdkeventloop-quartz.c.
4068
4069         * gdk/quartz/Makefile.am: Added gdkeventloop-quartz.c
4070
4071         * gdk/quartz/gdkeventloop-quartz.c: New file containing the event loop 
4072         integration.
4073
4074 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
4075
4076         * modules/printbackends/lpr/gtkprintbackendlpr.c 
4077         (gtk_print_backend_lpr_print_stream): Close the io channel
4078         on unref.  (#390159, Joe Markus Clarke)
4079
4080 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
4081
4082         * gdk/gdk.h: Remove redundant declarations (#390097,
4083         Christian Persch)
4084
4085 2006-12-27  Kristian Rietveld  <kris@gtk.org>
4086
4087         Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).
4088
4089         * gtk/gtksettings.c (gtk_settings_class_init): add new setting
4090         gtk-alternative-sort-arrows.
4091
4092         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add
4093         new setting.
4094
4095         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new
4096         gtk-alternative-sort-arrows setting to true.
4097
4098         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
4099         invert direction if gtk-alternative-sort-arrows is TRUE.
4100
4101 2006-12-27  Tor Lillqvist  <tml@novell.com>
4102
4103         * gtk/gtk.symbols: Add gtk_status_icon_get_screen and
4104         gtk_status_icon_set_screen.
4105
4106         * gtk/gtkstatusicon.c: Implement gtk_status_icon_position_menu()
4107         on Windows. Keep track of where the last button click on the
4108         taskbar icon took place, and return that. Obviously not correct if
4109         no button has ever been clicked on the icon, or if the geometry of
4110         the taskbar has changed since. But for most use cases where a menu
4111         is going to be displayed as a direct result of a button click on
4112         the status icon, works fine. (#377349)
4113
4114         Implement getting the orientation property on Windows.
4115
4116         (gtk_status_icon_embedded_changed)
4117         (gtk_status_icon_orientation_changed): Ifdefify these functions
4118         that are used only on X11.
4119
4120 2006-12-27  Tor Lillqvist  <tml@novell.com>
4121
4122         * gtk/gtkfilesystemwin32.c (execute_callbacks): Fix
4123         typo. (#390035, Kazuki Iwamoto)
4124
4125 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
4126
4127         * gtk/gtkcellview.c (gtk_cell_view_set_model): Accept NULL.
4128
4129         * gtk/gtkcombobox.c (gtk_combo_box_set_model):
4130         (gtk_combo_box_unset_model): Handle repeated unsetting
4131         of models without warnings.  (#367529, Robert Ancell)
4132
4133 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
4134
4135         * modules/printbackends/cups/gtkcupsutils.c: 
4136         * modules/printbackends/cups/gtkprintbackendcups.c: Use
4137         getters for http fields where available.  (#364866, 
4138         Björn Lindqvist)
4139
4140 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
4141
4142         * gtk/gtkwidget.c (gtk_widget_show): Add a g_return_if_fail.
4143         (#362614, Xan Lopez)
4144
4145 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
4146
4147         * gtk/gtkuimanager.c (update_node): If a required action
4148         is missing, don't recurse over the children.  (#349119,
4149         Chris Moller)
4150
4151 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
4152
4153         Fix a few problems with nested menus in comboboxes
4154         (#386694, Yevgen Muntyan)
4155
4156         * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Always
4157         connect the activate callback.
4158         (gtk_combo_box_menu_item_activate): Do nothing if called on
4159         an item with a submenu.
4160         (gtk_combo_box_menu_row_deleted): Remove a submenu when it
4161         is empty.
4162
4163 2006-12-26  Mariano Suárez-Alvarez  <mariano@gnome.org>
4164
4165         * gtk/gtkfilechooserbuuton.[hc]: Add a file-set signal to the
4166         filechooser button. Bug 353196.
4167
4168 2006-12-26  Kristian Rietveld  <kris@gtk.org>
4169
4170         * gtk/gtktreeview.c (gtk_tree_view_search_init): fix typo causing
4171         the search dialog timeout never to be refreshed. (#389581,
4172         Andrzej Szombierski).
4173
4174 2006-12-26  Kristian Rietveld  <kris@gtk.org>
4175
4176         Lots of scrolling fixes.  Made scrolling work properly in not fully
4177         validated tree views; fixed a bunch of corner cases.
4178
4179         * gtk/gtktreeview.c (validate_visible_area): if a row's dy is past
4180         upper - page_size, we know it is located at the end so the test for
4181         dy + height has been dropped.
4182         In the same case if area_below < 0, we know this is the last node
4183         in the tree view so area_above is page_size - height of this row.
4184         (validate_visible_area): got rid of subtracting new_height -
4185         old_height from area_{below,above}, it didn't make any sense at
4186         all and the full height of the row should be subtracted instead.
4187         (validate_visible_area): when scrolling to a given path, set the
4188         top row directly together with the dy offset, then sync that top_row
4189         to the dy.
4190         (gtk_tree_view_set_top_row): new function to directly set a top_row.
4191         (gtk_tree_view_dy_to_top_row): refactored to use
4192         gtk_tree_view_set_top_row().
4193         (gtk_tree_view_top_row_to_dy): make sure dy >= 0 when done.
4194         (gtk_tree_view_adjustment_changed): only update our dy and
4195         top_row if the adjustment's dy actually changed.
4196
4197 2006-12-26  Christian Persch  <chpe@cvs.gnome.org>
4198
4199         * gtk/gtknotebook.c: (gtk_notebook_real_insert_page):
4200         Return the correct value from gtk_notebook_insert_page if the
4201         page-added handler reorders the tabs. Bug #345094.
4202
4203 2006-12-26  Carlos Garnacho  <carlosg@gnome.org>
4204
4205         Fix small regressions in GtkNotebook tab detaching. Bug #378852.
4206
4207         * gtk/gtknotebook.c (gtk_notebook_do_arrow): grab focus to allow tabs
4208         scrolling when hovering with a detached tab.
4209         (gtk_notebook_stop_reorder): Do not deparent the wrong tab if the
4210         focus tab has changed during a tab DND operation.
4211         (gtk_notebook_drag_end): ensure that the dropped tab gets focused.
4212         (gtk_notebook_paint): do not take cur_page as a reference to paint the
4213         box if it's detached.
4214         (gtk_notebook_calculate_tabs_allocation): focus_tab may be different
4215         to the detached tab if we hover the arrows during a tabs detaching 
4216         operation, do not allocate it unconditionally in 0,0.
4217
4218 2006-12-26  Carlos Garnacho  <carlosg@gnome.org>
4219
4220         Expose improvements for GtkNotebook. Bug #383435
4221
4222         * gtk/gtknotebook.c (gtk_notebook_expose): propagate the event to tab
4223         labels.
4224         (gtk_notebook_draw_focus): do not repaint the whole focused tab again.
4225         (gtk_notebook_draw_tab): do not send handmade expose events to tab
4226         labels.
4227
4228 2006-12-26  Matthias Clasen  <mclasen@redhat.com>
4229
4230         * gtk/gtkfilesystemunix.c (execute_callbacks): Return
4231         FALSE.  (#389623, Carlos Garnacho Parro)
4232
4233         * gtk/gtkrange.c (stop_scrolling): Avoid spurious
4234         redraws.
4235
4236 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
4237
4238         * gtk/gtkplug.c: (gtk_plug_construct_for_display),
4239         (gtk_plug_unrealize): Notify the "embedded" property also on
4240         normal construction and when destroying the socket window.
4241         Bug #388738.
4242
4243 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
4244
4245         * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init),
4246         (gtk_about_dialog_init), (display_credits_dialog),
4247         (display_license_dialog):
4248         * gtk/gtkfilechooserdialog.c: (gtk_file_chooser_dialog_class_init),
4249         (gtk_file_chooser_dialog_init),
4250         (gtk_file_chooser_dialog_constructor),
4251         (gtk_file_chooser_dialog_unmap):
4252         * gtk/gtkrecentchooserdefault.c:
4253         (_gtk_recent_chooser_default_init):
4254         * gtk/gtkrecentchooserdialog.c:
4255         (gtk_recent_chooser_dialog_class_init),
4256         (gtk_recent_chooser_dialog_init),
4257         (gtk_recent_chooser_dialog_constructor),
4258         (gtk_recent_chooser_dialog_unmap): Set the HIG spacings directly
4259         instead of using style-set handlers. Fix the filechooser's spacing
4260         between content and action area to 12px. Bug #372447.
4261
4262 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
4263
4264         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate):
4265         Don't assume statusbar->label is the statusbar's frame's child when
4266         shrinking the size allocation when the grip is shown. Bug #372452.
4267
4268 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
4269
4270         * gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
4271         (add_custom_paper): Fix mem leaks. Bug #389194.
4272
4273 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
4274
4275         * gtk/gtktextutil.c: Remove debug output.
4276
4277         * gtk/gtktextview.c: Improve the DND scrolling
4278         behaviour.  (#92387, Carlos Garnacho Parro)
4279
4280         * gtk/gtkaccellabel.c: Improve translators comments.  
4281         (#389298, Christian Persch)
4282
4283 2006-12-24  Bastien Nocera  <hadess@hadess.net>
4284
4285         * gtk/gtkrecentmanager.c: Fix typo (s/expansive/expensive)
4286         (#389183)
4287
4288 2006-12-24  Christian Persch  <chpe@cvs.gnome.org>
4289
4290         * docs/reference/gtk/gtk-sections.txt:
4291         * gtk/gtk.symbols:
4292         * gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer):
4293         * gtk/gtkprinter-private.h:
4294         * gtk/gtkprinter.c: (gtk_printer_list_papers):
4295         * gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
4296
4297 2006-12-24  Carlos Garcia Campos  <carlosgc@gnome.org>
4298
4299         * gtk/gtkpagesetupunixdialog.c: Don't ignore reverse portrait option
4300         when is selected in page setup dialog. Fixes bug #365047.
4301
4302 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
4303
4304         * gtk/gtkentry.c (_gtk_entry_effective_inner_border):
4305         Use gtk_border_free when freeing border.
4306
4307 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
4308
4309         * gtk/gtkentry.c (gtk_entry_button_press): When
4310         shift-clicking, keep the larger part of the selection
4311         selected.  (#353709, Benjamin Otte)
4312
4313         * gtk/gtkbutton.c (gtk_button_get_props): Use 
4314         gtk_border_free when freeing borders.
4315
4316         * gtk/gtkbutton.c (gtk_button_grab_notify): Be more
4317         careful when faking a button release.  (#323146,
4318         Travis Abbott)
4319
4320         * gtk/gtkhandlebox.c (draw_textured_frame): Draw the
4321         handle with the right orientation, depending on the
4322         position of the handlebox.  (#159764, Benjamin Berg)
4323
4324 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
4325
4326         * gtk/gtkstyle.c (gtk_border_copy), (gtk_border_free): Use gslice for
4327         GtkBorder (#383557).
4328
4329 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
4330
4331         Bug 340141 – Update to Pango 1.16 API
4332
4333         * gdk/gdkpango.c (layout_iter_get_line_clip_region),
4334         (gdk_pango_layout_line_get_clip_region):
4335         * gtk/gtkcalendar.c (gtk_calendar_size_request):
4336         * gtk/gtkentry.c (gtk_entry_get_pixel_ranges),
4337         (get_layout_position), (gtk_entry_find_position),
4338         (gtk_entry_adjust_scroll):
4339         * gtk/gtkiconview.c (get_pango_text_offsets):
4340         * gtk/gtklabel.c (get_cursor_direction):
4341         * gtk/gtkstyle.c (get_insensitive_layout):
4342         * gtk/gtktextdisplay.c (render_para):
4343         * gtk/gtktextlayout.c (allocate_child_widgets),
4344         (find_display_line_below), (find_display_line_above),
4345         (gtk_text_layout_move_iter_to_previous_line),
4346         (gtk_text_layout_move_iter_to_next_line),
4347         (gtk_text_layout_move_iter_to_line_end),
4348         (gtk_text_layout_iter_starts_line),
4349         (gtk_text_layout_move_iter_to_x):
4350         * gtk/gtktextutil.c (limit_layout_lines):
4351         Use the _readonly version of pango_layout_iter_get_line(),
4352         pango_layout_iter_get_run(), pango_layout_get_line(), and
4353         pango_layout_get_lines().
4354
4355         * gtk/gtkmain.c (gtk_get_default_language): Use
4356         pango_get_default_language().
4357
4358 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
4359
4360         * gtk/gtkentry.c (gtk_entry_set_text): Emit changed
4361         and notify:text only once. The same fix was applied
4362         for replacing the selection via DND or copy-and-paste.
4363         (#64998, Damon Chaplin, Sven Herzberg)
4364
4365 2006-12-23  Matthias Clasen  <mclasen@redhat.com>
4366
4367         * gtk/gtkimmulticontext.c: Be careful to not override
4368         GTK+ translations with the translations of the input
4369         method.  (#317080, Tor Lillqvist)
4370
4371         * modules/input/imcedilla.c: Use standard macros
4372         for translation domain and locale dir.
4373
4374         * gtk/gtkimcontextsimple.c: Allow composing l with 
4375         stroke.  (#349638, Daniel Lublin)
4376
4377         * gtk/gen-paper-names.c: Fix a thinko in the suffix
4378         calculation.  (#382369, Christian Persch)
4379
4380         * gtk/paper_names_offsets.c: Regenerated.
4381
4382 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
4383
4384         * modules/engines/pixbuf/pixbuf.h:
4385         * modules/engines/pixbuf/pixbuf-rc-style.h:
4386         * modules/engines/pixbuf/pixbuf-style.h: Move 
4387         G_GNUC_INTERNAL before function declarations.  (#352276,
4388         Damien Carbery)
4389
4390 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
4391
4392         * demos/gtk-demo/*.c: Fix some leaks.  (#348108, Chris
4393         Wilson)
4394
4395 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
4396
4397         * *.c: Replace a lot of idle and timeout calls by
4398         the new gdk_threads api. 
4399
4400         * gdk/gdk.symbols:
4401         * gdk/gdk.h:
4402         * gdk/gdk.c: Add functions to allow threadsafe handling
4403         of idles and timeouts wrt. to the GDK lock.  (#321886,
4404         Chris Wilson)
4405         
4406 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
4407         
4408         * gdk/gdkpango.c: Use pango_cairo_show_error_underline.  
4409         (#340141, Behdad Esfahbod)
4410
4411         * configure.in: Check for getc_unlocked.
4412
4413         * gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
4414         unavailable.   (#381499)
4415
4416         * tests/teststatusicon.c: Fix a typo
4417
4418 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
4419
4420         Make it possible to track the embeddedness of
4421         statusicon (#387215, Martyn Russell, patch by Christian
4422         Persch)
4423
4424         * gtk/gtkstatusicon.c: Add orientation and embedded properties.
4425         * gtk/gtkplug.c: 
4426         * gtk/gtkplug-x11.c: Add an embedded property.
4427         * tests/teststatusicon.c: Test the new properties.
4428
4429         * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't
4430         leak draw_border.  (#387170, Kjartan Maraas)
4431
4432 2006-12-21  Matthias Clasen  <mclasen@redhat.com>
4433
4434          * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_set_delegate()):
4435         Typo fix.  (#388123, Murray Cumming)
4436         
4437         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
4438         Generate double-click events.  (#380421, Tommi Komulainen)
4439
4440         * gdk/x1/gdkinput-xfree.c (_gdk_input_configure_event):
4441         (_gdk_input_enter_event): Correct return_if_fail checks.
4442         (#379803, Tommi Komulainen)
4443
4444         * gdk/gdkdisplay.c: Improve the docs of some functions operating
4445         on the default display.  (##353438, Mariano Suárez-Alvarez)
4446
4447 2006-12-21  Matthew Barnes  <mbarnes@redhat.com>
4448
4449         * docs/reference/gdk/gdk-sections.txt:
4450         * gdk/gdkcolor.[ch] (gdk_color_to_string): Add a function for
4451         converting a GdkColor to a string (#373856).
4452
4453         * configure.in: Bump pango requirement to 1.15.2.
4454
4455 2006-12-20  Matthias Clasen  <mclasen@redhat.com>
4456         
4457         * gdk/keynames.txt: Mark arrow keys as translatable.  (#369506,
4458         Bastian Nocera)
4459
4460         * gdk/keyname-table.h: Regenerated
4461
4462         * gtk/gtktextbuffer.c: Add signal documentation.  (#317064,
4463         Søren Wedel Nielsen)
4464
4465         * gtk/gtktextview.c (gtk_text_view_start_selection_drag):
4466         Silently return if a drag is already in progress, rather
4467         than asserting.  (#335622, Li Yuan, testcase by Erwann Chenede)
4468
4469         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog):
4470         Allow any GtkDialog that implements GtkFileChooser as
4471         dialog.  (#335473, Tommi Komulainen)
4472
4473 2006-12-20  Mikael Hallendal  <micke@imendio.com>
4474
4475         * gtk/gtkstatusicon.c: (gtk_status_icon_init): Fixed a last minute
4476         change in the quartz backend.
4477
4478 2006-12-20  Mikael Hallendal  <micke@imendio.com>
4479
4480         * gtk/Makefile.am: Added gtkstatusicon-quartz.c
4481         * gtk/gtkstatusicon-quartz.c: Implements the quartz backend for the
4482         status icon.
4483         * gtk/gtkstatusicon.c: Hooked in the new quartz backend. Bug #387874.
4484
4485 2006-12-19  Matthias Clasen  <mclasen@redhat.com>
4486
4487         * gtk/gtkprintunixdialog.c: Add a tooltip explaining the
4488         format of page ranges, and improve the page sequence icon
4489         for the case of n_copies == 1.
4490  
4491 2006-12-19  Mikael Hallendal  <micke@imendio.com>
4492
4493         * gdk/quartz/gdkcursor-quartz.c: Splitted out the GdkPixbuf to NSImage
4494         routine so that it can be used from libgtk as well (needed for
4495         upcoming GtkStatusIcon support in the Quartz port).
4496         * gdk/quartz/gdkevents-quartz.c: Don't assume that all NSWindows are
4497         created from GDK, this is not true for the status icon.
4498         * gdk/quartz/gdkprivate-quartz.h:
4499         * gdk/quartz/gdkquartz.h: Added 
4500         gdk_quartz_pixbuf_to_ns_image_libgtk_only so that it is available to 
4501         the status icon code.
4502
4503 2006-12-16  Tristan Van Berkom <tvb@gnome.org>
4504
4505         * gtk/gtkmessagedialog.c: Added return_if_fail (image) to
4506         gtk_message_dialog_set_image ()
4507
4508         * gtk/gtkscrolledwindow.c: Fixed a bug in set_property()
4509         (setting "window-placement-set" could result in a crash because
4510         of boolean/enum mixup)
4511
4512 2006-12-15  Federico Mena Quintero  <federico@novell.com>
4513
4514         Merged from gtk-2-10:
4515
4516         * gtk/gtkmenu.c (gtk_menu_set_title): Don't try to optimize for
4517         the case where the new title is the same as the old title, to
4518         preserve the behavior from GTK+ 2.8 (NULL and "" titles are not
4519         equivalent).  Handle the case where title == priv->title.  This
4520         was found by the LSB compatibility tests:
4521         https://bugzilla.novell.com/show_bug.cgi?id=223882
4522
4523 2006-12-15  Dom Lachowicz <domlachowicz@gmail.com>
4524
4525         * gtk/gtkcombobox.c: Make GtkComboBox in "appears-as-list" mode
4526         more closely resemble its Win32 counterpart. Bug #340204.
4527
4528 2006-12-14  Carlos Garnacho  <carlosg@gnome.org>
4529
4530         * gtk/gtkcalendar.c: draw arrows pointing to the right correctly
4531         placed inside their GdkWindow. Bug #385672.
4532
4533 2006-12-14  Christian Persch  <chpe@cvs.gnome.org>
4534
4535         * gtk/gtkiconview.c: Fix docs typo. Bug #385642.
4536
4537 2006-12-13  Dom Lachowicz <domlachowicz@gmail.com>
4538
4539         * src/modules/engines/ms-windows/msw_style.c: Bug 351679 - Notebooks 
4540         drawn with extra line below tab in MS-Windows theme. Patch by 
4541         Cody Russell
4542         
4543 2006-12-13  Matthias Clasen  <mclasen@redhat.com>
4544
4545         * gtk/Makefile.am: Add --unlink-tempfile to the evince call
4546         for print preview.  (#370041, Ghee Teo)
4547
4548 2006-12-11  Matthias Clasen  <mclasen@redhat.com>
4549
4550         * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): Be more
4551         careful when overdrawing antialiased text.  (#352435, Alex Jones,
4552         patch by Benjamin Otte)
4553
4554         * gtk/gtksettings.c: Change the way in which color scheme information
4555         is merged to correctly handle vanishing colors.  (#374420, 
4556         Benjamin Berg, patch by Callum McKenzie) 
4557         Also allow to separate entries in color schemes by ';' 
4558         instead of newline.  
4559
4560 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
4561
4562         * modules/printbackends/cups/gtkcupsutils.c (gtk_cups_request_encode_option): 
4563         Properly pass multi-value options to cups.  (#355350, Jürg Billeter) 
4564
4565 2006-12-10  Kristian Rietveld  <kris@gtk.org>
4566
4567         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event):
4568         cancel editing (ie. don't accept changes) when the entry loses
4569         focus. (Fixes #164494, reported by Chris Rouch).
4570
4571 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
4572
4573         * configure.in: Correct a misapplied patch. 
4574
4575 2006-12-10  Tor Lillqvist  <tml@novell.com>
4576
4577         * gtk-zip.sh.in: Put gdk-pixbuf-query-loaders.exe and
4578         gtk-query-immodules-2.0.exe in the runtime zipfile instead of
4579         developer zipfile. Users might add pixbuf loaders or immodules
4580         even if they are not interested in developing gtk+-using software.
4581
4582 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
4583
4584         * configure.in: Check for crt_extern.h and _NSGetEnviron.
4585         * gdk/x11/gdkspawn-x11.c: Fix compilation on Darwin where
4586         environ is not available.  (#384168, Min Sik Kim)
4587
4588 2006-12-07  Paolo Maggi  <paolo@gnome.org>
4589
4590         Fixes bug #383407
4591         
4592         * gtk/gtkentry.c (gtk_entry_set_text): check for
4593         completion->priv->changed_id > 0 before calling 
4594         g_signal_handler_[un]block.
4595         (gtk_entry_completion_key_press): does not block/unblock the "changed"
4596         signal before calling gtk_entry_set_text.
4597         
4598 2006-12-07  Carlos Garnacho  <carlosg@gnome.org>
4599
4600         * gtk/gtkcellrendererprogress (compute_dimensions): do not use
4601         xthickness/ythickness, they aren't used any longer for drawing.
4602
4603 2006-12-07  Matthias Clasen  <mclasen@redhat.com>
4604
4605         * gtk/gtkrc.c (_gtk_rc_init): Fix clipping of accelerator
4606         underlines by giving labels a small draw-border.
4607
4608 2006-12-06  Kristian Rietveld  <kris@gtk.org>
4609
4610         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render):
4611         draw progress bar through theme engine instead of using our own
4612         custom cairo drawing code (#377244, patch from Carlos Garnacho).
4613
4614 2006-12-06  Matthias Clasen  <mclasen@redhat.com>
4615
4616         * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities):
4617         Update the sensitivity of the collate checkbutton more frequently,
4618         proposed by Tim Waugh.
4619
4620 2006-12-04  Matthias Clasen  <mclasen@redhat.com>
4621
4622         * gtk/gtkmessagedialog.c (setup_type): Set a11y name and role
4623         since we no longer set window titles.
4624
4625 2006-12-04  Christian Persch  <chpe@cvs.gnome.org>
4626
4627         * gtk/gtkpagesetup.c: (gtk_page_setup_get_paper_size),
4628         (gtk_page_setup_set_paper_size): Don't leak the old page size when
4629         setting a new one. Bug #382314.
4630
4631 2006-12-03  Michael Natterer  <mitch@gimp.org>
4632
4633         * gtk/gtktextview.c: remove FIXME #include that is no longer needed.
4634
4635 2006-12-03  Kristian Rietveld  <kris@gtk.org>
4636
4637         Make sure [xy]_offset are always being initialized, fix pixbuf
4638         renderer padding.  (#108235, Sven Neumann).
4639
4640         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size),
4641         (gtk_cell_renderer_pixbuf_render): add padding in _render instead
4642         of _get_size.
4643
4644         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
4645         always initialize [xy]_offset.
4646         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto.
4647         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4648         ditto.
4649
4650 2006-12-03  Kristian Rietveld  <kris@gtk.org>
4651
4652         * gtk/gtktreeview.c (validate_visible_area): when not using an
4653         explicit alignment, use the full area of the row (not just dy)
4654         to determine how to implicitly align it.  (Fixes #363191, reported
4655         by Federico Mena Quintero).
4656
4657 2006-12-02  Matthias Clasen  <mclasen@redhat.com>
4658
4659         * gtk/gtkicontheme.c (insert_theme): Properly clean up
4660         if an icon theme index file has no directories.  (#381236)
4661
4662 2006-12-02  Dom Lachowicz <domlachowicz@gmail.com>
4663
4664         * src/modules/engines/ms-windows/msw_style.c: Bug 351678 - Notebooks 
4665         not with PositionType.Top drawn incorrectly. Patch by Cody Russell
4666         
4667 2006-11-28  Behdad Esfahbod  <behdad@gnome.org>
4668
4669         Remove the broken Thai input method and add a functional Thai and Lao
4670         input method by Theppitak Karoonboonyanan. (#81031)
4671
4672         * modules/input/imthai.c:
4673         * modules/input/gtkimcontextthai.c:
4674         * modules/input/gtkimcontextthai.h:
4675         * modules/input/thai-charprop.c:
4676         * modules/input/thai-charprop.h:
4677         Added.
4678
4679         * modules/input/imthai-broken.c:
4680         Removed.
4681         
4682         * modules/input/Makefile.am:
4683         Updated.
4684
4685 2006-11-27  Christian Persch  <chpe@cvs.gnome.org>
4686
4687         * gtk/gtkstatusicon.c: Notify when the screen changes. Bug #379793.
4688
4689 Mon Nov 27 12:27:06 2006  Tim Janik  <timj@imendio.com>
4690
4691         * gtk/gtktextview.c: applied patch by  Colin Leroy for
4692         Control+GDK_KP_Left to move one word to the left, #356255.
4693
4694 2006-11-26  Benjamin Berg  <benjamin@sipsolutions.net>
4695
4696         * gtk/gtkstyle.c: (gtk_default_draw_flat_box): Protect against NULL
4697           widget. (#379503)
4698
4699 2006-11-25  Matthias Clasen  <mclasen@redhat.com>
4700
4701         * modules/printbackends/cups/gtkprintbackendcups.c: Make
4702         print dialog work when 'BrowseShortNames Off' is specified
4703         in cups configuration. Patch by Tim Waugh.
4704
4705 2006-11-24  Michael Natterer  <mitch@imendio.com>
4706
4707         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): if we
4708         can't go up/down, consult gtk_widget_keynav_failed() and leave the
4709         widget if it returns FALSE (bug #322640).
4710
4711 2006-11-23  Behdad Esfahbod  <behdad@gnome.org>
4712
4713         * gtk/gtkmain.c: Fix minor typo in docs. (#378632, Hannes Mueller)
4714
4715 2006-11-22  Emmanuele Bassi  <ebassi@gnome.org>
4716
4717         * gtk/gtkrecentmanager.c:
4718         (get_uri_shortname_for_display): g_filename_from_uri() might
4719         fail; catch the failure and fall back to the non-local URI
4720         case. (#363437)
4721
4722 2006-11-19  Mark McLoughlin  <mark@skynet.ie>
4723
4724         Fixes bug #376502 - multi-screen support for GtkStatusIcon
4725
4726         * gtk/gtkstatusicon.[ch]:
4727         (gtk_status_icon_set_screen),
4728         (gtk_status_icon_get_screen): add multi-screen API. Allows
4729         an app to display an icon on a non-default screen
4730         (gtk_status_icon_class_init),
4731         (gtk_status_icon_set_property),
4732         (gtk_status_icon_get_property): add a "screen" property
4733         
4734         * tests/teststatusicon.c: update to test on multiple screens
4735
4736 2006-11-17  Matthias Clasen  <mclasen@redhat.com>
4737
4738         Fix problems with drag cancellation. (#376535, Michael Natterer)
4739         
4740         * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Disconnect signal
4741         handlers before emitting drag-end.
4742         (gtk_drag_end): Disconnect signal handlers before removing
4743         the grab.  
4744
4745 2006-11-16  Mariano Suárez-Alvarez <mariano@gnome.org>
4746
4747         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4748         add gtk-doc blurb on GtkCellRendererText::edited (#376094)
4749
4750 2006-11-16  Michael Natterer  <mitch@imendio.com>
4751
4752         * gtk/gtkradiobutton.c (gtk_radio_button_focus): don't use
4753         gtk_widget_keynav_failed(). Instead, look at gtk-keynav-cursor-only
4754         and gtk-keynav-wrap-around and wrap around, beep or continue outside
4755         the group manually (bug #322640).
4756
4757 2006-11-16  Michael Natterer  <mitch@imendio.com>
4758
4759         Add new infrastructure for notifications of failed keyboard
4760         navigation and navigation with restricted set of keys.
4761
4762         The patch handles configurable beeping, navigating the GUI with
4763         cursor keys only (as in phone environments), and configurable
4764         wrap-around. Fixes bugs #322640, #70986, #318827, #334726, #334742
4765         and #309291.
4766
4767         * gtk/gtksettings.c: added properties gtk-keynav-cursor-only,
4768         gtk-keynav-wrap-around and gtk-error-bell.
4769
4770         * gtk/gtkwidget.[ch]: added new signal "keynav-failed" and public
4771         API to emit it. Added New function gtk_widget_error_bell() which
4772         looks at the gtk-error-bell setting and calls gdk_window_beep()
4773         accordingly.
4774
4775         * gtk/gtk.symbols: add the new widget symbols.
4776
4777         * gtk/gtkcellrendereraccel.c
4778         * gtk/gtkimcontextsimple.c
4779         * gtk/gtkmenu.c
4780         * gtk/gtknotebook.c: use gtk_widget_error_bell() or look at the
4781         gtk-error-bell setting instead of calling gdk_display_beep()
4782         unconditionally.
4783
4784         * gtk/gtkcombobox.c
4785         * gtk/gtkentry.c
4786         * gtk/gtkiconview.c
4787         * gtk/gtklabel.c
4788         * gtk/gtkmenushell.c
4789         * gtk/gtkspinbutton.c
4790         * gtk/gtktextview.c
4791         * gtk/gtktreeview.c: call gtk_widget_error_bell() on failed keynav.
4792
4793         * gtk/gtkentry.c
4794         * gtk/gtklabel.c
4795         * gtk/gtkrange.c
4796         * gtk/gtktextview.c: consult gtk_widget_keynav_failed() on failed
4797         cursor navigation and leave the widget if it returns FALSE.
4798
4799         * gtk/gtkmenushell.c
4800         * gtk/gtknotebook.c: only wrap around if gtk-keynav-wrap-around
4801         is TRUE.
4802
4803         * gtk/gtkradiobutton.c: ask gtk_widget_keynav_failed() to decide
4804         whether to to wrap-around, and don't select active items on cursor
4805         navigation if gtk-keynav-cursor-only is TRUE. Should look at
4806         gtk-keynav-wrap-around too, will look into that.
4807
4808 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
4809
4810         * gtk/gtkrecentmanager.c:
4811         (gtk_recent_info_get_uri_display): Return the URI
4812         of the GtkRecentInfo object (upgraded to UTF-8 if
4813         needed) in case of non-local file. (#351945)
4814
4815 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
4816         
4817         * gtk/gtkrecentchoosermenu.c:
4818         (gtk_recent_chooser_menu_add_tip): Apply the tip only
4819         if we have a displayable name for the item. (#365031,
4820         patch by padraig.obriain(at)sun.com)
4821
4822 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
4823
4824         * gtk/gtkrecentmanager.c: Provide a fast path returning
4825         NULL when the limit is set to 0.
4826
4827         * gtk/gtkrecentchooserdefault.c:
4828         * gtk/gtkrecentchoosermenu.c: Add the same fast path
4829         inside the RecentChooser implementation; add a check
4830         in the list clamping code. (#373466 and duplicates)
4831
4832 2006-11-15  Matthias Clasen  <mclasen@redhat.com>
4833
4834         * modules/printbackends/cups/gtkprintbackendcups.c (cups_printer_get_options): 
4835         Don't pass NULL to strncpy.  (#359537, patch by  Carlos Garcia Campos)
4836
4837 2006-11-15  Michael Natterer  <mitch@imendio.com>
4838
4839         * gtk/gtkrange.[ch]: added properties "fill-level",
4840         "show-fill-level" and "restrict-to-fill-level" and getters/setters
4841         for them. The "fill level" is an additional marker on the range's
4842         trough than can be e.g. used to indicate the amount of
4843         pre-buffering in a range showing the play position of streamed
4844         media. See the embedded API docs for details. Made GtkRangeLayout
4845         a GTypeInstance private struct and removed finalize()
4846         implementation. Fixes bug #349808
4847
4848         * gtk/gtk.symbols: added the new symbols.
4849
4850 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
4851
4852         * configure.in: Make libtool magic robust. (#352795)
4853
4854 2006-11-13  Paolo Borelli  <pborelli@katamail.com>
4855
4856         * gtk/gtkrc.c (gtk_rc_parse_icon_source): plug small memory
4857         leak (#370395)
4858
4859 2006-11-09  Kristian Rietveld  <kris@imendio.com>
4860
4861         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): disable
4862         don't move cursor case for SELECTION_NONE. (#371756, John Ellis).
4863
4864 2006-11-09  Carlos Garnacho  <carlosg@gnome.org>
4865
4866         * gtk/gtkpathbar.c (on_slider_unmap): Fix parenthesis confusion.
4867
4868 2006-11-08  Carlos Garnacho  <carlosg@gnome.org>
4869
4870         * gtk/gtkpathbar.c (on_slider_unmap): added, do not leave the scroll
4871         timeout running if the slider buttons are hidden. (#372527)
4872
4873 2006-11-08  Christian Persch  <chpe@cvs.gnome.org>
4874
4875         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Don't make
4876         the "Location" label bold. Bug #372449.
4877
4878 2006-11-07  Carlos Garnacho  <carlosg@gnome.org>
4879
4880         * gtk/gtknotebook.c (gtk_notebook_calculate_tabs_allocation): make
4881         non-focused tabs xthickness/ythickness thinner. (#353962)
4882
4883 2006-11-07  Paolo Borelli  <pborelli@katamail.com>
4884
4885         * gtk/gtktextbtree.c (_gtk_text_btree_delete): avoid memory
4886         corruption (#357050).
4887
4888 2006-11-06  Alexander Larsson  <alexl@redhat.com>
4889
4890         * gtk/gtkdnd.c: (gtk_drag_begin_internal),
4891         (gtk_drag_source_info_destroy), (gtk_drag_end),
4892         (gtk_drag_grab_notify_cb):
4893         Cancel drag when the grab is shadowed. (#122688)
4894
4895 2006-11-01  Kristian Rietveld  <kris@imendio.com>
4896
4897         * gtk/gtkcombobox.c (gtk_combo_box_class_init),
4898         (gtk_combo_box_size_request): add arrow-size property to control
4899         the minimum size of the arrow, have the arrow scale up with the
4900         font by default. (#357950).
4901
4902 2006-10-30  Kristian Rietveld  <kris@gtk.org>
4903
4904         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): don't
4905         forget to queue a draw for the new cursor node. (Fixes #366548,
4906         reported by Sven Herzberg).
4907
4908 2006-10-30  Michael Natterer  <mitch@imendio.com>
4909
4910         * gtk/gtkrange.c (gtk_range_key_press): consume the Escape key
4911         only if we actually cancel a drag. Fixes bug #58389.
4912
4913 2006-10-30  Kristian Rietveld  <kris@gtk.org>
4914
4915         * gtk/gtktreeview.c (gtk_tree_view_class_init): change left/right
4916         keybindings to collapse/expand rows instead of moving the focus
4917         cursor. (#105895, Brian Bober and others).
4918
4919 2006-10-29  Kristian Rietveld  <kris@gtk.org>
4920
4921         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): guard against
4922         child removal in row-expanded callback. (#366782, John Ellis).
4923
4924 2006-10-29  Tor Lillqvist  <tml@novell.com>
4925
4926         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Improve handling
4927         of the small icon of the window class. (#152620, Kazuki Iwamoto)
4928
4929 2006-10-29  Tor Lillqvist  <tml@novell.com>
4930
4931         * gdk/win32/gdkcursor-win32.c
4932         (gdk_win32_icon_to_pixbuf_libgtk_only): Implement for B&W cursors,
4933         for instance the built-in GDK ones.
4934
4935 2006-10-27  Kristian Rietveld  <kris@gtk.org>
4936
4937         * gtk/gtktreeview.c (validate_visible_area): rework the area_above == 0
4938         case to not overwrite the variables in the lower scope (which are
4939         used later on ...), get the path correctly and bail out when there
4940         isn't a node above us. (#359231).
4941
4942 2006-10-26  Christian Persch  <chpe@cvs.gnome.org>
4943
4944         * gtk/gtkaboutdialog.c: Put initial focus on Close button (#337261).
4945
4946 2006-10-25  Johan Dahlin  <jdahlin@async.com.br>
4947
4948         * gtk/gtk.symbols: Add missing symbols to so make check can pass
4949
4950 2006-10-23  Dom Lachowicz <domlachowicz@gmail.com>
4951
4952         * src/modules/engines/ms-windows/msw_style.c (draw_expander): Remember
4953         to free GDI Pen resources, introduced by bug 340201.(#364514)
4954         
4955 2006-10-18  Kristian Rietveld  <kris@imendio.com>
4956
4957         * tests/testcombo.c (main): connect to notify::popup-shown instead of
4958         popup-show (the latter does not exist).
4959
4960 2006-10-15  Paolo Borelli  <pborelli@katamail.com>
4961
4962         * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
4963         Fixes bug #362439.
4964
4965 2006-10-12  Michael Natterer  <mitch@imendio.com>
4966
4967         * gtk/gtkcombobox.c (gtk_combo_box_class_init): fix commit below
4968         (committed the wrong patch).
4969
4970 2006-10-12  Michael Natterer  <mitch@imendio.com>
4971
4972         * gtk/gtkcombobox.c: added "move-active" and "popup" signals and
4973         bindings to trigger them. Removed gtk_combo_box_key_press(), it's
4974         obsolete now. Fixes bug #358293.
4975
4976 2006-10-11  Michael Emmel  <mike.emmel@gmail.com>
4977
4978         * gdkpixmap-directfb.c: add missing RGB24 case (#361176) 
4979
4980 2006-10-11  Tor Lillqvist  <tml@novell.com>
4981
4982         * configure.in: Enable having some gdk-pixbuf loaders built-in
4983         even if loading the others dynamically. Define Automake
4984         conditional INCLUDE_FOO for each loader as TRUE if that loader is
4985         built-in. See also gdk-pixbuf/ChangeLog.
4986
4987 Wed Oct 11 14:31:30 2006  Tim Janik  <timj@imendio.com>
4988
4989         * docs/reference/gtk/gtk-sections.txt:
4990         * gtk/gtkbindings.c: document gtk_binding_entry_skip().
4991
4992 2006-10-11  Tor Lillqvist  <tml@novell.com>
4993
4994         * gtk/gtk.symbols: Remove gtk_combo_string_key, which is a static
4995         variable.
4996
4997 2006-10-11  Tor Lillqvist  <tml@novell.com>
4998
4999         Merge from 2.10 branch:
5000
5001         * gtk/gtkmain.c (do_pre_parse_initialization): On Win32, if
5002         environment variable LC_ALL or LANG is set, set the Win32 thread
5003         locale to the corresponding locale. Then call the C library
5004         setlocale() to set the C library locale accordingly. The
5005         inconsistency mentioned below is gone. (#339756) Do some special
5006         casing for Serbia and Montenegro. Handle the Latin and Cyrillic
5007         scripts for Azeri, Uzbek and Serbian.
5008         (enum_locale_proc): Helper function for the above functionality.
5009
5010         * gtk/gtkcalendar.c (gtk_calendar_init): No longer need to check
5011         if the environment variables are set here, as they have already
5012         been taken into account and the Win32 thread locale has been
5013         set.
5014
5015 Tue Oct 10 16:38:23 2006  Tim Janik  <timj@imendio.com>
5016
5017         * gtk/tmpl/gtkbindings.sgml: 
5018         * gtk/gtkbindings.c: applied patch from Michael Natterer to move to 
5019         inline docs. applied wording fixes suggested by Martyn Russell.
5020
5021 2006-10-09  Matthias Clasen  <mclasen@redhat.com>
5022
5023         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
5024         Update the docs to state which out parameters may be NULL.
5025         (#360870, Attilio Fiandrotti)
5026
5027 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
5028
5029         * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix
5030         a typo.  (#359542, Ghee Teo)
5031
5032 2006-10-08 Matthias Clasen <mclasen@redhat.com>
5033
5034         * gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
5035         reorder tabs if the focus is in the tab.  (#350342, Carlos
5036         Garnacho Parro)
5037
5038 2006-10-08 Michael Emmel <mike.emmel@gmail.com>
5039
5040         * gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611) 
5041
5042 2006-10-08  Kristian Rietveld  <kris@gtk.org>
5043
5044         * gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
5045         (gtk_tree_view_set_show_expanders),
5046         (gtk_tree_view_get_show_expanders): add getter/setter for
5047         show-expanders property, queue a redraw when this property
5048         is toggled (#351167, Martin Ejdestig),
5049         (gtk_tree_view_set_level_indentation),
5050         (gtk_tree_view_get_level_indentation): also add getter/setter
5051         and docs for level-indentation property.
5052
5053 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
5054
5055         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't 
5056         leak a list.  (#360350, Benjamin Berg)
5057
5058         * Apply a cleanup patch by Kjartan Maraas  (#341812)
5059
5060 2006-10-07  Tor Lillqvist  <tml@novell.com>
5061
5062         * gtk/gtkcalendar.c (gtk_calendar_init): Use the Win32 thread
5063         locale's first day of week setting on Win32. (#339752, Bogdan
5064         Nicula) Don't do this if one of the environment variables that
5065         affect gettext is set, though. In that case use the week start day
5066         from the corresponding message catalog.
5067
5068         Unfortunately the same logic isn't possible in the weekday and
5069         month name lookup; there even if you have set one of the
5070         aforementioned environment variables, you still get the weekday
5071         and month names from the Win32 thread locale. Yes, this is
5072         inconsistent.
5073
5074         Use only wide-character API in the Win32 code in this file, too.
5075
5076 2006-10-06  Matthias Clasen  <mclasen@redhat.com>
5077
5078         * gtk/gtkfilechooser.c (gtk_file_chooser_set_select_multiple):
5079         Fix the docs.  (#360112)
5080
5081         * gtk/gtkcellview.c: Don't set the background of the
5082         window in a no-window widget.  (#359581, Xan Lopez)
5083
5084
5085 2006-10-05  Behdad Esfahbod  <behdad@gnome.org>
5086
5087         * gtk/Makefile.am, gtk/aliasfilescheck.sh:  Propagate srcdir into the
5088         test correctly. (#359845)
5089
5090 2006-10-05  Michael Natterer  <mitch@imendio.com>
5091
5092         * gtk/gtkrc.[ch]: added new scanner token "unbind" which gets
5093         rid of a key binding (in fact, it only lets it appear unbound).
5094
5095         * gtk/gtkbindings.[ch] (struct GtkBindingEntry): added
5096         "guint marks_unbound : 1"
5097
5098         (gtk_binding_entry_skip): new API which marks the entry as unbound.
5099
5100         Changed code so it returns FALSE when "marks_unbound == TRUE" is
5101         encountered while activating bindings, effectively letting the
5102         binding appear unbound (regardless of still existing bindings in
5103         lower binding priority levels). Fixes bug #358329.
5104
5105         (gtk_binding_entry_add)
5106         (gtk_binding_entry_clear)
5107         (gtk_binding_entry_add_signall)
5108         (gtk_binding_parse_binding): deprected these functions.
5109
5110         (_gtk_binding_parse_binding)
5111         (_gtk_binding_entry_add_signall): new internal API.
5112
5113         * gtk/gtk.symbols: changed accordingly.
5114
5115 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
5116
5117         Fix interaction of GtkEntryCompletion with input
5118         methods.  (#354495, Diego Escalante Urrelo)
5119
5120         * gtk/gtkentry.c (gtk_entry_completion_key_press): Only reset
5121         the im context if we actually handle the key event.
5122
5123         * gtk/gtkentrycompletion.c: Also propagate key release events
5124         to the entry.
5125
5126 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
5127
5128         * gtk/gtkprintsettings.c (gtk_print_settings_get_duplex):
5129         Fix a typo.  (#359052, Ghee Teo)
5130
5131         * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
5132         reduce relocations. (#359053)
5133
5134 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
5135
5136         * modules/printbackends/cups/gtkcupsutils.c:
5137         * modules/printbackends/cups/gtkprintbackendcups.c: Complete
5138         the fix for bug 357280.
5139
5140 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
5141
5142         * gdk-pixbuf/Makefile.am:
5143         * gdk/Makefile.am:
5144         * gtk/Makefile.am:
5145         Include pltcheck.sh in EXTRA_DIST.
5146
5147 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
5148
5149         * gdk/x11/gdkevents-x11.c: Move all includes before including
5150         gdkalias.h.
5151
5152 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
5153
5154         * gtk/Makefile.am: Fix typo in file name.  (#358931)
5155
5156 2006-10-02  Matthias Clasen  <mclasen@redhat.com>
5157
5158         * modules/printbackends/cups/gtkprintbackendcups.c (available_choices): 
5159         Only use the group name field if cups is new enough.  (#357280)
5160
5161         * gtk/gtksizegroup.c: Make sure that the quarks are 
5162         initialized before using them.  (#353736)
5163
5164         * gtk/Makefile.am (stamp-icons): Use rm instead of ln -f to
5165         replace existing links.  (#354849, James Evans)
5166
5167 2006-10-01  Matthias Clasen  <mclasen@redhat.com>
5168
5169         * gtk/gtkexpander.c (gtk_expander_realize) 
5170         (gtk_expander_size_allocate): Make the event_window large
5171         enough to cover the full height of the label_widget.  (#358351,
5172         Scott Horowitz)
5173
5174 2006-10-01  Tor Lillqvist  <tml@novell.com>
5175
5176         * gtk/gtkfilesystemwin32.c: Same change as to gtkfilesystemunix.c.
5177
5178 2006-09-30  Matthias Clasen  <mclasen@redhat.com>
5179
5180         * gtk/gtkfilechooserbutton.c (update_combo_box): Protect
5181         against base_path being NULL.  (#358405, many reporters)
5182
5183 2006-09-29  Matthias Clasen  <mclasen@redhat.com>
5184
5185         * gtk/gtkfilesystemunix.c: Apply a patch by Padraig O'Briain
5186         to avoid a deadlock.
5187
5188 2006-09-27  Kristian Rietveld  <kris@imendio.com>
5189
5190         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_free_level),
5191         (gtk_tree_model_filter_ref_node),
5192         (gtk_tree_model_filter_real_unref_node): bring zero ref count loops
5193         in sync with each other and the sort model.
5194
5195 2006-09-27  Kristian Rietveld  <kris@imendio.com>
5196
5197         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_init),
5198         (gtk_tree_model_filter_finalize), (gtk_tree_model_filter_row_deleted),
5199         (gtk_tree_model_filter_new): unref the virtual root path once that
5200         node (or one if its ancestors) is deleted, set virtual_root_deleted
5201         so we only unref it once.
5202
5203 2006-09-27  Kristian Rietveld  <kris@imendio.com>
5204
5205         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed),
5206         (gtk_tree_model_sort_sort_level): ref count nodes the proper way,
5207         (gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node),
5208         (gtk_tree_model_sort_free_level): bring zero ref count loops in
5209         sync,
5210         (gtk_tree_model_sort_free_level): free child levels before
5211         decreasing the zero ref count of the current level,
5212         (gtk_tree_model_sort_clear_cache): only clear cache if zero_ref_count
5213         is > 0.
5214
5215 2006-09-25  Matthias Clasen  <mclasen@redhat.com>
5216
5217         * demos/gtk-demo/*.c:
5218         * gtk/gtkeventbox.c:
5219         * gtk/gtkprintoperation.c: Fix typos. String change.
5220
5221 2006-09-25  Kristian Rietveld  <kris@gtk.org>
5222
5223         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): if the tree view
5224         has already been realized; scroll to background area instead of
5225         cell area. (Fixes #330683, Johan Dahlin, Tommi Komulainen).
5226
5227 2006-09-25  Kristian Rietveld  <kris@gtk.org>
5228
5229         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): only attempt
5230         to create the GCs if the widget is realized. (Fixes #357578).
5231
5232 2006-09-25  Matthias Clasen  <mclasen@redhat.com>
5233
5234         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Don't leak
5235         the list of children (#357454, Paolo Borelli)
5236
5237 2006-09-25  Michael Natterer  <mitch@imendio.com>
5238
5239         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): free
5240         display->input_windows with g_free(), not g_object_unref()
5241         (#357566, Tommi Komulainen).
5242
5243 2006-09-24  Kristian Rietveld  <kris@gtk.org>
5244
5245         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
5246         (gtk_cell_renderer_text_[sg]et_property): actually add align-set
5247         property to the API (left-over patch from #157439).
5248
5249 2006-09-24  Kristian Rietveld  <kris@gtk.org>
5250
5251         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): draw
5252         the indicator if the column has a sort column id (and the model is
5253         sortable) or if the user explicitly requested the indicator
5254         to be shown.  (Fixes #352738, Chris Vine).
5255
5256 2006-09-23  Tor Lillqvist  <tml@novell.com>
5257
5258         * gtk/Makefile.am: Use EXEEXT.
5259
5260 2006-09-22  Michael Natterer  <mitch@imendio.com>
5261
5262         * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories
5263         and color hashes. Fixes bug #357132.
5264
5265 2006-09-22  Matthias Clasen  <mclasen@redhat.com>
5266
5267         Make remote bookmarks work better (#354887)
5268         
5269         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): 
5270         (shortcuts_insert_path): 
5271         * gtk/gtkfilechooserbutton.c (change_icon_theme): 
5272         (model_add_bookmarks): 
5273         (model_update_current_folder): 
5274         (update_label_and_image): 
5275         If the bookmark points to a remote file, don't call get_info(), 
5276         since that may a) take a long time and b) pop up an auth dialog.
5277         Instead, just use a folder icon and create a display name
5278         from the uri.
5279
5280         * gtk/gtkfilechooserdefault.c (_gtk_file_chooser_label_for_uri): 
5281         New function to create a suitable display name for a remote
5282         uri. This should really be done in GtkFileSystem.
5283         
5284 2006-09-21  Michael Natterer  <mitch@imendio.com>
5285
5286        Implement lots of value setters for GdkGC, based on a heavily
5287        modified patch from Thomas Broyer (bug #328853):
5288
5289         * gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
5290         on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
5291         which simply returns RGBA values from a GdkColor's pixel value.
5292         See gdk_quartz_update_context_from_gc() below.
5293
5294         * gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
5295         of members for the newly suppored GC values. Added enum
5296         GdkQuartzContextValuesMask which is used for setting up the
5297         CGContext for filling and/or stroking.
5298
5299         * gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
5300         (gdk_quartz_gc_set_values)
5301         (_gdk_windowing_gc_copy): support a lot more GC values.
5302
5303         (gdk_quartz_update_context_from_gc): added
5304         GdkQuartzContextValuesMask parameter and set filling/stroking
5305         parameters accordingly. This function also gained full control
5306         over the FG and BG colors (they can't be set separately any more).
5307
5308         The stipple mask part of the patch doesn't work but seems to take
5309         the right approach and doesn't make things worse, so I applied it.
5310
5311         Did *not* apply the clipping part of the patch since I don't
5312         understand it (I don't understand the version in CVS either, but
5313         it at least works :-)
5314
5315         * gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
5316         gdk_quartz_update_context_from_gc() and removed separate color
5317         setting calls. Some minor fixes.
5318
5319         * gdk/quartz/gdkwindow-quartz.c
5320         (gdk_window_impl_quartz_begin_paint_region): set the CGContext's
5321         fill color manually. We don't have/need a GC here.
5322
5323 2006-09-21  Michael Natterer  <mitch@imendio.com>
5324
5325         * gdk/quartz/gdkwindow-quartz.c
5326         (gdk_window_impl_quartz_begin_paint_region): fix cast: it's
5327         drawable_impl->wrapper that is the GdkWindow, not the
5328         drawable_impl itself.
5329
5330 2006-09-20  Behnam Esfahbod <behnam@zwnj.org>
5331
5332         * gdk/x11/gdkkeys-x11.c:
5333           (get_direction): just check the first shift-level of keyboard
5334         layout for RTL and LTR keysyms() (compliment to #116626)
5335
5336 Wed Sep 20 16:59:38 2006  Tim Janik  <timj@imendio.com>
5337
5338         * gtk/gtkviewport.c: always update the bin_window position and size
5339         in size_allocate, even if we don't have a visible child. this fixes
5340         expose artefacts as described in #313508.
5341
5342         * gtk/gtkscrolledwindow.c: make hiding of automatic scrollbars when we
5343         have no visible child explicit.
5344
5345 2006-09-19  Ryan Lortie  <desrt@desrt.ca>
5346
5347         * docs/reference/gdk/gdk-sections.txt:
5348         * gdk/gdk.symbols:
5349         * gdk/gdkpango.h:
5350         * gdk/gdkpango.c: Bug 355343.  Add a GdkPangoAttrEmbossColor.
5351           (gdk_pango_layout_get_clip_region): Remove an unused variable.
5352           (gdk_pango_attr_embossed_new): Fix documentation.
5353
5354 Tue Sep 19 17:00:04 2006  Tim Janik  <timj@imendio.com>
5355
5356         * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to 
5357         control the arrow/border ratio within the allocation.
5358
5359         * tests/testgtk.c: added a GtkArrow to handle box test.
5360
5361         * tests/testgtkrc: test ::arrow-scaling property.
5362
5363 2006-09-19  Matthias Clasen  <mclasen@redhat.com>
5364
5365         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
5366         Display an error when we come to the root.  
5367
5368 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
5369
5370         * gtk/gtkfilechooserbutton.c: Use bookmark labels in 
5371         the combobox. 
5372
5373         * gtk/gtkfilechooserbutton.c: Don't add remote volumes and 
5374         bookmarks to the model in local-only mode, to avoid 
5375         authentication dialogs pop up for invisible bookmarks, and
5376         to fix issues with separators not being hidden when
5377         they should.  (#354887, Dennis Cranston)
5378
5379 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
5380
5381         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the
5382         treeview use in list mode.  (#355732, Richard Hult)
5383
5384         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Send
5385         change notification for the right property.  (#355308,
5386         Torsten Schoenfeld)
5387
5388 2006-09-15  Michael Natterer  <mitch@imendio.com>
5389
5390         * gtk/gtktreeview.c (gtk_tree_view_key_press): refactored column
5391         header navigation/resizing/reordering to be more readable and lose
5392         one level of nesting.
5393
5394 2006-09-15  Kristian Rietveld  <kris@imendio.com>
5395
5396         * gtk/gtktreeview.c (gtk_tree_view_key_press): actually directly
5397         return after handling column button focus; we disable wrap around
5398         with this (which actually happened via a really weird code path).
5399         (Michael Natterer)
5400
5401 2006-09-15  Kristian Rietveld  <kris@imendio.com>
5402
5403         * gtk/gtktreeview.c (gtk_tree_view_key_press): make column resizing
5404         code RTL aware, also break from the loops after we have seen the
5405         focussed column button (Michael Natterer).
5406
5407 Thu Sep 14 12:28:51 2006  Tim Janik  <timj@imendio.com>
5408
5409         * tests/testrichtext.c (main): intialize random number generator state
5410         upon program start, to enable truely random testing.
5411
5412 2006-09-13 Michael Emmel <mike.emmel@gmail.com>
5413
5414         * gdk/directfb/gdkcolor-directfb.c small clean ups include order
5415         * gdk/directfb/gdkwindow-directfb.c fixed beep compile error
5416         * gdk/directfb/Makefile.am removed GDK_PIXBUF_DISABLE_DEPRECATED
5417                 GDK_DISABLE_DEPRECATED to allow compile per Behdad
5418         * gdk/quartz/Makefile.am same change as directfb Makefile
5419         * gtk/Makefile.am fixed typo that cause socket stubs not to compile
5420
5421 2006-09-13 Matthias Clasen <mclasen@redhat.com>
5422
5423         * gtk/gtkcolorsel.c: Use a GtkWindow instead of a GtkInvisible
5424         for the grab widget, to make the color picker work with window
5425         groups.  
5426
5427 2006-09-12 Hong Jen Yee <pcman.tw@gmail.com>
5428
5429         signed off by: Dom Lachowicz
5430         
5431         * modules/engines/ms-windows/msw_style.c: Bug 340201. This contains
5432         a large number of improvements to the Microsoft Windows theme engine
5433         which are fully described in the bug report.
5434         
5435 Mon Sep 11 14:22:39 2006  Tim Janik  <timj@imendio.com>
5436
5437         * tests/testgtk.c: fixed compiler warnings.
5438
5439 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
5440
5441         * gtk/gtkfilechooserbutton.c (model_add_special): Request
5442         the display name too, otherwise "Desktop" does not appear
5443         in the file chooser button. 
5444
5445 2006-09-10  Tor Lillqvist  <tml@novell.com>
5446
5447         * gdk/win32/gdkprivate-win32.h
5448         * gdk/win32/gdkmain-win32.c
5449         * gdk/win32/gdkwindow-win32.c: Define WINVER and _WIN32_WINNT as
5450         0x0500 in gdkprivate-win32.h instead of doing it in two source
5451         files. (#355212, Mike Edenfield)
5452
5453         * gdk/win32/gdkwindow-win32.c: We can also remove the ersatz
5454         GetAncestor() for the _MSC_VER && WINVER < 0x0500 case, I hope.
5455
5456 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
5457
5458         * Commit a patch by Behdad to fix typos, omissions and other
5459         errors in the symbol aliasing, and add checks for local PLT
5460         entries.  (#354687, Behdad Esfahbod)
5461
5462         * gtk/gtktreeview.c (gtk_tree_view_search_scroll_event): Renew
5463         the flush timeout.  (#354043, Nelson Benitez)
5464         
5465         * gtk/gtkfilechoosersettings.c (set_unexpected_element_end_error): 
5466         Improve wording. String change!  (#355126, David Lodge)
5467
5468         * gtk/updateiconcache.c: Improve wording. String change!  (#355128,
5469         David Lodge)
5470
5471         * gtk/paper_names_offsets.c: Fix a typo. String change!  (#355134,
5472         David Lodge)
5473
5474 2006-09-09  Matthias Clasen <mclasen@redhat.com>
5475
5476         * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks.
5477         (#353916, Chris Wilson)
5478
5479         * gtk/gtksettings.c (_gtk_settings_reset_rc_values):
5480         Don't leak the to_reset list.  (#353914, Chris Wilson)
5481
5482         * gtk/gtkwidget.c: Add docs for the parent-set signal.
5483         (#353772, Mariano Suárez-Alvarez)
5484
5485 2006-09-08  Matthias Clasen <mclasen@redhat.com>
5486
5487         * gtk/gtktextbuffer.c (remove_all_selection_clipboards):
5488         Don't clear clipboards here, since we are called from finalize
5489         and can't emit signals.
5490
5491         * configure.in: Set version to 2.11.0
5492
5493 2006-09-06  Richard Hult  <richard@imendio.com>
5494
5495         * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Special-case 
5496         shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.
5497
5498 2006-09-04  Kristian Rietveld  <kris@imendio.com>
5499
5500         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
5501         if setting the given folder failed, try setting the parent folder
5502         until we succeed; display an error box at the end.
5503
5504 2006-09-04  Kristian Rietveld  <kris@imendio.com>
5505
5506         * gtk/gtkpathbar.c (gtk_path_bar_dispose): don't cancel the
5507         operations spawned by buttons here,
5508         (set_button_image_get_info_cb): bail out if button is NULL, but
5509         do free button_data,
5510         (button_data_free): only free the data if non NULL (since this
5511         function can be called multiple times for the same data), cancel
5512         handle if pending but don't free button_data in this case (will
5513         happen in the callback).
5514
5515 2006-09-04  Michael Natterer  <mitch@imendio.com>
5516
5517         * gtk/gtkrc.c (rc_parse_token_or_compound)
5518         (gtk_rc_parse_assignment): serialize floating point values using
5519         locale-independent functions. (#346751, Frederic Crozat)
5520
5521 2006-09-04  Tor Lillqvist  <tml@novell.com>
5522
5523         * gdk/win32/gdkevents-win32.c
5524         * gdk/win32/gdkwindow-win32.c: Use wide-char API for message and
5525         window handling (PeekMessage, PostMessage, SendMessage,
5526         DispatchMessage, DefWindowProc, RegisterClassEx,
5527         CreateWindowEx). (#321597)
5528
5529 2006-09-03  Kristian Rietveld  <kris@imendio.com>
5530
5531         * gtk/gtkfilechooserdefault.c (save_entry_get_info_cb),
5532         (file_exists_get_info_cb), (gtk_file_chooser_default_should_respond):
5533         change file_exists_and_is_not_folder checks to get the file info
5534         for the path directly instead of querying the current file folder
5535         of the save entry.
5536
5537         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): add
5538         new field.
5539
5540         * tests/autotestfilechooser.c (wait_for_idle_idle), (wait_for_idle),
5541         (test_reload_sequence), (test_button_folder_states_for_action): wait
5542         for idle after setting a folder to ensure the async operations to load
5543         the folder are finished,
5544         (test_confirm_overwrite), (test_confirm_overwrite_for_path):
5545         factor out test_confirm_overwrite code so we can add tests for more
5546         paths more easily.
5547
5548 2006-09-03  Richard Hult  <richard@imendio.com>
5549
5550         * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
5551         exposure isn't in the event mask, plug a leak, and check that the
5552         window isn't destroyed.
5553         (isOpaque): Check that the window isn't destroyed, fixes bug 
5554         #353028.
5555
5556 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
5557
5558         * gtk/gtkwidget.c (gtk_widget_class_init): Fix a typo.  
5559         (#354035, Mariano Suárez-Alvarez)
5560
5561         * gtk/gtkmain.c (post_parse_hook): 
5562         * gdk/gdk.c (gdk_init): Handle display_name being NULL.
5563         (#354004, Chris Wilson)
5564
5565 2006-09-03  Tor Lillqvist  <tml@novell.com>
5566
5567         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): No
5568         GDK_WINDOW_DISPLAY in the Win32 backend.
5569
5570         * gtk/gtkfilesystemwin32.c: Copy what Kris did to
5571         gtkfilesystemunix.c
5572
5573 2006-09-02  Kristian Rietveld  <kris@imendio.com>
5574
5575         First part of file chooser fixes.
5576
5577         * gtk/gtkfilechooserbutton.c (model_add_special): also set the
5578         handle in the model for the desktopdir case.
5579
5580         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder): free
5581         volume in case we retrieved it but don't pass it on to insert_path,
5582         (shortcuts_model_create): change the column type for the handles
5583         to pointer instead of GObject so our handle ref counting is not
5584         disturbed,
5585         (show_and_select_paths_finished_loading): don't forget to unref
5586         the dialog.
5587
5588         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_class_init),
5589         (gtk_file_system_unix_init), (gtk_file_system_unix_dispose):
5590         remove pending execute_callbacks_idle during dispose, also
5591         execute all callbacks waiting to be run in the next idle,
5592         (queue_*callback), (execute_callbacks_idle): refactor to maintain
5593         a list of callbacks to call per file system instead of globally,
5594         guard the file system during callback invocation,
5595         (gtk_file_system_unix_get_folder): only add load folder idle if
5596         none has been added yet.
5597
5598 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
5599
5600         * gtk/gtkentry.c: Don't unnecessarily reset the im context
5601         when deleting the selection.  (#353803, Alex Larsson)
5602
5603 2006-09-01  Abel Cheung  <abel@oaka.org>
5604
5605         * configure.in: Added 'ang' 'dz' to ALL_LINGUAS.
5606
5607 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
5608
5609         Stop cursor blinking after a configurable timeout.
5610         (#353670, #352442, Arjan van de Ven, Manu Cornet)
5611         
5612         * gtk/gtksettings.c (gtk_settings_class_init): Add a 
5613         gtk-cursor-blink-timeout setting, which specifies the number
5614         of seconds that the cursor should blink after a user interaction.
5615         The default value is G_MAXINT to preserve the current behaviour.
5616
5617         * gtk/gtkentry.c (blink_cb): Stop blinking after blink-timeout
5618         seconds.
5619
5620         * gtk/gtkentry.c (gtk_entry_completion_key_press) 
5621         (gtk_entry_button_press, gtk_entry_focus_in): Reset the
5622         blink timer.
5623
5624         * gtk/gtktextview.c (blink_cb): Stop blinking after blink-timeout
5625         seconds. 
5626
5627         * gtk/gtktextview.c (gtk_text_view_key_press_event) 
5628         (gtk_text_view_button_press_event, gtk_text_view_focus_in_event): 
5629         Reset the blink timer.
5630         
5631 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
5632
5633         * gtk/gtkprintoperation-unix.c (get_print_dialog): Don't specify
5634         explicit format capabilities.  (#346505, Christian Persch)
5635
5636         * modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error. 
5637
5638 2006-08-31  Michael Natterer  <mitch@imendio.com>
5639
5640         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
5641
5642 2006-08-30  Richard Hult  <richard@imendio.com>
5643
5644         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
5645
5646 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
5647
5648         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Only use XKB
5649         for beeping if we are using XKB.  
5650
5651 2006-08-29  Matthias Clasen  <mclasen@redhat.com>
5652
5653         * gdk/gdkwindow.h: 
5654         * gdk/gdk.symbols: 
5655         * gdk/directfb/gdkwindow-directfb.c (gdk_window_beep): 
5656         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): 
5657         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): 
5658         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
5659         to beep on a window. For X11, implement this with
5660         XkbBell.  (#353455, Mariano Suárez-Alvarez)
5661         
5662 2006-08-29  Tor Lillqvist  <tml@novell.com>
5663
5664         Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
5665         since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
5666         it isn't being maintained anyway. If somebody is interested, it
5667         can always be found in older GTK+ versions, and in CVS.
5668
5669         * configure.in
5670         * acconfig.h
5671         * gdk/Makefile.am
5672         * gdk/win32/Makefile.am
5673         * gdk/win32/libie55uid.la
5674         * gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure
5675         switch and associated stuff. Active IMM and the <dimm.h> header
5676         was used for IM support on NT4 and Win9x. Win2k and later have IM
5677         support built-in.
5678
5679         * gdk/win32/gdkcursor-win32.c
5680         * gdk/win32/gdkdnd-win32.c
5681         * gdk/win32/gdkdrawable-win32.c
5682         * gdk/win32/gdkevents-win32.c
5683         * gdk/win32/gdkgc-win32.c
5684         * gdk/win32/gdkglobals-win32.c
5685         * gdk/win32/gdkkeys-win32.c
5686         * gdk/win32/gdkmain-win32.c
5687         * gdk/win32/gdkproperty-win32.c
5688         * gdk/win32/gdkselection-win32.c
5689         * gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED()
5690         and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
5691         branches, and any variables or static functions used only by the
5692         Win9x branches.
5693
5694         * gdk/win32/gdkprivate-win32.h: Remove backup definitions for
5695         constants that aren't missing from current mingw and MSVC6
5696         headers.
5697
5698         * gdk/win32/gdkmain-win32.c
5699         * gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
5700         function. On NT-based Windows GetLastError() returns error codes
5701         also for failed GDI calls, so we can use _gdk_win32_api_failed()
5702         always.
5703
5704 2006-08-29  Emmanuele Bassi  <ebassi@gnome.org>
5705
5706         * gtk/gtkrecentchoosermenu.c
5707         (gtk_recent_chooser_menu_set_current_uri): Break when an item
5708         is found and activated. (#353449, based on a patch by Jan Arne
5709         Petersen)
5710
5711 Fri Jul 14 16:13:37 2006  Tim Janik  <timj@gtk.org>
5712
5713         * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style 
5714         properties which make all hardcoded padding and spacing values
5715         configurable. properly swap ::text-xalign treatment for RTL widgets.
5716
5717         * gtk/gtkprogress.c: fixed style property blurbs. made alignment 
5718         proeprty more consistent with GtkMisc alignment blurbs. mention
5719         RTL treatment for text-xalign.
5720
5721 Tue Aug 29 11:57:40 2006  Tim Janik  <timj@imendio.com>
5722
5723         * tests/testgtk.c: allow (most) windows to be resizable.
5724         added ellipsization settings to progress bars. 
5725
5726 2006-08-28  Matthias Clasen   <mclasen@redhat.com>
5727
5728         * modules/printbackend/cups/gtkprintbackendcups.c: Use a
5729         resonable timeout of 3 seconds when polling for printer
5730         list updates, instead of 300000 seconds...
5731
5732 2006-08-28  Michael Natterer  <mitch@imendio.com>
5733
5734         * gtk/gtktextbufferserialize.c (serialize_text): don't write out
5735         </apply_tag> for tags that have already been closed by the logic
5736         which turns overlapping spans into XML-able trees. Fixes broken
5737         XML when there are overlapping tags in the buffer. Also free two
5738         leaked GLists and did some cleanup.
5739
5740         * tests/Makefile.am
5741         * tests/testrichtext.c: new test which creates randomly tagged
5742         GtkTextBuffers and serializes/deserializes them.
5743
5744 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
5745
5746         * gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data): 
5747         Don't leak pixbufs.  (#352264, Ross Burton)
5748
5749         * gtk/gtklinkbutton.c (set_link_underline): Don't leak
5750         PangoAttributes.  (#352391, Paolo Borelli)
5751
5752 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
5753
5754         * demos/gtk-demo/Makefile.am:
5755         * demos/gtk-demo/textscroll.c: Add an example of automatic
5756         scrolling, thanks to Yevgen Muntyan.  (#351206)
5757         
5758         * gtk/gtkmodules.c (find_module): Use local binding when
5759         loading modules.  (#351868)
5760
5761 2006-08-24  Michael Natterer  <mitch@imendio.com>
5762
5763         * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return
5764         the hostname instead of NULL.
5765
5766 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
5767
5768         * gtk/gtkprinteroptionwidget.[hc]: Fix confusion about
5769         names and values in comboboxes, and clean up some
5770         coding style issues.
5771
5772 2006-08-23  Tor Lillqvist  <tml@novell.com>
5773
5774         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
5775         Revert unintended translatable string addition. Use same string
5776         in GError as in gtkfilesystemunix.c.
5777
5778         * gtk/gtkfilesystemwin32.c (_gtk_file_system_win32_path_compare):
5779         Fix logic at the end of strings. 
5780
5781         * gtk/gtkfilesystemwin32.c: Maintain a hash table of live
5782         handles and check that we have no outstanding handles at
5783         finalization time. (Copying what Matthias did for
5784         gtkfilesystemunix.c)
5785
5786 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
5787
5788         * gtk/gtkfilesystemunix.c: Maintain a hash table
5789         of live handles and check that we have no outstanding
5790         handles at finalization time. (Copying what
5791         Federico did for gtkfilesystemgnomevfs.c)
5792
5793 2007-08-22  Matthias Clasen  <mclasen@redhat.com> 
5794
5795         * Branch for 2.10
5796