]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
d5e3dd1c553eaec8aa9309a40dfffb8a58aba6ff
[~andy/gtk] / ChangeLog.pre-2-10
1 Mon Feb 27 14:52:50 2006  Tim Janik  <timj@imendio.com>
2
3         * gdkevents-x11.c:
4         * gdksettings.c: moved and renamed the gdk_settings_names and 
5         gdk_settings_map.
6
7         * gdk/x11/checksettings.c: test program for the gdk_settings_map array.
8
9         * gdk/x11/Makefile.am: run checksettings as part of make check.
10
11 2006-02-27  Matthias Clasen  <mclasen@redhat.com>
12
13         * gtk/gtkdnd.c (gtk_drag_get_cursor): Comment out some unused
14         code, and fix the reference point of composited drag cursors.
15         (#320132, Christian Neumair)
16
17 Sun Feb 26 10:24:10 PST 2006  Michael Emmel  <mike.emmel@gmail.com>
18         
19         *gdk/directfb/README
20         Updated README to remove old build instructions
21
22 Sat Feb 25 10:35:23 PST 2006  Michael Emmel  <mike.emmel@gmail.com>
23         
24         *gdk/directfb/gdkdisplay-directfb.c
25         *gdk/directfb/gdkwindow-directfb.c
26         Added stubs for shape window functions to fix compile problems
27
28 2006-02-24  Federico Mena Quintero  <federico@novell.com>
29
30         * gtk/gtkfilechooserdefault.c (shortcuts_list_create): Make the
31         column header visible, and make it be "_Places".  Changed the
32         accessible object name to Places as well.  Fixes bug #331306.
33         (file_pane_create): Do not create the path bar and "create folder"
34         button here...
35         (browse_widgets_create): ... but create them here instead.  This
36         moves the path bar to be above both the hpaned, giving it the full
37         width of the dialog.  Fixes bug #327733.
38
39 Thu Feb 23 13:28:21 2006  Tim Janik  <timj@imendio.com>
40
41         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): remove unconditional
42         warnings about missing X locale support. Gdk properly handles this
43         situation anyway.
44
45 Fri Feb 17 14:20:29 2006  Tim Janik  <timj@imendio.com>
46
47         * gtk/gtktreemodel.h: 
48         * gtk/gtktextbtree.h: added G_GNUC_WARN_UNUSED_RESULT warnings for
49         iterator functions, to avoid invalid iterators go unnoticed,
50         suggested by Markku Vire <markku.vire@movial.fi>.
51
52 2006-02-23  Matthias Clasen  <mclasen@redhat.com>
53
54         * tests/Makefile.am: 
55         * tests/testnotebookdnd.c: Add notebook DND tests.
56
57         * gtk/gtknotebook.h: Add a reorder_tab keynav signal and an
58         insert_page vfunc to GtkNotebook.
59
60         * gtk/gtk.symbols:
61         * gtk/gtknotebook.c: Support notebook DND. New API includes
62         gtk_notebook_set_window_creation_hook, 
63         gtk_notebook_[gs]et_group_id,
64         gtk_notebook_[gs]et_tab_reorderable, 
65         gtk_notebook_[gs]et_tab_detachable (#73240, Carlos Garnacho)
66
67 2006-02-23  Matthias Clasen  <mclasen@redhat.com>
68
69         * gtk/gtktextiter.c: Fix macro declaration
70
71         * gtk/gtkaboutdialog.c: Remove an accidentally included function.
72
73 2006-02-22  Matthias Clasen  <mclasen@redhat.com>
74
75         * gtk/gtktextbtree.c: 
76         * gtk/gtktextiter.c: Minor optimizations.  (#332059, Arnaud Charlet)
77
78         * gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
79         here, when changing the value of this property.  (#331651)
80
81         * gtk/gtknotebook.c: Apply a patch by Paolo Borelli to
82         make the tab menu keynavigatable.  (#331440)
83
84 2006-02-22  Matthias Clasen  <mclasen@redhat.com>
85
86         * gtk/gtkaboutdialog.c: Change Close buttons to GTK_RESPONSE_CANCEL
87         so Escape works. (#331940, Daniel Drake)
88
89 2006-02-22  Michael Natterer  <mitch@imendio.com>
90
91         * gtk/gtksettings.c: added boolean property gtk-touchscreen-mode,
92         which essentially means "there are no motion notify events", so
93         widgets can't use the pointer hovering them for anything.
94
95         * gtk/gtkmenu.c: if gtk-touchscreen-mode is TRUE, scroll menus
96         when clicking the scroll arrows, since hovering goes undetected.
97         Fixes bug #323028.
98
99         Added boolean style property "double-arrows" which always makes
100         both scroll arrows visible when the menu is too long.
101         For pushed-in popup menus, both arrows are always shown
102         (regardless of double-arrows), in order to fix user confusion
103         about the blank area. Fixes bug #129463.
104
105 2006-02-21  Kristian Rietveld  <kris@imendio.com>
106
107         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
108         Make sure we always update the virtual root, also when ->priv->root
109         is still NULL.  (Markku Vire)
110
111 2006-02-21  Anders Carlsson  <andersca@imendio.com>
112
113         * gdk/quartz/gdkselection-quartz.c:
114         (make_list):
115         (gdk_text_property_to_utf8_list_for_display):
116         Add these from the win32 backend.
117
118 2006-02-20  Matthias Clasen  <mclasen@redhat.com>
119
120         * gtk/gtknotebook.c: Properly update internal state
121         when child visibility changes.  (#331785, Sebastien Bacher)
122
123         * gdk/gdkgc.c (_gdk_gc_update_context): Obtain the
124         background color from the gc when it is needed.  (#331820)
125
126 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
127
128         * gdk/gdkgc.c (_gdk_gc_update_context): Add a gc_changed
129         argument, and avoid setting the clip region if the gc
130         has not changed. 
131
132         * gdk/gdkgc.c: Update all callers.
133
134         * gdk/gdkpango.c (get_cairo_context): Avoid updating the
135         context if nothing changed.
136
137 2006-02-20  Anders Carlsson  <andersca@imendio.com>
138
139         * gdk/quartz/gdkdisplay-quartz.c:
140         (gdk_display_supports_shapes):
141         (gdk_display_supports_input_shapes):
142         * gdk/quartz/gdkwindow-quartz.c:
143         (gdk_display_warp_pointer):
144         (gdk_window_input_shape_combine_mask):
145         (gdk_window_input_shape_combine_region):
146         (gdk_window_set_child_input_shapes):
147         (gdk_window_set_accept_focus):
148         (gdk_window_merge_child_input_shapes):
149         Add stubs for input shape functions.
150
151 2006-02-20  Anders Carlsson  <andersca@imendio.com>
152
153         * gdk/quartz/gdkevents-quartz.c:
154         (get_keyboard_modifiers_from_nsevent):
155         Fix typo so ctrl gets passed on to the gdk event.
156         
157         * gdk/quartz/gdkproperty-quartz.c:
158         (gdk_atom_name):
159         g_strdup the atom name.
160
161 2006-02-20  Tor Lillqvist  <tml@novell.com>
162
163         * gdk/win32/gdkdisplay-win32.c (gdk_display_supports_shapes):
164         New function, return TRUE.
165         (gdk_display_supports_input_shapes): New function, return FALSE.
166
167         * gdk/win32/gdkwindow-win32.c (do_shape_combine_region): New
168         function. Factor out code from gdk_window_shape_combine_mask().
169         (gdk_window_shape_combine_region): Actually do something. Convert
170         region to a HRGN and call do_shape_combine_region().
171         (gdk_window_input_shape_combine_mask)
172         (gdk_window_input_shape_combine_region)
173         (gdk_window_set_child_input_shapes)
174         (gdk_window_merge_child_input_shapes): New functions, dummy
175         implementations.
176
177 2006-02-20  Michael Natterer  <mitch@imendio.com>
178
179         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): adding boolean
180         have_shapes and have_input_shapes members fixes the build.
181
182 2006-02-20  Tor Lillqvist  <tml@novell.com>
183
184         * gdk/win32/gdkfont-win32.c: Replace all calls to g_strcasecmp()
185         with g_ascii_strcasecmp().
186
187 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
188
189         Support input shapes:  (#331070)
190         
191         * gdk/gdk.symbols: 
192         * gdk/gdkdisplay.h: 
193         * gdk/gdkwindow.h: 
194         * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_shapes) 
195         (gdk_display_supports_input_shapes): Functions to determine
196         if a display supports shaped windows or input shapes.
197
198         * gdk/x11/gdkwindow-x11.c (gdk_window_input_shape_combine_region): 
199         (gdk_window_input_shape_combine_mask): 
200         (gdk_window_set_child_input_shapes): 
201         (gdk_window_merge_child_input_shapes): Input shape versions
202         of the window shape API.
203
204         * gtk/gtk.symbols: 
205         * gtk/gtkwidget.h: 
206         * gtk/gtkwidget.c (gtk_widget_input_shape_combine_mask): 
207         New function to set an input shape on a widget.
208
209 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
210
211         * gtk/gtklinkbutton.c (gtk_link_button_class_init): Fix
212         a cast.
213
214 2006-02-17  Matthias Clasen  <mclasen@redhat.com>
215
216         DND keynav support:
217         
218         * gtk/gtkdnd.c (gtk_drag_update_idle): Protect against 
219         info->last_event being NULL.
220         (gtk_drag_key_cb): Handle arrow keys to move the drag icon
221         and space or enter to drop.
222
223 2006-02-17  Matthias Clasen  <mclasen@redhat.com>
224
225         * gdk/gdkregion-generic.c (gdk_region_union_with_rect):
226         Be robust and reject rectangles with negative width or
227         height.  (#331467, Benjamin Berg)
228
229
230 2006-02-17  Kristian Rietveld  <kris@imendio.com>
231
232         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
233         Only update the virtual root if the child path is an ancestor
234         of the virtual root.  (Patch from Markku Vire).
235
236 2006-02-16  Federico Mena Quintero  <federico@novell.com>
237
238         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_map): Call
239         ::initial_focus() on the child before calling ::map() on our
240         parent class.  This will prevent the shortcuts treeview from
241         highlighting its first row as a result of getting assigned focus
242         by gtk_dialog_map().
243
244 2006-02-14  Matthias Clasen  <mclasen@redhat.com>
245
246         * gtk/gtkwidget.c (gtk_widget_send_expose): Remove redundant
247         check.  Pointed out by Bodo-Merle Sandor.
248
249         * gtk/gtkcolorbutton.c (gtk_color_button_[un]realize):
250         Remove unnecessary checks.  
251
252 2006-02-12  Matthias Clasen  <mclasen@redhat.com>
253
254         * gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working
255         examples in the docs.  (#330944, John Spray)
256
257 2006-02-10  Matthias Clasen  <mclasen@redhat.com>
258         
259         * gtk/gtkiconview.c (gtk_icon_view_get_item_at_coords): Fix
260         row_spacing/column_spacing confusion.  (#330732, Donald Straney)
261
262 2006-02-10  Matthias Clasen  <mclasen@redhat.com>
263
264         * gtk/gtkstyle.c: Add some docs. (#330073, Mart Raudsepp)
265
266         * gtk/gtkentrycompletion.c (gtk_entry_completion_match_selected): 
267         Guard against NULL.  (#330177, Raphael Slinckx)
268
269 2006-02-10  Murray Cumming  <murrayc@murrayc.com>
270
271         * docs/reference/gtk/tmpl/gtkcomboboxentry.sgml: Mention that 
272         the changed signal is emitted when typing - not just when 
273         selecting from the list. Suggest use of GtkEntry::action to 
274         etect end of typing.
275          gtk/gtkcombobox.c: (gtk_combo_box_class_init): changed signal 
276         ocumentation: Mention that the GtkComboBoxEntry emits it when 
277         he users types, not just when he selects from the list.
278
279 2006-02-10  Murray Cumming  <murrayc@murrayc.com
280
281         * gtk/gtkassistant.h: Correct the declaration of the prepare 
282         default signal handler to match its registration and use.
283
284 2006-02-09  Ross Burton  <ross@burtonini.com>
285
286         * gtk/gtkfontbutton.c:
287         Work out the font size in floating point, and display the font
288         size with %g instead of %d (#317590)
289
290 2006-02-09  Tor Lillqvist  <tml@novell.com>
291
292         * gdk/win32/gdkevents-win32.c (gdk_event_translate)
293         <WM_MOUSELEAVE>: If we don't know where we went, and have
294         generated a leave event, set current_window to the root
295         window. This assures we will generate proper enter and leave
296         events for popup windows. (#325521)
297
298 2006-02-08  John Ehresman  <jpe@wingware.com>
299
300         * gdk/win32/gdkevents-win32.c (gdk_event_translate)
301         <WM_MOUSEACTIVATE>
302         * gdk/win32/gdkwindow-win32.c (show_window_internal)
303         (gdk_window_raise): Call SetWindowPos() instead of
304         SetForegroundWindow() or BringWindowToTop() if the window
305         shouldn't accept focus. (#327375)
306         
307 2006-02-08  John Ehresman  <jpe@wingware.com>
308
309         * gdk/win32/gdkwindow-win32.c: Let gdk_window_set_decorations()
310         take precedence over anything derived from hints. Restructure
311         related code and logic, add some new helper functions. (#327217)
312
313 2006-02-08  Matthias Clasen  <mclasen@redhat.com>
314
315         * gtk/gtkfilechooserbutton.c: Don't put relevant callss
316         in g_assert().  (#329876, Kristian Rietveld)
317
318 2006-02-08  Tor Lillqvist  <tml@novell.com>
319
320         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab)
321         (gdk_display_pointer_ungrab, gdk_keyboard_grab)
322         (gdk_display_keyboard_ungrab): Consistenly use assign_object()
323         when assigning GdkWindow pointers so that the ref counting doesn't
324         get off whack.
325
326         (handle_stuff_while_moving_or_resizing): Don't use deprecated API.
327
328         (gdk_event_translate) <WM_MOUSEMOVE>: When the pointer is grabbed
329         with owner_events FALSE, generate enter and leave events only for
330         the grab window. (#321054)
331
332 2006-02-08  Kristian Rietveld  <kris@imendio.com>
333
334         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_ref_path),
335         (gtk_tree_model_filter_unref_path): free temporary paths after
336         usage (patch from maemo-gtk),
337         (gtk_tree_model_filter_clear_cache): fix little typo in the docs
338         (patch from maemo-gtk).
339
340         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): remove
341         stale FIXME.
342
343 2006-02-08  Matthias Clasen  <mclasen@redhat.com>
344
345         * gtk/gtkfilesystem.c (gtk_file_info_copy): Copy the display_key
346         as well.  (#330389, Markku Vire)
347
348 2006-02-08  Tor Lillqvist  <tml@novell.com>
349
350         * gtk-zip.sh.in: Drop the timestamp from the zipfile names.
351
352 2006-02-07  Sven Neumann  <sven@gimp.org>
353
354         * gdk/directfb/AUTHORS: updated mine and Dok's email address.
355
356 2006-02-06  Kristian Rietveld  <kris@gtk.org>
357
358         * gtk/gtktreeview.c (gtk_tree_view_get_search_entry): fix compiler
359         warning.
360
361 2006-02-05  Dom Lachowicz <cinamod@hotmail.com>
362
363         * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Bug #330022
364         Wrong pixel values are computed when color = 0xFF and alpha = 0xFF
365         
366 2006-02-04  Michael Emmel  <mike.emmel@gmail.com>
367         Added new directfb backend located in gdk/directfb
368         plus patches to compile new backend
369         compile with --with-gdktarget=directfb
370
371 2006-02-03  Federico Mena Quintero  <federico@ximian.com>
372
373         Work around https://bugs.freedesktop.org/show_bug.cgi?id=4320,
374         which used to be our own
375         http://bugzilla.gnome.org/show_bug.cgi?id=314616.  If one uses a
376         pixmap for a pattern in Cairo, and sets the pattern to
377         CAIRO_EXTEND_REPEAT; and if the destination surface is also a
378         pixmap, Cairo does a slow copy instead of using XCopyArea().  So,
379         we use the same code that we used in GTK+ 2.6 (pre-cairo), by
380         filling the double-buffer pixmap with a tiled GC and
381         XFillRectangle().
382
383         * gdk/gdkwindow.c (BackingRectMethod): New structure with a
384         cairo_t and a GdkGC field.  Depending on which of these fields
385         gets filled in, we'll use Cairo or GDK to clear the double-buffer
386         pixmap when painting a window.
387         (setup_backing_rect_method): Fill a BackingRectMethod as
388         appropriate, depending on the window's configuration and our
389         knowledge of whether Cairo is fast or slow when doing repeating
390         patterns.
391         (gdk_window_clear_backing_rect): Call
392         setup_backing_rect_method().  Depending on what it returns, use
393         Cairo to clear the double-buffer pixmap, or plain GDK.
394
395 2006-02-03  Matthias Clasen  <mclasen@redhat.com>
396
397         * gtk/gtklabel.c (get_layout_location): Fix handling
398         of padding in RTL.  (#329099, Hooman Mesgary) 
399
400 2006-02-02  Matthias Clasen  <mclasen@redhat.com>
401
402         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display):
403         Make drops on the root window work again.  (#145243, Andrew S. Dixon)
404
405 2006-02-01  Matthias Clasen  <mclasen@redhat.com>
406
407         * gtk/gtkwidget.c (gtk_widget_class_init): Wrap dnd signal
408         docs to 80 columns.
409
410 2006-01-31  Matthias Clasen  <mclasen@redhat.com>
411
412         * autogen.sh: Touch README and INSTALL here to pacify 
413         automake.  (#329124, Kjartan Maraas, Tim Janik)
414
415 2006-01-31  Matthias Clasen  <mclasen@redhat.com>
416
417         * gtk/gtk.symbols:
418         * gtk/gtkassistant.h: 
419         * gtk/gtkassistant.c: Actually implement visibility handling,
420         and add gtk_assistant_update_buttons_state.
421
422         * tests/testassistant.c: Test visibility handling.
423
424 2006-01-31  Kristian Rietveld  <kris@imendio.com>
425
426         * gtk/gtkstyle.c (gtk_default_draw_flat_box): Add support for row
427         hinting for the selected state.
428
429 2006-01-30  Matthias Clasen  <mclasen@redhat.com>
430
431         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
432         Make sure the tree view is realized, since we grab the
433         focus to it.  (#329144, Wouter Bolsterlee)
434
435         * gtk/gtkspinbutton.h: 
436         * gtk/gtkspinbutton.c: Add a wrapped signal.  (#322933,
437         Carlos Garnacho Parro)
438
439         * gtk/gtkassistant.c: More generous spacing. (#328082,
440         Christian Persch, patch by Carlos Garnacho)
441         
442         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_set_property): 
443         Use the setter for active.  (#329208, Guillaume Cottenceau)
444
445         * docs/tools/widgets.c (get_all_widgets): Add GtkLinkButton
446
447         * gtk/gtkassistant.c (gtk_assistant_init): Move the
448         last button to the left where it does not affect
449         the positioning of forward/back.
450
451 2006-01-29  Matthias Clasen  <mclasen@redhat.com>
452
453         More GtkAssistant work, by Carlos Garnacho.
454         
455         * tests/testassistant.c: Additions.
456
457         * gtk/gtkassistant.c: Handle page visibility, other 
458         small fixes.
459
460         * docs/tools/widgets.c: Add GtkAssistant.
461
462 2006-01-28  Behdad Esfahbod  <behdad@gnome.org>
463
464         * configure.in: If major.minor of required and available glib versions
465         are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617)
466
467         * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
468
469 2006-01-28  Dom Lachowicz <cinamod@hotmail.com>
470
471         * modules/engines/ms-windows/msw-style.c: Re-sync with gtk-wimp
472         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
473         
474 2006-01-28  Matthias Clasen  <mclasen@redhat.com>
475
476         * gtk/gtk.symbols: 
477         * gtk/gtklinkbutton.h: 
478         * gtk/gtklinkbutton.c: Allow to set a global hook function
479         thats called whenever a link button is clicked.
480
481         More work on GtkAssistant by Carlos Garnacho:
482         
483         * demos/gtk-demo/Makefile.am: 
484         * demos/gtk-demo/assistant.c: Add a  GtkAssistant demo.
485
486         * gtk/gtkassistant.c: Handle focus, several small fixes to the
487         flow computations.
488
489 2006-01-27  Federico Mena Quintero  <federico@ximian.com>
490
491         Fixes bug #328820:
492
493         * gtk/gtkfilechooserdefault.c
494         (gtk_file_chooser_default_class_init): Make GDK_KP_Divide pop up
495         the location dialog populated to "/".
496         (tree_view_keybinding_cb): Likewise.
497         (trap_activate_cb): Likewise.
498
499 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
500
501         * gtk/gtkcalendar.c (gtk_calendar_size_request): Use translated format
502         strings for L10n in size calculation too.
503
504         * gtk/gtkcalendar.c (calendar_paint_week_numbers): Expand buffer to
505         accomodate localized digits.
506
507 2006-01-26  Matthias Clasen  <mclasen@redhat.com>
508
509         * tests/prop-editor.c: Introspect child properties. too.
510
511 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
512
513         * gtk/gtkcalendar.c (calendar_paint_week_numbers, calendar_paint_day):
514         Use contexed translated strings calendar:week:digits|%d and
515         calendar:day:digits|%d to let translators choose localized digits for
516         week and day numbers. (bug #317171, Hamed Malek)
517
518 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
519
520         * gtk/gtklabel.c (get_layout_location): Use logical extents of the
521         layout instead of ink extents.  According to Pango docs, that's what
522         should be used for placement.  Moreover, simply use
523         pango_layout_get_pixel_size instead of getting the extents and
524         dividing ourselves.
525
526 2006-01-25  Matthias Clasen  <mclasen@redhat.com>
527
528         * gtk/gtkentrycompletion.c: 
529         * gtk/gtkentry.c: Be more careful when blocking signals. 
530
531         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): Only
532         set the cursor size if it is != 0.
533
534         * gtk/gtksettings.c (gtk_settings_class_init): Change the default value
535         of gtk-cursor-theme-size to 0, meaning "use default".
536
537 2006-01-24  Kristian Rietveld  <kris@gtk.org>
538
539         #322591, Jonathan Blandford.
540
541         * gtk/gtktreeview.[ch] (gtk_tree_view_get_search_entry),
542         (gtk_tree_view_set_search_entry),
543         (gtk_tree_view_get_search_position_func),
544         (gtk_tree_view_set_search_position_func): New functions,
545         and small adaptions to the tree view code to allow for setting
546         the entry and search position function.
547
548         * gtk/gtktreeprivate.h: Removed GtkTreeViewSearchDialogPositionFunc
549         typedef, which is now in gtktreeview.h as
550         GtkTreeViewSearchPositionFunc.  Add/update fields.
551
552         * gtk/gtk.symbols: Add new functions.
553
554         * tests/testtreesort.c: Add a little test for _set_search_entry().
555
556 2006-01-23  Matthias Clasen  <mclasen@redhat.com>
557
558         Add GtkLinkButton, a port of GnomeHRef.  (#314808, Emmanuele Bassi)
559         
560         * gtk/gtklinkbutton.h: 
561         * gtk/gtklinkbutton.c: New files.
562
563         * gtk/gtk.h:
564         * gtk/gtk.symbols: 
565         * gtk/Makefile.am: Glue.
566
567         * gtk/gtkaboutdialog.c: Use GtkLinkButton.
568         
569         * gtk/gtkwidget.c: Add link-color and visited-link-color style
570         properties.  (#113649, Leena Gunda)
571
572         * gtk/gtkaboutdialog.c: Use the new style properties here instead
573         of the about dialogs own link-color property. 
574
575 2006-01-23  Kristian Rietveld  <kris@gtk.org>
576
577         * gtk/gtktreemodel.c (gtk_tree_model_base_init): don't copy
578         tree paths when emitting signals. (#325041, Matthias Clasen).
579
580 2006-01-23  Behdad Esfahbod  <behdad@gnome.org>
581
582         * gtk/gtklabel.c (get_layout_location): Fix misalignment of RTL
583         text in ellipsized GtkLabel: use layout width if set, otherwise
584         fallback to ink extents width. (#322042)
585
586 2006-01-23  Matthias Clasen  <mclasen@redhat.com>
587
588         * gtk/gtkassistant.c (compute_last_button_state): Only show the
589         last button if we can jump to the end. 
590         (gtk_assistant_init): Make the spacing and button order more
591         HIG compliant.
592
593         Fix drawing issues in progress bars.  (#328081, Christian Persch)
594         
595         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Always
596         request enough space. 
597         (gtk_progress_bar_paint_activity) 
598         (gtk_progress_bar_paint_continuous) 
599         (gtk_progress_bar_paint_discrete): Clip when drawing the bar.
600
601 2006-01-23  Michael Natterer  <mitch@imendio.com>
602
603         * gtk/gtkcolorbutton.c: move destruction of the private GdkGC
604         from finalize() to unrealize(). Fixes BadMatch on display change
605         (bug #85715).
606
607 2006-01-22  Kristian Rietveld  <kris@gtk.org>
608
609         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Revert previous
610         commit after more searching in the bugzilla archives (see #309221).
611
612 2006-01-22  Kristian Rietveld  <kris@gtk.org>
613
614         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Remove second call
615         to gtk_tree_view_column_cell_set_cell_data, since we also set the
616         cell data before iterating over the columns for exposure. (Fixes
617         #322471, Duncan Coutts).
618
619 2006-01-21  Matthias Clasen  <mclasen@redhat.com>
620
621         * tests/testassistant.c: Add some tests for GtkAssistant
622
623         * tests/Makefile.am: Glue
624
625 2006-01-20  Matthias Clasen  <mclasen@redhat.com>
626
627         * gtk/gtkassistant.c: Fix the docs to reflect the actual signal
628         signatures.
629
630         * gtk/gtktextview.c (gtk_text_view_set_virtual_cursor_pos): Don't
631         crash if layout is NULL.  (#327934, Christian Kirbach)
632
633 2006-01-20  Dan Winship  <danw@novell.com>
634
635         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init,
636         tree_view_keybinding_cb, trap_activate_cb): On "unix", pop up the
637         "Open Location" window on "~" as well as "/". #153213
638         (location_entry_create): Fix this so autocompletion still works
639         correctly in that case.
640
641 2006-01-19  Matthias Clasen  <mclasen@redhat.com>
642
643         * configure.in: Explicitly link against Xrender.  
644         (#327538, Christophe Belle)
645         
646         * gdk/x11/gdkprivate-x11.h (XID_FONT_BIT): 
647         * gdk/x11/gdkfont-x11.c: 
648         * gdk/x11/gdkxid.c: Use an unused high bit in the
649         XID to mark fonts in the global xid hash table.
650
651         * gdk/x11/gdkcursor-x11.c (update_cursor): Skip fonts
652         when iterating over the xid hash table, since calling
653         GDK_IS_WINDOW () on an GdkFont can cause a segfault.
654         (#327751, Ryan Lovett)
655
656 2006-01-19  Matthias Clasen  <mclasen@redhat.com>
657         
658         * gtk/gtkassistant.[hc]: Use a priv pointer for
659         cheap access to the priv struct.  (#327725, Christian
660         Persch)
661
662         * gtk/gtkassistant.h: Fix line endings.
663
664 2006-01-18  Matthias Clasen  <mclasen@redhat.com>
665
666         * gtk/gtkassistant.[hc]: Add GtkAssistant, a widget to
667         construct multi-step wizards.  (#115348, Martyn Russell, 
668         Matthias Clasen, Carlos Garnacho Parro)
669
670         * gtk/gtk.symbols:
671         * gtk/Makefile.am: 
672         * gtk/gtk.h: Necessary glue.
673
674 2006-01-18  Anders Carlsson  <andersca@imendio.com>
675
676         * gdk/quartz/gdkevents-quartz.c:
677         (get_mm_from_pixels):
678         (gdk_screen_get_width_mm):
679         (gdk_screen_get_height_mm):
680         Implement these functions.
681         (#327228, Thomas Broyer).
682
683 2006-01-18  Anders Carlsson  <andersca@imendio.com>
684
685         * gdk/quartz/gdkdrawable-quartz.c:
686         (gdk_quartz_draw_polygon):
687         (gdk_quartz_draw_lines):
688         Implement these functions.
689         (#327226, Thomas Broyer)
690         
691 2006-01-18  Anders Carlsson  <andersca@imendio.com>
692
693         * gdk/quartz/gdkkeys-quartz.c:
694         (maybe_update_keymap):
695         Support non-MacRoman keyboard layouts.
696         (#322585, Wolfgang Thaller)
697         
698 2006-01-18  Anders Carlsson  <andersca@imendio.com>
699
700         * gdk/quartz/gdkmain-quartz.c:
701         (_gdk_windowing_init):
702         Make the process a foreground application.
703         (#322481, Wolfgang Thaller)
704         
705 2006-01-18  Matthias Clasen  <mclasen@redhat.com>
706
707         * gtk/gtkrbtree.c: 
708         * gtk/gtktreemodel.c: Fix several g_new() calls which
709         were using extra indirections or pointless casts.  
710         (#327423, Morten Welinder)
711
712 Tue Jan 17 19:27:59 2006  Tim Janik  <timj@imendio.com>
713
714         * gtk/gtkprogress.c: fix adopted from maemo-gtk.
715         gtk_progress_create_pixmap(): clear out the newly created offscreen 
716         pixmap, so themes making use of transparency don't draw onto garbage.
717
718 2006-01-17  Michael Natterer  <mitch@imendio.com>
719
720         * gtk/gtkbutton.c: remove the "child-spacing" style property again
721         and add "inner-border" instead. That's far more flexible and
722         "child-spacing" was a bad name anyway.
723
724 2006-01-17  Michael Natterer  <mitch@imendio.com>
725
726         * configure.in (ALL_LINGUAS): remove "ang" again until all po
727         files are there.
728
729 2006-01-16  Abel Cheung  <maddog@linuxhall.org>
730
731         * configure.in: Added "ang" "zh_HK" to ALL_LINGUAS.
732
733 2006-01-16  Matthias Clasen  <mclasen@redhat.com>
734
735         * README.in: Mention new pixbuf engine features.
736
737         * gtk/gtk.symbols: 
738         * gtk/gtkradioaction.[hc]: Add a current-value property and a
739         setter for it.  (#322735, Jorn Baayen)
740         
741 2006-01-16  Michael Natterer  <mitch@imendio.com>
742
743         * gtk/gtkbutton.c: applied patch from maemo-gtk which adds a
744         child-spacing style property. Fixes bug #327202.
745
746 2006-01-16  Anders Carlsson  <andersca@imendio.com>
747
748         * gdk/quartz/gdkdisplay-quartz.c:
749         * gdk/quartz/gdkevents-quartz.c:
750         (gdk_keyboard_grab):
751         (gdk_display_keyboard_ungrab):
752         (gdk_keyboard_grab_info_libgtk_only):
753         (find_window_for_event):
754         Implement keyboard grabs.
755         
756         (_gdk_quartz_send_map_events):
757         * gdk/quartz/gdkmain-quartz.c:
758         * gdk/quartz/gdkprivate-quartz.h:
759         New function that synthesizes map events.
760         
761         * gdk/quartz/gdkwindow-quartz.c:
762         (_gdk_windowing_window_init):
763         The root window is always visible.
764         
765         (all_parents_shown):
766         (show_window_internal):
767         Send map events.
768         
769         (gdk_window_hide):
770         Ungrab keyboard and pointer
771
772 2006-01-15  Kristian Rietveld  <kris@gtk.org>
773
774         Fixes #324099, Tommi Komulainen.
775
776         * gtk/gtktreestore.[ch] (gtk_tree_store_insert_with_values),
777         (gtk_tree_store_insert_with_valuesv): new functions, analog to
778         those found in GtkListStore.
779
780         * gtk/gtktreestore.c (gtk_tree_store_real_set_value),
781         (gtk_tree_store_set_valist), (gtk_tree_store_set_valist_internal),
782         (gtk_tree_store_sort_iter_changed): refactored.
783
784         * gtk/gtk.symbols: updated.
785
786         * tests/treestoretest.c: added a test for this new functionality.
787
788 2006-01-14  Matthias Clasen  <mclasen@redhat.com>
789
790         * gtk/gtkentry.c (gtk_entry_drag_data_received): Remove 
791         an unused variable.
792
793         * gtk/gtkiconfactory.c (get_default_icons): Register RTL 
794         versions of the indent and unindent icons.  (#326857,
795         Itai Bar-Haim)
796
797         * gtk/Makefile.am (STOCK_ICONS): And add them here.
798
799         Fix a crash with combo boxes in RESIZE_IMMEDIATE
800         containers.  (#326806, Sebastian Bacher)
801         
802         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate) 
803         (gtk_combo_box_size_request): Don't call 
804         gtk_combo_box_check_appearance() from here, as that 
805         can lead to recursion. 
806         (gtk_combo_box_init): Instead, call it here.
807
808 2006-01-14  Kristian Rietveld  <kris@gtk.org>
809
810         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_iter_children): fix
811         a typo which caused this whole thing to not function ...
812
813 2006-01-14  Kristian Rietveld  <kris@gtk.org>
814
815         * gtk/gtktreeview.c (gtk_tree_view_size_allocate),
816         (validate_visible_area): fixup adjustments and top_row if the
817         current dy + page_size exceeds the new tree view height. (Fixes
818         #316689, reported by Chris Lord).
819
820 2006-01-13  Matthias Clasen  <mclasen@redhat.com>
821
822         * */abicheck.sh: Make this work on more platforms.
823
824 2006-01-13  Kristian Rietveld  <kris@imendio.com>
825
826         * tests/testtreefocus.c (set_indicator_size), (main): add a little
827         test for the newly introduced indicator-size property.
828
829 2006-01-13  Kristian Rietveld  <kris@imendio.com>
830
831         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
832         initialize the inconsistent field in the private structure,
833         (gtk_cell_renderer_toggle_class_init),
834         (gtk_cell_renderer_toggle_{set,get}_property),
835         (gtk_cell_renderer_toggle_get_size): introduce a indicator-size
836         property.
837
838 2006-01-13  Michael Natterer  <mitch@imendio.com>
839
840         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row)
841         (gtk_tree_view_real_collapse_row): don't animate the expander
842         arrows if gtk-enable-animations is FALSE (bug #142582).
843
844 2006-01-12  Matthias Clasen  <mclasen@redhat.com>
845
846         * gtk/gtknotebook.c: Replace hardcoded values for tab-overlap and
847         tab-curvature with style properties.  (#325282, Alexander Nedotsukov)
848
849         * gtk/gtktextview.c (gtk_text_view_commit_text) 
850         (gtk_text_view_delete_from_cursor, gtk_text_view_backspace): 
851         Reset the virtual cursor position.  (#326003, Evert Verhellen)
852
853         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add some docs
854         about RGBA windows. (#326486, Benjamin Otte)
855
856 2006-01-12  Michael Natterer  <mitch@imendio.com>
857
858         * gdk/gdkimage.c (scratch_image_info_for_depth): connect to the
859         display's "closed" signal and free the cached scratch images upon
860         display closing (bug #85715).
861
862 2006-01-12  Michael Natterer  <mitch@imendio.com>
863
864         * gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
865         animation if the gtk-enable-animations setting is FALSE
866         (bug #142582).
867
868 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
869
870         * gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
871
872 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
873
874         * gtk/gtklabel.c: Add some notify batching, always
875         emit notify after setting the new value.
876
877         * gtk/gtkmessagedialog.c: Add properties.  (#311254,
878         Johan Dahlin)
879         (gtk_message_dialog_new): Remove some redundant code, pointed
880         out by Gustavo Carneiro.
881
882         * gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
883         up properly if the grab fails.
884         (finish_drag): Don't leak a reference to moveresize_window
885         here.
886
887 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
888
889         * gdk/x11/gdkevents-x11.c: Fix string offsets.
890
891         Allow falling back to another icon theme before 
892         hicolor.   (#325546, Rodney Dawes)
893         
894         * gtk/gtksettings.c: Add a gtk-fallback-icon-theme setting.
895
896         * gdk/x11/gdkevents-x11.c: Map it to the XSetting Net/FallbackIconTheme.
897         
898         * gtk/gtkicontheme.c: Consult the fallback icon theme before
899         looking in hicolor. 
900
901 2006-01-10  Matthias Clasen  <mclasen@redhat.com>
902
903         * tests/testgtk.c: Add an expander example.
904
905         * gtk/gtkcalendar.c (gtk_calendar_focus_out): Queue a draw
906         when losing the focus.  (#326064, Andrew Conkling)
907
908         * gtk/gtkimmulticontext.c: 
909         * gtk/gtkhsv.c: 
910         * gtk/gtkhandlebox.c: Convert to use instance private data.
911
912         * gtk/gtk.h: Remove duplicate include.  (#326429, 
913         Benoît Carpentier)
914
915         * gtk/gtkpaned.c: Convert to use instance private data.
916
917 2006-01-10  Michael Natterer  <mitch@imendio.com>
918
919         * gdk/gdkpango.c (on_renderer_display_closed): disconnect from the
920         right object ("closed" is emitted by the display, not the screen).
921         (bug #85715)
922
923 2006-01-10  Anders Carlsson  <andersca@imendio.com>
924
925         * gdk/quartz/gdkproperty-quartz.c:
926         (ensure_atom_tables):
927         (intern_atom_internal):
928         (gdk_atom_intern):
929         (gdk_atom_intern_static_string):
930         (gdk_atom_name):
931         Implement local-only atoms.
932
933 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
934
935         * gdk/gdkgc.c (gc_get_foreground): Correct a warning.
936         (#326341, Benoît Carpentier)
937
938         * gtk/gtk.symbols:
939         * gtk/gtkwindow.h:
940         * gtk/gtkwindow.c (gtk_window_get_group): Make this function
941         public API.  (#307099, Todd Berman)
942
943         * gtk/gtkmenu.c: 
944         * gtk/gtkmain.c: 
945         * gtk/gtkentrycompletion.c: 
946         * gtk/gtkcombo.c: 
947         * gtk/gtkcombobox.c: Update all callers.
948
949         * gtk/gtkentry.c (paste_received):  Make GtkEntryCompletion
950         complete on pastes at the end.  (#165714, Christian Neumair)
951
952         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
953         Prevent the first row being focused on map.  (#137351,
954         Niklas Knutsson)
955
956 2006-01-09  Johan Dahlin  <jdahlin@async.com.br>
957
958         * gtk/gtk.symbols:
959         * gtk/gtkeditable.h:
960         * gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
961         * gtk/gtksizegroup.h:
962         (struct _GtkSizeGroup): 
963
964         Add gtk_size_group_get_widgets, fixes #326324.
965         Also mark all fields of GtkSizeGroup as private
966
967 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
968
969         * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
970         leak preedit_string and preedit_attrs.  (#322332, Paolo
971         Borelli)
972
973         * gtk/gtk.symbols:
974         * gtk/gtkaction.h: 
975         * gtk/gtkaction.c (gtk_widget_get_action): New function to
976         get the action for a proxy.  (#326288)
977
978         * gtk/gtkaction.c: Go back to the old key for attaching the
979         action to the proxy.  (#326288, Diego González)
980
981 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
982
983         * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
984         empty strings.  (#326200, Christian Stimming)
985
986 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
987
988         * gtk/gtkentry.[hc]: 
989         * gtk/gtklabel.[hc]: Shrink the private structs of these a bit.
990
991         * gtk/gtklabel.c (get_layout_location): Fix label alignment 
992         when width-chars is set.  (#326098, Benjamin Otte)
993
994         * gdk/gdkregion-generic.c (miRegionCopy): Fix this for the 
995         single-rectangle case.  (#326127, Benjamin Berg)
996         (gdk_region_copy): Use miRegionCopy() here.
997
998 2006-01-07  Matthias Clasen  <mclasen@redhat.com>
999
1000         Fix actiongroup-action interaction that relied on 
1001         actions connecting to notify on themselves:
1002         
1003         * gtk/gtkaction.[hc]: Factor out the code updating the
1004         visibility/sensitivity of proxies into _gtk_action_sync_visible()
1005         and _gtk_action_sync_sensible().
1006
1007         * gtk/gtkactiongroup.c: Call the new functions when the
1008         group visibility/sensitivity changes. 
1009
1010 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
1011
1012         * gtk/gtkactiongroup.c (gtk_action_group_set_sensitive) 
1013         (gtk_action_group_set_visible): Add missing property change
1014         notification.
1015
1016 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
1017
1018         * gtk/gtkfilechooserbutton.c (model_add_special): Just use the
1019         directory name for the home dir.  (#325817, Federico Mena Quintero)
1020         
1021         * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable 
1022         to TRUE. 
1023         (gtk_text_tag_class_init): The default value for the direction 
1024         property is GTK_TEXT_DIR_NONE. Add notes about the initial values 
1025         of the font and language properties.
1026
1027         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
1028         an action signal.  (#325782, Martyn Russell)
1029
1030         * gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
1031         the old adjustments signals.  (#325869, Jorn Baayen)
1032
1033 2006-01-06  Hans Breuer  <hans@breuer.org>
1034
1035         * tests/makefile.msc : added a bunch of tests
1036         * tests/testcellrenderertext.c : use g_snprintf()
1037         * tests/testfilechooserbutton.c : don't include unistd.h twice.
1038         Removed the unconditional one and added direct.h for G_OS_WIN32
1039         
1040 2006-01-05  Hans Breuer  <hans@breuer.org>
1041
1042         * gdk/makefile.msc : also recurse into win32 for ::clean
1043         * gtk/makefile.msc.in : create gtkbuiltincache.h (most code
1044         to simulate links) and file renames
1045
1046 2006-01-05  Johan Dahlin  <jdahlin@async.com.br>
1047
1048         * gtk/gtkprogressbar.c: Set minimum for activity-step property to 0
1049         instead of -G_MAXUINT.
1050         
1051 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
1052
1053         * gtk/gtkwindow.c: Only connect to the event if we have
1054         a frame, since the handler is only relevant in that case.
1055
1056         * gtk/gtkaction.c (connect_proxy, disconnect_proxy): 
1057         Use a weak reference rather than the destroy signal to track 
1058         proxies going away.
1059
1060         * gtk/gtkbindings.c (binding_signal_new): Revert the last change.
1061
1062         * gtk/gtkaction.c (gtk_action_sync_property): 
1063         (gtk_action_sync_stock_id): Removed.
1064
1065 2006-01-05  Rodrigo Moya <rodrigo@novell.com>
1066
1067         * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
1068         signal and arguments.
1069
1070 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
1071
1072         * gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
1073         a void function.
1074
1075 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
1076
1077         * gtk/gtkbindings.h (struct _GtkBindingSignal): Revert questionable
1078         changes.
1079         
1080         * gtk/gtkbindings.c: Use the slice allocator and allocate signal
1081         and arguments in one block.
1082
1083         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Don't return
1084         a list of NULLs.  (#325723, Steve Chaplin)
1085
1086 2006-01-04  Rodrigo Moya <rodrigo@novell.com>
1087
1088         * gtk/gtkbindings.c (binding_signal_new): guard against multiplying
1089         by -1 (when n_args is 0).
1090
1091 2006-01-04  Michael Natterer  <mitch@imendio.com>
1092
1093         * gtk/gtkmenutoolbutton.c
1094         (gtk_menu_tool_button_set_menu)
1095         (gtk_menu_tool_button_destroy): use gtk_menu_attach_to_widget()
1096         and gtk_menu_detach() instead of reffing/unreffing the menu
1097         manually. Also fixes brokenness on screen change (bug #85715).
1098
1099 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
1100
1101         * gtk/gtkaccelmap.c: 
1102         * gtk/gtkactiongroup.c: 
1103         * gtk/gtkdialog.c: 
1104         * gtk/gtkfilesystemunix.c: 
1105         * gtk/gtkgc.c: 
1106         * gtk/gtkkeyhash.c: 
1107         * gtk/gtkplug.c: 
1108         * gtk/gtktextiter.c: 
1109         * gtk/gtktextlayout.c: 
1110         * gtk/gtkuimanager.c: 
1111         * gtk/gtkwidget.c: 
1112         * gtk/gtkwindow.c: 
1113         * gtk/gtkxembed.c: Use the slice allocator for many small 
1114         allocations.
1115
1116         * gtk/gtkcolorsel.c: 
1117         * gtk/gtktreeview.c: Use IPN.
1118
1119         * gtk/gtkwidget.c: Remove an unused field from the AccelPath 
1120         struct.
1121
1122 2006-01-04  Tor Lillqvist  <tml@novell.com>
1123
1124         * gtk-zip.sh.in: Include also the gtk20-properties message catalogs.
1125
1126 2006-01-03  Matthias Clasen  <mclasen@redhat.com>
1127         
1128         * gtk/gtkdnd.c: Make it compile
1129
1130         * gtk/gtkdnd.c (gtk_drag_begin_internal): Call gtk_drag_update
1131         for non-motion events.  (#325443, Peter Harvey)
1132
1133         * gtk/gtkaction.c: Avoid connecting to notify on our own
1134         properties. 
1135
1136 2006-01-02  Matthias Clasen  <mclasen@redhat.com>
1137
1138         * gtk/gtkentry.c (gtk_entry_delete_from_cursor): When deleting
1139         words, delete preceding whitespace as well.  (#325358,  Akkana Peck)
1140
1141 2006-01-02  Anders Carlsson  <andersca@imendio.com>
1142
1143         * gdk/quartz/GdkQuartzWindow.c:
1144         (-[GdkQuartzWindow canBecomeMainWindow]):
1145         (-[GdkQuartzWindow canBecomeKeyWindow]):
1146         Have these return TRUE
1147         
1148         * gdk/quartz/gdkevents-quartz.c:
1149         (pointer_grab_internal):
1150         Remove FIXME
1151         
1152         (find_child_window_by_point_helper):
1153         Fix bug in offset calculation
1154         
1155         (find_window_for_event):
1156         Use grab window toplevel when a grab is in effect
1157         
1158         (gdk_event_translate):
1159         Don't call _gdk_event_button_generate on mouse up
1160         
1161         * gdk/quartz/gdkgc-quartz.c:
1162         (_gdk_quartz_gc_new):
1163         Fix indentation
1164         
1165         * gdk/quartz/gdkwindow-quartz.c:
1166         (gdk_window_new):
1167         Make TEMP windows borderless
1168         
1169         (gdk_window_hide):
1170         Hide window
1171         
1172         (gdk_window_get_origin):
1173         Implement
1174         
1175 2006-01-02  Tor Lillqvist  <tml@novell.com>
1176
1177         * gdk/win32/gdkwindow-win32.c
1178         (gdk_window_impl_win32_get_visible_region): Make identical to the
1179         X11 implementation. (#322264, John Ehresman)
1180
1181         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): Get the
1182         invalidated region from ScrollWindowEx() instead of an incorrect
1183         attempt to calculate it ourselves. Fix by John Ehresman. (#323666)
1184
1185         * gdkevents-win32.c: Make _gdk_win32_hrgn_to_region() non-static.
1186
1187         * gdkprivate-win32.h: Declare it.
1188
1189 2005-12-31  Matthias Clasen  <mclasen@redhat.com>
1190
1191         * gtk/gtkaction.c: 
1192         * gtk/gtkentry.c: Connect to notify instead of multiple
1193         detailed signals.
1194
1195 2005-12-30  Matthias Clasen  <mclasen@redhat.com>
1196
1197         * gdk/gdk.symbols: 
1198         * gdk/gdkcairo.h: 
1199         * gdk/gdkcairo.c: Add gdk_cairo_set_source_pixmap.  (#318805,
1200         Alexander Larsson)
1201
1202         * gdk/gdkdisplaymanager.c (gdk_display_manager_set_property): Call
1203         gdk_display_manager_set_default_display() to change the default
1204         display.  (#153623, Stefan Kost)
1205
1206         * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
1207          (setup_type): Alert dialogs should not have titles and should 
1208         not be displayed in the taskbar.  (#310443, Carlos Garnacho Parro,
1209         Dennis Cranston)
1210
1211 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
1212
1213         * gtk/gtkliststore.c: 
1214         * gtk/gtktreestore.c: Always call the get_path and get_iter
1215         implementations directly, rather than the current mixture whith
1216         some calls going through the GtkTreeModel interface.
1217
1218         * gtk/gtktreemodelsort.c: 
1219         * gtk/gtkliststore.c: 
1220         * gtk/gtktreestore.c: Remove excessive g_return_if_fail() checks
1221         in static functions.
1222         
1223         * gtk/gtktreedatalist.c: Use the slice allocater for 
1224         GtkTreeDataSortHeader.
1225
1226         * gtk/gtktreedatalist.h: 
1227         * gtk/gtktreedatalist.c (_gtk_tree_data_list_set_header): New function.
1228
1229         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): 
1230         * gtk/gtkliststore.c (gtk_list_store_set_sort_func): 
1231         * gtk/gtktreestore.c (gtk_tree_store_set_sort_func): Use it here.
1232
1233 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
1234
1235         * gtk/gtkbindings.h (GtkBindingSignal): 
1236         * gtk/gtkbindings.c (binding_signal_new): Make the
1237         args a flexible array inside the struct, and allocate them
1238         together.
1239
1240 Wed Dec 28 00:45:46 2005  Tim Janik  <timj@gtk.org>
1241
1242         * gtk/gtkctree.c (row_delete): delete GtkCTreeRow as GtkCTreeRow, not
1243         clist rows which crashes in gslice later on.
1244
1245 2005-12-27  Federico Mena Quintero  <federico@ximian.com>
1246
1247         * gtk/gtkfilefilter.c (gtk_file_filter_filter): In the case for
1248         FILTER_RULE_PIXBUF_FORMATS, check that filter_info->mime_type is
1249         not NULL.  Fixes bug #317687.
1250
1251 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
1252
1253         * gdk/x11/gdkevents-x11.c (check_transform): Fix a typo.
1254         (gdk_screen_get_setting): Avoid relocations for the settings
1255         map.
1256
1257         * gdk/x11/gdkproperty-x11.c: Avoid relocations for the list
1258         of standard atoms.
1259
1260         * gtk/gtkbindings.c (gtk_binding_set_new): Avoid copying
1261         the set_name by interning it.
1262
1263 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
1264
1265         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
1266         before calling gdk_window_new().
1267
1268         * gtk/gtktextbtree.c: Use the slice allocator for some other small
1269         auxiliary structures as well.
1270
1271         * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
1272         docs.  (#324996)
1273
1274         * gtk/gtktextbtree.c (gtk_text_btree_get_tag_info) 
1275         (gtk_text_btree_remove_tag_info): Use the slice allocator for 
1276         tag info.
1277
1278         * README.in: Mention the stripping of (_F) suffixes.
1279
1280         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Strip a suffix of 
1281         the form "(_<single character>)", since this is the preferred way
1282         for some languages to indicate accelerators.  (#323956, Yang Hong)
1283
1284         * gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus
1285         setting.
1286         (gtk_label_grab_focus): And use it here to select the contents of
1287         the label when appropriate.
1288         (gtk_label_class_init): Use the same keybindings for select all/
1289         unselect all as GtkEntry and GtkTextView.
1290
1291         * gtk/gtkdialog.c (gtk_dialog_map): When looking for the initial
1292         focus, avoid leaving a selection in a label.
1293
1294 2005-12-25  Matthias Clasen  <mclasen@redhat.com>
1295
1296         * gtk/gtkwindow.c: Documentation fixes.  (#324815, 
1297         Ross Burton)
1298
1299         * configure.in: Require GLib 2.9.2
1300
1301 2005-12-24  Matthias Clasen  <mclasen@redhat.com>
1302
1303         * gdk/gdkregion-generic.c: 
1304         * gdk/gdkpolyreg-generic.c: 
1305         * gdk/gdkregion.h: 
1306         * gdk/gdkrectangle.c: Inline docs, use g_assert(), avoid 
1307         extra allocation for rectangular regions.
1308
1309 Thu Dec 22 18:53:14 2005  Tim Janik  <timj@gtk.org>
1310
1311         * gtk/gtkobject.[hc]: renamed GUnowned to GInitiallyUnowned.
1312
1313 Thu Dec 22 17:55:11 2005  Tim Janik  <timj@gtk.org>
1314
1315         * gtk/gtkobject.h: parent type fixups in structure declarations.
1316
1317 Thu Dec 22 16:01:27 2005  Tim Janik  <timj@imendio.com>
1318
1319         * gtk/gtkobject.c: derive GtkObject from GUnowned,
1320         so it initially has a floating reference count.
1321         gtk_object_class_init(): installa floating flag handler with
1322         libgobject, so for GtkObjects the flag is stored as GTK_FLOATING
1323         in the ->flags member.
1324
1325         * tests/floatingtest.c: test floating flag uses.
1326
1327 2005-12-21  Matthias Clasen  <mclasen@redhat.com>
1328
1329         * gdk/gdkregion-generic.c: Use the slice allocator
1330         for regions. Still todo: avoid extra allocations for
1331         the single-rectangle case.
1332
1333         * gtk/gtksettings.c (gtk_settings_class_init): Update
1334         class_n_properties after installing color-hash, since
1335         other classes install settings, too.
1336
1337         * gtk/gtkctree.c: 
1338         * gtk/gtkclist.c: Fix some mistakes in the conversion
1339         from mem chunks to slice allocator.
1340
1341         * gtk/gtkiconview.c (adjust_wrap_width): Adjust the 
1342         wrap-width also if an explicit item width is set.  
1343         (#322475, Alex Graveley)
1344         
1345 2005-12-20  Matthias Clasen  <mclasen@redhat.com>
1346
1347         * gtk/gtkiconview.c (gtk_icon_view_button_press): Reset 
1348         pressed_button to -1 after handling a double click, so that
1349         motion events occurring between here and the release event
1350         don't trigger DND.  (#324588, Dave Andreoli)
1351
1352 2005-12-19  Matthias Clasen  <mclasen@redhat.com>
1353
1354         * gtk/gtkcellrenderer.c: 
1355         * gtk/gtkselection.c: 
1356         * gtk/gtkcalendar.c: 
1357         * gtk/gtkitemfactory.c: 
1358         * gdk/gtkcombo.c: 
1359         * gdk/gdkpixbuf-render.c: Documentation updates
1360
1361         * gtk/gtktreemodel.c: 
1362         * gtk/gtkplug.c: 
1363         * gtk/gtkwindow.c: Documentation fixes.
1364
1365 2005-12-19  Michael Natterer  <mitch@imendio.com>
1366
1367         * gtk/gtkentry.c: implement boolean property "truncate-multiline"
1368         which, when enabled, truncates multi-line pastes or drops to their
1369         first line. Fixes bug #322252.
1370
1371         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): enable
1372         truncate-multiline here.
1373
1374 2005-12-17  Matthias Clasen  <mclasen@redhat.com>
1375
1376         * gtk/gtksettings.c (get_color_hash): Don't crash if
1377         there is no color scheme.  (#324429, Diego Gonzalez)
1378
1379 2005-12-16  Matthias Clasen  <mclasen@redhat.com>
1380
1381         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
1382         * gtk/gtkimmodule.c (gtk_im_module_load): 
1383         * gtk/gtkthemes.c (gtk_theme_engine_load): 
1384         * gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
1385         opening modules.
1386
1387         * gtk/gtksettings.[hc]: Rework the way the color scheme setting
1388         is inherited. Now the overriding is done on a per-color basis,
1389         rather than for the setting as a whole. This has the effect
1390         that themes can declare defaults for all the symbolic colors they
1391         use by specifying a value for the gtk-color-scheme setting in 
1392         their rc file, while still allowing the XSetting to override
1393         "standard" symbolic colors. The hash table is now available
1394         through the color-hash property.
1395         
1396         * gtk/gtkrc.c: Use the new color-hash property.
1397         
1398 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
1399
1400         * gtk/gtkcontainer.c (_gtk_container_focus_sort): Skip unrealized
1401         children when doing focus sorting.  (#323995, Dan Winship)
1402
1403 2005-12-14  Rodney Dawes  <dobey@novell.com>
1404
1405         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
1406         Default to "drive-harddisk" and then fall back to gnome-dev-harddisk
1407         (get_icon_for_mime_type): Look up the mime type icons according to the
1408         Icon Naming Specification and then fall back to the gnome-mime- prefix
1409         for the mime type icons
1410
1411         Fixes #323655
1412         
1413 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
1414
1415         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
1416         cannot be loaded.  (#323504, Kjartan Maraas)
1417
1418         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add docs 
1419         for the row-activated signal.  (#324044, Davyd Madeley)
1420
1421 2005-12-14  Michael Natterer  <mitch@imendio.com>
1422
1423         * tests/test-images/valid_jpeg_progressive_test: new test image.
1424
1425 Tue Dec 13 09:47:20 2005  Tim Janik  <timj@gtk.org>
1426
1427         * README.in: added a link to the floating reference docs in the
1428         2.10 release NEWS section.
1429
1430 2005-12-12  Matthias Clasen  <mclasen@redhat.com>
1431
1432         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_index): 
1433         Speed this function up, using the fact that visibility is 
1434         constant across segments. (#321548, Paolo Borelli)
1435
1436         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
1437         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Speed up
1438         stepping backwards.  (#320638, Larry Ewing, Paolo Borelli)
1439
1440         * gtk/gtkicontheme.c (ensure_valid_themes): Only broadcast
1441         _GTK_LOAD_ICONTHEMES if we detect a real theme change, not
1442         upon initial theme load.  (#323876, Peter Lund)
1443
1444         * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Register
1445         the size-changed signal correctly.  (#323848, Murray Cumming)
1446
1447         * gtk/gtkmarshalers.list: Add necessary marshaller.
1448
1449         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): Don't
1450         fall thru to the wrong window types.  (#323843)
1451
1452         Make the gtk-color-scheme setting work.
1453         
1454         * gtk/gtksettings.h: 
1455         * gtk/gtksettings.c (_gtk_settings_get_color_hash): Add a getter
1456         that takes care of initializing the color hash if it is not 
1457         already there.  
1458
1459         * gtk/gtkrc.c (gtk_rc_color_scheme_changed, gtk_rc_context_get): 
1460         And use it here.        
1461
1462 2005-12-10  Matthias Clasen  <mclasen@redhat.com>
1463
1464         * gdk/gdk.c (gdk_parse_args): Warn if parsing fails,
1465         not if it succeeds. 
1466
1467 2005-12-09  Matthias Clasen  <mclasen@redhat.com>
1468
1469         * gtk/gtkselection.c (gtk_selection_data_get_uris): Don't
1470         leak list[0].  (#323629, Markku Vire)
1471
1472         * gtk/gtktextbuffer.c (paste_from_buffer): Unref the buffer
1473         when freeing the RequestData.  (#323577)
1474
1475 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
1476
1477         * demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
1478         leak text.
1479
1480         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
1481         variable name clash.  (#323475, Ross Burton)
1482
1483 2005-12-07  Ross Burton  <ross@burtonini.com>
1484
1485         * docs/reference/gtk/tmpl/gtkenums.sgml:
1486         * gtk/gtktoolbutton.c:
1487         If the toolbar mode is ICONS and there is no icon set then show
1488         the label, and vice versa (#322019)
1489
1490 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
1491
1492         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
1493         variable name clash.  (#323475, Ross Burton)
1494
1495         * gtk/gtktreeview.c (gtk_tree_view_key_press): Use the correct
1496         window when synthesizing the key event.  (#323077,
1497         Sadrul Habib Chowdhury)
1498         
1499         (gtk_tree_view_search_key_press_event): Also listen for
1500         GDK_ISO_Left_Tab.  (#323077, Sadrul Habib Chowdhury)
1501
1502         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler): 
1503         Only scroll if we have focus.  (#316310, Paolo Borelli)
1504
1505         * gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism,
1506         spotted by Crispin Flowerday.
1507
1508 2005-12-06  Behdad Esfahbod  <behdad@gnome.org>
1509
1510         * gtk/gtksettings.c (settings_update_font_options): Turn metrics
1511         hinting on (part of #307196)
1512
1513 2005-12-06  Matthias Clasen  <mclasen@redhat.com>
1514
1515         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_reset): Don't
1516         commit from reset, it upstets GtkTextView.
1517
1518         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Be more
1519         careful when turning blinking on and off.
1520         (gtk_text_view_focus_out_event): Make the cursor really invisible
1521         when the focus goes away.  (#323087, Sadrul Habib Chowdhury)
1522         (cursor_blinks): Check the gtk-cursor-blink setting first.
1523
1524         * gtk/gtktreeview.c (gtk_tree_view_key_press): Fix refcounting
1525         issues with new_event and its window.
1526
1527         * gtk/gtkmenu.c (gtk_menu_attach_to_widget): Accept NULL
1528         as a detach func.  (#323386, Jorn Baayen)
1529
1530         * gtk/gtkcalendar.c: Avoid conflict with win32 headers in
1531         the libdate routines.  (#323045, Kazuki Iwamoto)
1532
1533         * gdk/gdk.c (gdk_parse_args): 
1534         * gtk/gtkmain.c (gtk_parse_args): Don't ignore errors
1535         from g_option_context_parse(). 
1536
1537 Tue Dec  6 11:37:59 2005  Tim Janik  <timj@gtk.org>
1538
1539         * gdk/gdkevents.c (gdk_event_new): fix missing hash table 
1540         initialization.
1541
1542 Tue Dec  6 10:32:17 2005  Tim Janik  <timj@gtk.org>
1543
1544         * gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code
1545         compiles again.
1546
1547 2005-12-05  Federico Mena Quintero  <federico@ximian.com>
1548
1549         * gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
1550         modifiers", not "event->state && modifiers".  Patch by Sadrul
1551         Habib Chowdhury <imadil@gmail.com>.  Fixes bug #323073.
1552
1553 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
1554
1555         * gtk/gtkwidget.c: 
1556         * gtk/gtkuimanager.c: 
1557         * gtk/gtktreedatalist.c: 
1558         * gtk/gtktext.c: 
1559         * gtk/gtkmain.c: 
1560         * gtk/gtkitemfactory.c: 
1561         * gtk/gtkseparator.[hc]:
1562         * gtk/gtkclist.[hc]: 
1563         * gtk/gtkctree.c:
1564         * gtk/gtkgc.c: Use g_slice instead of mem chunks.
1565
1566 2005-12-05  Michael Natterer  <mitch@imendio.com>
1567
1568         * gdk/x11/gdkevents-x11.c: map the new GtkSettings properties
1569         "timeout-initial", "timeout-repeat", "color-scheme" and
1570         "enable-animations" to X settings.
1571
1572 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
1573
1574         * gdk/gdkevents.c: 
1575         * gdk/gdkcolor.c: Use g_slice instead of mem chunks.
1576
1577         * gtk/gtktreeview.c (gtk_tree_view_key_press): Free new_event
1578         after sending it to the search entry.  (#323209, Crispin Flowerday)
1579
1580         * README.in: Add a note about GTK_FLOATING.
1581
1582         * gtk/gtkobject.h (GTK_OBJECT_FLOATING): Use g_object_is_floating.
1583
1584 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
1585
1586         * gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
1587         a pixbuf.  (#323024, Paolo Borelli)
1588
1589 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
1590
1591         * gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
1592         if mime_type is NULL.  (#322998, Sadrul Habib Chowdhury)
1593
1594 2005-12-02  Michael Natterer  <mitch@imendio.com>
1595
1596         * gtk/gtkmenu.c: applied modified patch from maemo-gtk which
1597         adds a "horizontal-padding" style property. Fixes bug #323036.
1598
1599 2005-12-01  Michael Natterer  <mitch@imendio.com>
1600
1601         Merged modified patch from maemo-gtk that allows to disable
1602         toolbar animations. Addresses bug #142582.
1603
1604         * gtk/gtksettings.c: added boolean property "gtk-enable-animations".
1605         (patch from Christian Neumair)
1606
1607         * gtk/gtktoolbar.c: don't animate toolbar changes if the settings
1608         property is FALSE. Replaced the individual "notify::foo"
1609         connections to GtkSettings by a single "notify" callback and
1610         dispatch internally.
1611
1612 2005-12-01  Michael Natterer  <mitch@imendio.com>
1613
1614         * gtk/gtkmenu.c (gtk_menu_class_init): removed redundant
1615         assignment of widget_class->motion_notify_event.
1616
1617 2005-11-29  Matthias Clasen  <mclasen@redhat.com>
1618
1619         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): Add 
1620         an active property.  (#322673, Jorn Baayen)
1621
1622         Properly handle model changes in GtkTreeSelection: (#322569,
1623         Milosz Derezynski)
1624         
1625         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): 
1626         Get a reference to the model, and stop the iteration if the model
1627         of the treeview is changed on the way.
1628
1629         * gtk/gtktreeprivate.h: 
1630         * gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New 
1631         private function to emit the GtkTreeSelection::changed signal.
1632
1633         * gtk/gtktreeview.c (gtk_tree_view_set_model): Call 
1634         _gtk_tree_selection_emit_changed() when the model changes.
1635
1636 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
1637
1638         Fixes the critical warnings from bug #317999, thus fixing the bug
1639         completely:
1640
1641         * gtk/gtkfilechooserdefault.c
1642         (gtk_file_chooser_default_get_paths): In SELECT_FOLDER mode,
1643         use _gtk_file_chooser_get_current_folder_path() instead of fetching the
1644         impl->current_folder directly.  The latter may be null if we are
1645         in RELOAD_NONE state.
1646
1647 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
1648
1649         Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
1650
1651         * gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the
1652         current_folder to the pending select paths here; the path bar will
1653         give it to us now.
1654         (path_bar_clicked): Add the child_path to the pending select paths
1655         here.
1656         (show_and_select_paths): Don't filter out folders.
1657         (show_and_select_paths): Don't take separate arguments for
1658         only_one_path and multiple paths.
1659
1660         * tests/autotestfilechooser.c (test_folder_switch_and_filters):
1661         New test about preserving the filters when we change folders.
1662
1663 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
1664
1665         * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
1666         -20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)
1667
1668         * gtk/gtkaction.c (gtk_action_sync_button_stock_id) 
1669         (connect_proxy): Buttons use the label property for stock ids.  (#322565,
1670         Milosz Derezynski)
1671
1672         * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
1673         handle the cell list and indices into it.  (#321856)
1674
1675 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
1676
1677         * gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
1678         the timeout is done.  (#322291, Jean-Yves Lefort)
1679
1680 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
1681
1682         * gtk/gtkfilechooserdefault.c (shortcuts_key_press_event_cb): Make
1683         F2 work for renaming bookmarks.  (#320822, Jaap A. Haitsma, patch
1684         by Paolo Borelli)
1685
1686 2005-11-28  Tor Lillqvist  <tml@novell.com>
1687
1688         * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
1689         Implement the conditional use of FlashWindowEx() properly for MSVC
1690         compilations. The code was confusingly assuming that if compiled
1691         with a "new" compiler, it will only be run on "new" Windows
1692         versions. We want it to run on "old" versions, too, even if
1693         compiled with a "new" compiler. There are two orthogonal issues:
1694         whether the compiler defines the necessary API in its headers, and
1695         whether it is present at run-time. (#318077)
1696
1697         * gtk/gtkcalendar.c (gtk_calendar_init): Use GetLocaleInfo() on
1698         Windows to get the localized weekday and month names. strftime()
1699         in the Microsoft C library returns strings in the default codepage
1700         for the locale of the process, not the system codepage. Thus
1701         g_locale_to_utf8() isn't useable on the return value from
1702         strftime(). (#322603)
1703
1704 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
1705
1706         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup): 
1707         Fix an example.  (#322493, Elie De Brauwer)
1708         
1709         Fix two memory handling problems in GtkTreeView: (#322350, 
1710         Søren Sandmann)
1711         
1712         * gtk/gtktreeview.c (gtk_tree_view_destroy) 
1713         (gtk_tree_view_set_model): Remove all references to nodes in
1714         the old model.
1715         (gtk_tree_view_real_collapse_row): Unmark expanded_collapsed_node
1716         before removing the children.
1717
1718         * gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a 
1719         PangoLayout here.  (#322505, Paolo Borelli)
1720
1721 2005-11-27  Tor Lillqvist  <tml@novell.com>
1722
1723         Once again rework Win32 window decoration code. Doesn't break
1724         #104514. The dialogs in gtk-demo now have the same decorations and
1725         behaviour as on X11. Tried to fix #322516 but it seems very hard
1726         to make the trivial sample program there behave as expected. OTOH,
1727         simply moving the gtk_window_decorate() call in the #322516 sample
1728         program after the call to gtk_widget_show() helps...
1729             
1730         * gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
1731         the correct semantics. Each call to gdk_window_set_decorations()
1732         which calls this function is supposed to affect all decorations.
1733
1734         (decorate_based_on_hints): New function, looks at both geometry
1735         hints and type hint and sets window decorations based on
1736         that. Consolidate code from gdk_window_set_geometry_hints() and
1737         gdk_window_set_type_hint() here.
1738
1739         (gdk_window_set_geometry_hints, gdk_window_set_type_hint): Call
1740         decorate_based_on_hints().
1741
1742 2005-11-25  Dom Lachowicz <cinamod@hotmail.com>
1743
1744         * modules/engines/ms-windows/*.[ch]: Merge with gtk-wimp's CVS.
1745         Includes improved menu icon spacing, [+]/[-] expander drawing,
1746         status-bar gippie drawing, and notebook tab drawing.
1747         
1748 2005-11-24  Michael Natterer  <mitch@imendio.com>
1749
1750         * gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint
1751         that used to hold signal handler IDs to two guint of padding.
1752
1753         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as
1754         gulong here.
1755
1756         (gtk_toolbar_screen_changed): changed accordingly.
1757
1758 Wed Nov 23 18:55:47 2005  Tim Janik  <timj@imendio.com>
1759
1760         * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
1761         in terms of the GObject floating/sink API.
1762
1763         * gtk/gtkaboutdialog.c:
1764         * gtk/gtkaction.c:
1765         * gtk/gtkcellview.c:
1766         * gtk/gtkclist.c:
1767         * gtk/gtkcolorsel.c:
1768         * gtk/gtkcombobox.c:
1769         * gtk/gtkfilechooserdefault.c:
1770         * gtk/gtkiconview.c:
1771         * gtk/gtkinvisible.c:
1772         * gtk/gtkitemfactory.c:
1773         * gtk/gtklayout.c:
1774         * gtk/gtkmenu.c:
1775         * gtk/gtkmenutoolbutton.c:
1776         * gtk/gtknotebook.c:
1777         * gtk/gtkprogress.c:
1778         * gtk/gtkrange.c:
1779         * gtk/gtkspinbutton.c:
1780         * gtk/gtkstatusicon.c:
1781         * gtk/gtktext.c:
1782         * gtk/gtktextview.c:
1783         * gtk/gtktoolbar.c:
1784         * gtk/gtktoolbutton.c:
1785         * gtk/gtktoolitem.c:
1786         * gtk/gtktreeitem.c:
1787         * gtk/gtktreeview.c:
1788         * gtk/gtktreeviewcolumn.c:
1789         * gtk/gtkuimanager.c:
1790         * gtk/gtkviewport.c:
1791         * gtk/gtkwidget.c:
1792         * gtk/gtkwindow.c:
1793         ported to use GObject's g_object_ref_sink().
1794
1795         * gtk/gtkcolorsel.c:
1796         * gtk/gtkfilechooserdefault.c:
1797         * gtk/gtkaboutdialog.c:
1798         fixed compiler warnings.
1799
1800 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
1801
1802         * gtk/gtksettings.c (gtk_settings_class_init): Add some docs
1803         about gtk-color-scheme.
1804
1805 2005-11-23  Behdad Esfahbod  <behdad@gnome.org>
1806
1807         * configure.in (enable_explicit_deps): Fix typo when checking
1808         libtool config deplibs_check_method. Moreover, enable explicit
1809         deps if we get anything other than pass_all from libtool. (part of
1810         #318750)
1811
1812 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
1813
1814         * gtk/updateiconcache.c (write_csource): Don't create a big
1815         string, since Visual C++ doesn't like strings longer than 64k. 
1816         (#322238, Kazuki IWAMOTO
1817
1818         * gtk/gtkentry.c: Include gtkimcontextsimple.h  (#322235,
1819         Kazuki IWAMOTO)
1820
1821 2005-11-23  Michael Natterer  <mitch@imendio.com>
1822
1823         * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel
1824         windows on other screens (correctly remove all temporary
1825         references).
1826
1827 2005-11-23  Michael Natterer  <mitch@imendio.com>
1828
1829         Added symbolic themable colors. Patch is a merged version of
1830         proposals from Matthias and maemo-gtk. Fixes bug #114355.
1831
1832         * configure.in: require glib >= 2.9.1 for refcountable hashtables.
1833
1834         * gtk/gtksettings.c: added property "color-scheme" which is a
1835         string defining colors like "foreground:black\nbackground:grey".
1836         Automatically provide a name->GdkColor hash table mapping for the
1837         color scheme.
1838
1839         * gtk/gtkrc.[ch]: added list of color hashes that works like the
1840         list of icon factories. Append the color scheme hash from
1841         GtkSettings if it exists. Extended gtkrc syntax to allow defining
1842         and referencing of logical colors. Also allow to modulate colors
1843         in gtkrc by using arbitrary expressions of mix(), shade(),
1844         lighter() and darker(). Added internal function
1845         _gtk_rc_style_get_color_hashes().
1846
1847         * gtk/gtkstyle.[ch]: keep a private list of color hashes around.
1848         Get the list from _gtk_rc_style_get_color_hashes(). Export
1849         internal function _gtk_style_shade() (used by above color
1850         expressions). Added public API gtk_style_lookup_color() which
1851         looks up a logical color by name.
1852
1853         * gtk/gtk.symbols: add gtk_style_lookup_color
1854
1855         * tests/testgtkrc: use symbolic colors for making
1856         the scrollbars red.
1857
1858 2005-11-22  Michael Natterer  <mitch@imendio.com>
1859
1860         Made button-press timeouts which work like key repeat timeouts
1861         configurable. Addresses bug #142582:
1862
1863         * gtk/gtksettings.c: added properties "gtk-timeout-initial" and
1864         "gtk-timeout-repeat" which defalt to 200/20 (ms).
1865
1866         Use the values from GtkSettings instead of hardcoding them
1867         (the repeat value is either taken as-is for fast repeat or
1868         multiplied by 5 for slow repeat). Changed all places to use these
1869         two standard initial/repeat timings:
1870
1871         * gtk/gtkcalendar.c (unchanged 200/20)
1872         * gtk/gtknotebook.c (unchanged 200/100)
1873         * gtk/gtkpathbar.c (changed from 300/150 to 200/100)
1874         * gtk/gtkrange.c (changed from 250/100 to 200/100)
1875         * gtk/gtkspinbutton.c (unchanged 200/20)
1876
1877 2005-11-21  Anders Carlsson  <andersca@imendio.com>
1878
1879         * configure.in:
1880         * gtk/Makefile.am:
1881         * gdk/Makefile.am:
1882         * gdk/quartz/*:
1883         Add quartz backend.
1884         
1885         * docs/tools/Makefile.am:
1886         Only build docshooter when the X11 backend is used.
1887         
1888         * gtk/gtkplug-stub.c:
1889         Include gtkplug.h here.
1890         
1891         * gtk/gtksocket-stub.c:
1892         Include gtksocket.h here.
1893         
1894 2005-11-21  Matthias Clasen  <mclasen@redhat.com>
1895
1896         * gtk/gtkinputdialog.c: Convert GtkInputDialog to 
1897         g_type_class_add_private.
1898
1899         * gtk/gtksocket.c: Convert GtkSocket to g_type_class_add_private.
1900
1901         * gtk/gtkmenu.c: Convert GtkMenu to g_type_class_add_private.
1902
1903         * gtk/gtk.symbols:
1904         * gtk/gtkcombobox.[hc]: Add a tearoff-title property,
1905         with getter and setter.  (#316482, Olexiy Avramchenko)
1906
1907         * tests/testcombo.c (main): Test gtk_combo_box_set_title
1908
1909         * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
1910         pointed out by Michael Natterer.
1911
1912         Fix for bug #321542, Benedikt Meurer:
1913         
1914         * gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
1915         Emit notify::active.
1916         
1917         (gtk_combo_box_child_show, gtk_combo_box_child_hide): Use
1918         g_signal_emit, not g_signal_emit_by_name.
1919
1920 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
1921
1922         Fix crashes in connection with pathbar scrolling (#321560,
1923         Bogdan Nicula)
1924         
1925         * gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons): 
1926         Stop scrolling when desensitising slider buttons.
1927         (gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press): 
1928         And use it here.  
1929
1930         * gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate
1931         scrolling_down flag.
1932
1933 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
1934
1935         * gtk/gtkpathbar.c (button_clicked_cb): Fix a C99ism.
1936         (#321777, Jens Granseuer)
1937
1938         * gtk/gtkaction.c (disconnect_proxy): Disconnect the
1939         sync callback for the visibility property.  (#321761,
1940         Philip Langdale)
1941
1942         Turn off input methods in invisible entries, since
1943         they are confusing.  (#317002, James Su)
1944         
1945         * gtk/gtkentry.c (gtk_entry_set_visibility): Toggle input
1946         methods if visibility changes.
1947         (popup_targets_received): Don't show the input method
1948         menu if the entry is invisible.  
1949
1950 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
1951
1952         * README.in: Add a note about range arrow sensitivity.
1953
1954         * perf/treeview.c: const correctness fixes
1955         found by Arjan van de Ven and gcc.
1956
1957 2005-11-16  Michael Natterer  <mitch@imendio.com>
1958
1959         * gtk/gtkimage.c (animation_timeout): call
1960         gtk_window_process_updates() so the animation keeps running even
1961         if the main loop is busy with sources that eat a lot of cpu with
1962         high priority. Fixes bug #321444.
1963
1964         (gtk_image_new_from_animation): document the fact that the
1965         animation will stop running if the main loop is busy with sources
1966         that have priorities higher than G_PRIORITY_DEFAULT.
1967
1968         * tests/testimage.c: added test case that shows an animation even
1969         though a cpu-eating idle function is running.
1970
1971 2005-11-16  Michael Natterer  <mitch@imendio.com>
1972
1973         * gdk/x11/gdkevents-x11.c (_gdk_events_uninit): new internal
1974         function which destroys the display's event source. Also removes
1975         the source from the global display_sources list and unrefs it.
1976
1977         * gdk/x11/gdkprivate-x11.h: declare the function.
1978
1979         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): call it
1980         instead of half-destroying the source here.
1981
1982 2005-11-15  Matthias Clasen  <mclasen@redhat.com>
1983
1984         * gtk/gtktreestore.c (gtk_tree_store_move): Fix a memory
1985         leak.  (#321032, Peter Zelezny)
1986
1987 2005-11-15  Michael Natterer  <mitch@imendio.com>
1988
1989         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): destroy
1990         display->xid_ht as late as possible (right before XCloseDisplay)
1991         because it still needs to be around when the display's screens are
1992         finalized. (#85715)
1993
1994 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
1995
1996         * gtk/gtkselection.c (gtk_selection_data_set_uris): Don't
1997         leak result.  (#321441, Tommi Komulainen)
1998
1999 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
2000
2001         * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes):
2002         Don't crash if there is no builtin icon.
2003
2004 2005-11-14  Michael Natterer  <mitch@imendio.com>
2005
2006         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
2007         removed redundant calls to g_object_notify().
2008
2009 2005-11-13  Matthias Clasen  <mclasen@redhat.com>
2010
2011         * gdk/gdkcolor.c (gdk_color_parse): Documentation 
2012         improvements.  (#321338)
2013
2014         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Make
2015         limit an inclusive boundary.  (#321299)
2016
2017 2005-11-12  Michael Natterer  <mitch@imendio.com>
2018
2019         * gtk/Makefile.am: fixed icon rules so gtkbuiltincache.h is only
2020         rebuilt if needed.
2021
2022 2005-11-12  Dom Lachowicz <cinamod@hotmail.com>
2023
2024         * modules/engines/ms-windows/msw_style.c: Bug #313627. Make win32 
2025         theme's handling of toolbars, handleboxes, and menubars more in-line
2026         with Microsoft's IE style.
2027         * modules/engines/ms-windows/*.c: Indentation cleanups
2028         
2029 2005-11-12  Matthias Clasen  <mclasen@redhat.com>
2030
2031         Make builtin icons work in gtk_window_set_icon_name() 
2032         (#321046, Maxim Udushlivy)
2033
2034         * gtk/gtkicontheme.c (insert_theme): Always insert the default
2035         theme.
2036         (ensure_valid_themes): Call _gtk_icon_theme_ensure_builtin_cache()
2037         from here.
2038         (theme_lookup_icon, find_builtin_icon): ...and not from here.
2039         (gtk_icon_theme_lookup_icon): Remove an unncessary assert.
2040         (gtk_icon_theme_get_icon_sizes): Also check builtin icons.
2041
2042 2005-11-12  Tor Lillqvist  <tml@novell.com>
2043
2044         * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
2045         dotfiles, no such convention on Win32. Just hide files with the
2046         hidden attribute. (#314627)
2047
2048 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
2049
2050         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not
2051         check whether the path is a folder.  It is useful to bookmark
2052         files as well (e.g. todo.txt), and this will also help
2053         performance.
2054         (shortcuts_add_bookmark_from_path): Likewise.
2055         (shortcuts_activate_iter): Change folders or select files, as
2056         appropriate.
2057
2058 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
2059
2060         * tests/autotestfilechooser.c (main): Use
2061         g_log_set_default_handler() instead of explicitly setting a
2062         handler for each domain.
2063
2064         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Only get
2065         the base path of the volume if it is mounted.
2066
2067 2005-11-11  Michael Natterer  <mitch@imendio.com>
2068
2069         Added per-stepper API for GtkRange's stepper sensitivity as
2070         discussed in bug #321056:
2071
2072         * gtk/gtkenums.h: added GtkSensitivityType which can be
2073         { AUTO, ON, OFF }.
2074
2075         * gtk/gtkrange.[ch]: added properties "lower-stepper-sensitivity"
2076         and "upper-stepper-sensitivity" and public getters/setters for
2077         them. Changed stepper drawing to honor the new properties.
2078
2079         * gtk/gtk.symbols: added the new symbols.
2080
2081 2005-11-10  Matthias Clasen  <mclasen@redhat.com>
2082
2083         * gtk/gtkcombobox.c: Add show-popup and hide-popup signals and
2084         emit them when the popup is shown or hidden.  (#162531, Tommi
2085         Komulainen)
2086
2087         * tests/testcombo.c: Add an example of popuplating a combobox
2088         on click.
2089
2090         * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column): Another
2091         erroneous semicolon.
2092
2093         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get): Remove an erroneous
2094         semicolon. 
2095
2096         Don't corrupt odd keymaps (#316638, Kean Johnston)
2097         
2098         * gdk/x11/gdkkeys-x11.c (set_symbol): Auxiliary function to
2099         handle frobbing keymaps with odd numbers of syms/code.
2100         
2101         * gdk/x11/gdkkeys-x11.c (update_keymaps): Use set_symbol() to 
2102         frob the keymap.
2103
2104         Improve navigation to parent folders.  (#318444, Andrei Yurkevich)
2105         
2106         * gtk/gtkpathbar.[hc]: Add a child_path argument to
2107         the path_clicked signal.
2108         * gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the
2109         child_path, if it is provided.
2110         * gtk/marshalers.list (path_bar_clicked): Add the necessary
2111         glue.
2112
2113         * gtk/gtkmenu.c: Fix some compiler warnings. (#321141,
2114         Kjartan Maraas)
2115         
2116         * gtk/gtk.symbols: 
2117         * gtk/gtktreeview.h: 
2118         * gtk/gtktreeview.c: Implement a getter for headers-clickable.
2119         (#163851, Richard Hult)
2120
2121 2005-11-10  Michael Natterer  <mitch@imendio.com>
2122
2123         Applied patch from maemo-gtk that addresses many issues wrt
2124         display migration and display closing (bug #85715).
2125
2126         * gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
2127         default display to NULL when it's closed. Instead set the most
2128         recently opened display as new default (if one exists).
2129
2130         * gdk/gdkpango.c (on_renderer_display_closed): fixed signature
2131         of this callback.
2132
2133         * gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
2134         exist before unrefing them.
2135
2136         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
2137         is closed, allow destruction of the root window.
2138
2139         * gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
2140         dispose(), free stuff that was leaked before.
2141
2142         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
2143         the xsettings_client still exists before destroying it.
2144
2145         * gdk/x11/gdkkeys-x11.c: added finalization and free the allocated
2146         X resources.
2147
2148         * gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new
2149         dispose() implementation.
2150
2151         * gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to
2152         dispose() and check if it still exists before unrefing it. Set
2153         their pointers to NULL/None *after* upchaining in dispose(),
2154         because X11 implementations of members of the parent class still
2155         need them for their own destruction.
2156
2157         * gdk/x11/gdkvisual-x11.c: removed finalize() implementation which
2158         was g_error()ing when finalizing a visual.
2159
2160         * gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use
2161         get_clipboard_widget() because it would create the widget if it
2162         doesn't exist. Use g_object_get_data() directly instead.
2163
2164         * gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature
2165         of this callback.
2166
2167 2005-11-10  Simos Xenitellis  <simos@gnome.org>
2168
2169         * configure.in: Added Tatar (tt) to ALL_LINGUAS.
2170
2171 Wed Nov  9 16:29:42 2005  Tim Janik  <timj@imendio.com>
2172
2173         * gtk/gtkrange.c: patch from maemo-gtk that changes GtkRange
2174         to render its arrows insensitive when the adjustment is in
2175         its min or max position. this makes range arrow behaviour 
2176         consistent with spin button behaviour. (#321056)
2177
2178 2005-11-09  Tor Lillqvist  <tml@novell.com>
2179
2180         * gdk/gdkinternals.h
2181         * gdk/gdk.c (gdk_debug_keys[]): Add new GDK_DEBUG_DRAW flag to
2182         the GdkDebugFlag enum.
2183
2184         * gdk/win32/gdkdrawable-win32.c: Use DRAW to trigger GDK_NOTEs in
2185         this file instead of MISC. Now asking for MISC will give mainly
2186         window manipulation debugging output with the Win32 backend.
2187
2188 2005-11-09  Tor Lillqvist  <tml@novell.com>
2189
2190         * gdk/win32/gdkwindow-win32.c: Remove unnecessary includes.
2191
2192         (_gdk_win32_get_adjusted_client_rect): Remove this two-line
2193         function which was used only in one place.
2194
2195         (get_outer_rect): Use _gdk_win32_adjust_client_rect().
2196
2197         (gdk_window_set_geometry_hints): If we have identical minimum and
2198         maximum size hints, remove the resize and maximize
2199         decorations/functions. (#104514)
2200
2201         If we have a maximum size hint, remove the maximize
2202         decoration/function but ensure the resize decoration/function is
2203         available. Otherwise ensure both resize and maximize
2204         decorations/functions are there.
2205
2206         (set_or_clear_style_bits): Factored out common code from
2207         gdk_window_set_decorations() and gdk_window_set_functions(). 
2208
2209         Hack the window style setting once more: Only touch the window
2210         style bits corresponding to the GdkWMDecoration or GdkWMFunction
2211         parameter bitmasks. Hopefully this finally is the correct thing to
2212         do. We used to clear all other bits than those that were being
2213         set, or set all other bits than those that were being cleared.
2214
2215         Take into account that adding or removing decorations leaves the
2216         window's outer size unchanged, i.e., the client area's size and
2217         position change. This is apparently not what we want, so change
2218         also the window's (outer) position and size appropriately so that
2219         the client area's position and size stay constant.
2220
2221         gtk-demo's color selector dialog is now non-resizable like on X11
2222         (I tested with metacity in GNOME). Torn off menus are shrinkable
2223         vertically but have a maximum size, and are not maximizable or
2224         minimizable, like on X11.
2225
2226         (gdk_window_set_decorations, gdk_window_set_functions): Let
2227         set_or_clear_decorations() do most of the job.
2228
2229         * gdk/win32/gdkprivate-win32.h: Remove declaration of
2230         _gdk_win32_get_adjusted_client_rect().
2231
2232 2005-11-09  Tor Lillqvist  <tml@novell.com>
2233
2234         * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32)
2235         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_init,
2236         gdk_window_get_type_hint, gdk_window_get_type_hint): Store the
2237         type hint. Implement gdk_window_get_type_hint() by just returning
2238         the hint stored.
2239
2240 2005-11-09  Tor Lillqvist  <tml@novell.com>
2241
2242         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
2243         Remove code that has been permanently ifdeffed out for two years.
2244
2245 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
2246
2247         * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
2248         finalizing a gc.  (#320789, Nickolay V. Shmyrev)
2249
2250         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
2251         icons if they would make the request large enough to cause
2252         Xlib to loose the connection.  (#320909, Claudio Saavedra)
2253
2254 2005-11-08  Michael Natterer  <mitch@imendio.com>
2255
2256         * gdk/gdk.symbols
2257         * gdk/gdkwindow.h
2258         * gdk/x11/gdkwindow-x11.c: added gdk_window_get_type_hint() (patch
2259         extracted from maemo-gtk). Fixes bug #320872.
2260
2261 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
2262
2263         * gtk/gtkfilechooserdefault.c (shortcuts_reorder): Don't
2264         looks the bookmark label when reordering.  (#320720, Jeremy Cook)
2265
2266         * gtk/gtkpathbar.[hc]: Set focus-on-click to FALSE for all buttons.
2267         Don't grab focus when a slider button is pressed, instead, use
2268         a bit in the pathbar struct to determine whether to scroll up
2269         or down.  (#314486, Carlos Garnacho)
2270
2271         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
2272         Don't popup the completions if the focus has already been
2273         moved somewhere else.  (#319914, Christian Persch)
2274
2275         * gtk/gtktoolitem.c (_gtk_tool_item_toolbar_reconfigured): 
2276         Raise the drag_window after reconfiguring the 
2277         toolbar.  (#320803, Christian Persch)
2278
2279         * gtk/gtk.symbols: 
2280         * gtk/gtkfilechooserbutton.h: 
2281         * gtk/gtkfilechooserbutton.c: Add a focus-on-click property
2282         with setter and getter.  (#318945, Christian Persch)
2283         
2284 Mon Nov  7 16:15:16 2005  Tim Janik  <timj@imendio.com>
2285
2286         * configure.in: fixed missing $X_CFLAGS setup in case x11.pc is present.
2287
2288 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
2289
2290         * configure.in: Adjust to the stock icon changes.
2291         
2292 2005-11-07  Tor Lillqvist  <tml@novell.com>
2293
2294         * gdk/win32/gdkcursor-win32.c (pixbuf_to_hbitmaps_normal):
2295         Correct the calculation of maskstride. (#320152, Peter Zelezny)
2296         
2297 2005-11-06  Michael Natterer  <mitch@imendio.com>
2298
2299         * gtk/Makefile.am (icons): fixed rule to actually create the
2300         symlinks, erroring out if anything goes wrong.
2301
2302 2005-11-06  Tor Lillqvist  <tml@novell.com>
2303
2304         * gtk/updateiconcache.c (build_cache): Can't rename a file if the
2305         target exists on Win32. First rename the target temporarily, then
2306         if the renaming of the source to target fails, restore the
2307         original name for the target.
2308
2309         * gtk/Makefile.am: Use EXEEXT in the dependency on gtk-update-icon-cache.
2310
2311 2005-11-06  Tor Lillqvist  <tml@novell.com>
2312
2313         (pixbuf_to_hbitmaps_alpha_winxp): Use an 1-bit mask bitmap,
2314         like pixbuf_to_hbitmaps_normal().
2315         (_gdk_win32_pixbuf_to_hicon_supports_alpha): Check
2316         G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x by
2317         setting the G_WIN32_PRETEND_WIN9X environment variable.
2318         
2319 2005-11-06  Tor Lillqvist  <tml@novell.com>
2320
2321         Make icon masks work on Win98 (#320152, Peter Zelezny)
2322
2323         * gdk/win32/gdkcursor-win32.c (create_color_bitmap): Take also a
2324         parameter for the depth of the bitmap, so that this function can
2325         be used to create 1-bit bitmaps, too.
2326         (pixbuf_to_hbitmaps_normal): Create an 1-bit bitmap for the mask,
2327         and initialize it properly.
2328
2329 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
2330
2331         Store builtin stock icons in an icon cache, instead of
2332         populating a hash table with pixbufs at startup, to save both
2333         memory and startup time.
2334
2335         * gtk/stock-icons/*: Reorganize the icons in a directory structure
2336         suitable for gtk-update-icon-cache, and rename them to match the
2337         stock ids.
2338
2339         * gtk/gtkiconcache.[hc]: Support non-mmapped icon caches, and
2340         add _gtk_icon_cache_has_icon_in_directory().
2341
2342         * gtk/updateiconcache.c: Support a --source <VARIABLE> argument
2343         to store the contents of the icon cache in a C header.
2344
2345         * gtk/gtkbuiltincache.h: Generated private header which contains 
2346         the icon cache for the builtin icons.
2347
2348         * gtk/gtkicontheme.c: Create a GtkIconCache for the builtin
2349         icons, and use that in addition to the hash table whenever
2350         builtin icons are searched.
2351
2352         * gtk/gtkiconfactory.c: Add GTK_ICON_SOURCE_STATIC_ICON_NAME and
2353         use it for static stock ids. 
2354         (get_default_icons): Don't add the builtin
2355         icons to the icon theme, just register the stock ids.
2356         (render_fallback_image): Take the fallback image out of the
2357         builtin icon cache.
2358         
2359         * gtk/Makefile.am: Remove stock-icons from SUBDIRS and add 
2360         the necessary machinery to rebuild gtkbuiltincache.h.
2361
2362 2005-11-04  Michael Natterer  <mitch@imendio.com>
2363
2364         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): applied patch
2365         from maemo-gtk that changes the mtime check for rc files from
2366         '>' to '!=', otherwise theme changes go unnoticed when turning
2367         back the clock (Tommi Komulainen).
2368
2369 2005-11-04  Tor Lillqvist  <tml@novell.com>
2370
2371         * gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
2372         leak on Win32.
2373
2374 2005-11-03  Tor Lillqvist  <tml@novell.com>
2375
2376         * gdk/win32/gdkcursor-win32.c: As there is only one GdkDisplay in
2377         the Win32 backend, check that GdkDisplay* parameters are equal to
2378         _gdk_display instead of using the unnecessarily general
2379         GDK_IS_DISPLAY().
2380
2381         (pixbuf_to_hbitmaps_alpha_winxp): Rename the variables for the
2382         color bitmap to have "color" in their name, for similarity with
2383         pixbuf_to_hbitmaps_normal(). Create a color bitmap for the mask,
2384         too, instead of creating a b&w bitmap with CreateBitmap(). Set up
2385         the mask bitmap's contents, ones for those pixels in the color
2386         bitmap where the alpha is zero, zero for other pixels. We used to
2387         use an uninitialized mask bitmap! This meant that icons and
2388         cursors created presumably worked more or less by accident.
2389         Totally blank icons with zero alpha everywhere (as used by
2390         gtktrayicon.c) definitely did not work as expected.
2391
2392         * gtk/Makefile.am: Include gtkstatusicon.c on all platforms.
2393
2394         * gtk/gtkstatusicon.c: Implement for Win32. Use code from
2395         gtktrayicon-win32.c as applicable. (gtktrayicon-win32.c is not
2396         necessary and can be removed from CVS. It has never been mentioned
2397         in gtk/Makefile.am.) No tray icon widget, GtkImage or GtkTooltips
2398         are used on Win32. One label widget is used (but never shown) as
2399         gtk_widget_render_icon() needs a widget.
2400
2401         Ifdefs used as necessary in several places. It might be cleaner to
2402         split out the backend-specific parts to separate files, or at
2403         least collect them into separate blocks in the file.
2404
2405         (wndproc): New function. Window procedure to monitor mouse events
2406         in the system tray icon. Call gtk_status_icon_button_press() as
2407         needed.
2408         (create_tray_observer): New function. Creates a hidden window that
2409         only serves as a tray icon message observer.
2410
2411         * tests/teststatusicon.c (icon_activated): Position the dialog
2412         with GTK_WIN_POS_CENTER.
2413         (do_quit): New function, hide and unref the GtkStatusIcon, and
2414         call gtk_main_quit().
2415         (popup_menu): Add a Quit menu item that calls do_quit().
2416         
2417 2005-11-02  Tor Lillqvist  <tml@novell.com>
2418
2419         * gdk/win32/gdkcolor-win32.c
2420         * gdk/win32/gdkscreen-win32.c
2421         * gdk/win32/gdkwindow-win32.c: Whitespace consistency
2422         fixes. Remove superfluous test for GdkWindow* parameters being
2423         non-NULL. Testing GDK_IS_WINDOW() is enough. As there is only one
2424         GdkScreen and one GdkDisplay in the Win32 backend, use those
2425         variables instead of the getter functions. For GdkDisplay* and
2426         GdkScreen* parameters, check that they are equal to the
2427         corresponding singleton variables instead of the more general
2428         GDK_IS_DISPLAY() or GDK_IS_SCREEN().
2429
2430 2005-11-02  Matthias Clasen  <mclasen@redhat.com>
2431
2432         * gtk/gtktextview.c: Remove some g_return_if_fail() from
2433         static functions, replace some others by g_assert().
2434         
2435         * gtk/gtktextview.c (selection_motion_event_handler) 
2436         (gtk_text_view_start_selection_drag): Keep track of the original
2437         selection boundaries during a drag selection, in order to correctly
2438         decide when to extend or shrink the selection.  (#320167,
2439         reported by Arvind S N, patch by Paolo Borelli)
2440
2441         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
2442         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Replace
2443         manual offset calculations by g_utf8_offset_to_pointer().
2444         (#320360, Paolo Borelli)
2445
2446 Tue Nov  1 16:18:24 2005  Tim Janik  <timj@imendio.com>
2447
2448         * gtk/gtkrbtree.[hc]: get rid of GAllocator usage, allocate and free 
2449         nodes via the g_slice_*() API.
2450         _gtk_rbtree_new(): fixed wrong node allocation via g_new().
2451
2452 2005-11-01  Tor Lillqvist  <tml@novell.com>
2453
2454         * gdk/win32/gdkprivate-win32.h
2455         * gdk/win32/gdkglobals-win32.c
2456         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Add more
2457         pre-interned GdkAtoms and pre-registered clipboard formats. Sort
2458         their declarations, definitions and assignments into a more
2459         logical and consistent order.
2460
2461         * gdk/win32/gdkmain-win32.c (_gdk_win32_cf_to_string): Include the
2462         CF_ prefix for the predefined clipboard format names. Put quotes
2463         around registered format names to distinguish them.
2464         
2465         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Return
2466         immediately with a warning if the property type is STRING, TEXT,
2467         COMPOUND_TEXT or SAVE_TARGETS, as these are X11-specific that we
2468         should never pretend to handle on Win32. Handle only UTF8_STRING
2469         here, other formats with delayed rendering. Use \uc1 instead of
2470         \uc0 when generating Rich Text Format for easier testability on
2471         XP, where WordPad misinterprets \uc0 encoded characters. Add more
2472         GDK_NOTE debugging output for Clipboard operations.
2473
2474         * gdk/win32/gdkselection-win32.c: Debugging printout improvements.
2475         (gdk_selection_convert): Don't pretent to handle STRING, just
2476         UTF8_STRING. Streamline error handling, don't unnecessarily have a
2477         GError which then isn't used for anything anyway if it gets set.
2478         (gdk_win32_selection_add_targets): Skip also STRING, TEXT,
2479         COMPOUND_TEXT and SAVE_TARGETS in addition to UTF8_STRING.
2480
2481         * config.h.win32.in: Sync with what configure produces.
2482
2483         * configure.in: Don't look for X_PACKAGES unless building for
2484         x11. (#313986, John Ehresman)
2485
2486 2005-10-28  Erdal Ronahi  <erdal.ronahi@gmail.com>
2487
2488         * configure.in: Added ku (Kurdish) to ALL_LINGUAS
2489                         Wondered why there was no ku there before??
2490
2491 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
2492
2493         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Add the popup
2494         window to the toplevels window group.  (#319912, Christian Persch)
2495
2496 2005-10-28  Kristian Rietveld  <kris@gtk.org>
2497
2498         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): fix
2499         stupid thinko.
2500
2501 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
2502
2503         * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix the anchor of the default
2504         drag cursors.  (#319200, Federico Mena Quintero)
2505
2506         * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle
2507         Shift-G to go to the previous match, like firefox.  (#320061, Christian 
2508         Neumair)
2509
2510         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_build_level): Fix a
2511         C99ism.  (#320000, Kazuki Iwamoto)
2512
2513         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Add the little 
2514         stars.  (#319985, Bastien Nocera)
2515
2516         * gtk/gtktreeview.c (gtk_tree_view_search_entry_flush_timeout): Return
2517         FALSE, so we don't flush repeatedly.  (#319151, Alexander Larsson)
2518
2519 2005-10-26  Michael Natterer  <mitch@imendio.com>
2520
2521         Fix bug #319974:
2522
2523         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
2524         make sure that setting any of pixbuf/stock-id/icon-name resets the
2525         others because they are mutually exclusive, and that unsetting any
2526         of them only resets the pixbuf and nothing else. Also added
2527         some missing g_object_notify().
2528
2529         (gtk_cell_renderer_pixbuf_get_property): simplified calls to
2530         g_value_set_object().
2531
2532         (gtk_cell_renderer_pixbuf_create_stock_pixbuf)
2533         (gtk_cell_renderer_pixbuf_create_named_icon_pixbuf): added
2534         g_object_notify ("pixbuf").
2535
2536 2005-10-27  Matthias Clasen  <mclasen@redhat.com>
2537
2538         * gtk/gtktreeview.c (gtk_tree_view_button_press): Be more 
2539         careful about initializing cell_area.  (#319382, Tommi
2540         Komulainen)
2541
2542         * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
2543         Ctrl-PageUp/PageDown.  (#318670, Christian Neumair)
2544
2545         * demos/gtk-demo/clipboard.c (paste_received): Only set the
2546         text if it is not NULL.  (#319930, Thomas Klausner)
2547
2548         * gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the
2549         loader before trying to get the pixbuf.  (#319930, Thomas Klausner)
2550
2551 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
2552
2553         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
2554         * gtk/gtkthemes.c (gtk_theme_engine_load): 
2555         * gtk/gtkimmodule.c (gtk_im_module_load): Use G_MODULE_BIND_LAZY
2556         when dlopening modules.  (#319557, Laszlo Peter)
2557
2558 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
2559
2560         * gtk/gtktextbtree.c (gtk_text_btree_resolve_bidi): Only use text
2561         segments when determining text direction.  (#319065, Tommi Komulainen)
2562
2563         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash
2564         on duplicate destroy.  (#318953, Gustavo Carneiro)
2565
2566         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog): 
2567         Point out that destroy-with-parent is a bad idea for the dialog
2568         passed to this function.  (#318943, Christian Persch)
2569
2570         * */Makefile.am: use $(GLIB_MKENUMS) instead of 
2571         glib-mkenums.  (#318582, Damien Carbery)
2572
2573         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Clarify
2574         docs.  (#317682, Christian Neumair)
2575
2576         * gdk/x11/gdkdnd-x11.c: Remove an extra const which doesn't
2577         seem to affect the placement of the data in the readonly 
2578         section, and causes problems with some compilers.  (#317844)
2579
2580 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
2581
2582         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
2583         Fix some issues with background drawing in RTL.  (#318781,
2584         Eric Cazeaux)
2585
2586         * tests/Makefile.am:
2587         * tests/testentrycompletion.c: Apply a patch by Christian
2588         Persch to add property editors.
2589
2590         * gtk/gtkstatusicon.c: Emit activate on single-click,
2591         not on double-click, change proposed by Milosz Derezynski.
2592
2593 2005-10-25  Kristian Rietveld  <kris@gtk.org>
2594
2595         Fixes #311955, reported by Markku Vire; and a lot more.
2596
2597         * gtk/gtktreemodelfilter.c: Made this thing work correctly.
2598         Levels can now have invisible nodes cached, functions have been
2599         rewritten/refactored to take this into account; also the logic in
2600         some functions has been corrected.
2601         
2602         Each referenced node now references all visible children or a single
2603         invisible child, in order to be able to monitor all changes in the
2604         child model required for correct operation.
2605
2606         When a virtual root is set, all nodes on the virtual root level are
2607         referenced.
2608
2609         At last, a bunch of random bug fixes and comment updates.
2610
2611 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
2612
2613         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Add some
2614         more docs.  (#319722, Paolo Borelli)
2615
2616         * gdk/x11/gdkxftdefaults.c (init_xft_settings): Make the 
2617         initialization of screen_x11->xft_rgba more explicit.  (#319627,
2618         Bogdan Nicula)
2619
2620         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Fix whitespace
2621         in a blurb.  (#319499, Francisco Javier F. Serrador)
2622
2623 2005-10-24  Matthias Clasen  <mclasen@redhat.com>
2624
2625         Add settings to hide the input method and Unicode control character
2626         submenus in the context menus of GtkEntry and GtkTextView.  
2627         
2628         * gdk/x11/gdkevents-x11.c: Map GTK+ settings to X settings.
2629         
2630         * gtk/gtksettings.c (gtk_settings_class_init): Declare GTK+ settings here.
2631
2632         * gtk/gtktextview.c (popup_targets_received): 
2633         * gtk/gtkentry.c (popup_targets_received): Use the settings here.
2634
2635 2005-10-24  Kristian Rietveld  <kris@gtk.org>
2636
2637         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): emitting
2638         row-has-child-toggled when the level is not in the cache does not
2639         make sense.  (This bug probably crept in during the early stages
2640         of GtkTreeModelSort when there wasn't a correct row-has-child-toggled
2641         implementation yet),
2642         (gtk_tree_model_sort_real_unref_node): only get the child iter
2643         when we will actually also use it.
2644
2645 2005-10-22  Michael Natterer  <mitch@imendio.com>
2646
2647         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
2648         widget being realized, in addition to being visible, to avoid
2649         running into precondition check in gtk_tree_view_get_cell_area().
2650         (approved by Kris).
2651
2652 2005-10-22  Dom Lachowicz <cinamod@hotmail.com>
2653
2654         * modules/engines/ms-windows/msw_style.c (setup_msw_rc_style): 
2655         Experimentally, scrollbar steppers can shrink to 8 pixels on 
2656         Win32. Reflect that in the theme.
2657         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Experimentally,
2658         there is a 1-pixel border between a scrollbar and its child
2659         in ScrolledWindows on Win32. Reflect that in the theme.
2660         
2661 2005-10-20  Matthias Clasen  <mclasen@redhat.com>
2662
2663         * gtk/gtklabel.c (gtk_label_create_window): Use GDK_WINDOW_CHILD
2664         for the selection window.  (#318806, Alex Larsson)
2665
2666 2005-10-18  Federico Mena Quintero  <federico@ximian.com>
2667
2668         Fixes bug #317999:
2669
2670         * tests/autotestfilechooser.c
2671         (test_button_folder_states_for_action): Test that we have either
2672         $cwd or the explicitly-set folder.
2673         (test_reload_sequence): Likewise.
2674
2675         * gtk/gtkfilechooserdefault.c
2676         (gtk_file_chooser_default_get_current_folder): If our reload_state
2677         is RELOAD_EMPTY, return a GtkFilePath corresponding to $cwd.
2678
2679 2005-10-14  Tor Lillqvist  <tml@novell.com>
2680
2681         * gdk/win32/gdkdisplay-win32.c: Remove the clipboard viewer code.
2682         It didn't really do anything useful, and was just confusing and
2683         incomplete. Comments claimed we don't do delayed rendering, but in
2684         fact we do, for images. (The delayed rendering code has other
2685         problems, though, see #168173.) The clipboard viewer code was
2686         probably even buggy (the WM_CHANGECBCHAIN handled didn't propagate
2687         the message when necessary). It was just test code, it said so in
2688         a comment. Add something similar back later if necessary.
2689
2690         (_win32_on_clipboard_change,
2691         _gdk_win32_register_clipboard_notification): Remove.
2692
2693         (gdk_display_supports_selection_notification,
2694         gdk_display_request_selection_notification): Always just return
2695         FALSE. We didn't generate any GDK_OWNER_CHANGE events anywhere.
2696
2697 2005-10-13  Tor Lillqvist  <tml@novell.com>
2698
2699         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't treat
2700         Alt-Enter specially. It does not have any special meaning and
2701         should be passed on to the application. (#318378, Tim Evans)
2702
2703 2005-10-13  Tor Lillqvist  <tml@novell.com>
2704
2705         Set visual depth to 24 for 32 bits-per-pixel devices on
2706         Win32. This allows gdk_drawable_real_draw_pixbuf() to use the
2707         optimized composite_0888() function rather than the slower image
2708         dithering functions to draw pixbufs (#313993, John Ehresman)
2709
2710         * gdk/win32/gdkimage-win32.c (_gdk_win32_new_image): Use
2711         _gdk_windowing_get_bits_for_depth() to initialize
2712         GdkImage::bits_per_pixel.
2713         (_gdk_windowing_get_bits_for_depth): Return 32 bits for depth 24.
2714
2715         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use
2716         _gdk_windowing_get_bits_for_depth() to initialize
2717         BITMAPINFOHEADER::biBitCount.
2718
2719         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Set
2720         GdkVisual::depth to 24 even if GetDeviceCaps(BITSPIXEL) returns
2721         32.
2722
2723 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
2724
2725         * demos/gtk-demo/appwindow.c: (about_cb):
2726           use PACKAGE_VERSION,bump year (#318654)
2727
2728 2005-10-11  Matthias Clasen  <mclasen@redhat.com>
2729
2730         * gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off 
2731         toggle here with the matching on toggle if it immediately follows. 
2732         This is a common case, and handling it here prevents quadratic blowup 
2733         in cleanup_line() below.  (#317125)
2734
2735         * gtk/gtktextsegment.h: 
2736         * gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
2737         the character counts into this function instead of computing them
2738         again.
2739
2740 2005-10-10  Tommi Komulainen  <tommi.komulainen@iki.fi>
2741
2742         * gtk/gtkfilechooser.h (GtkFileChooserError): Add ALREADY_EXISTS error
2743         code.
2744         * gtk/gtkfilechooserdefault.c
2745         (gtk_file_chooser_default_add_shortcut_folder): Return an error code
2746         when the shortcut already exists in the sidebar.  (#147521)
2747
2748 2005-10-09  Matthias Clasen  <mclasen@redhat.com>
2749
2750         * tests/testcombo.c: Demonstrate how to use custom widgets in
2751         a GtkComboBox.  
2752
2753 2005-10-07  Federico Mena Quintero  <federico@ximian.com>
2754
2755         Fixes bug #317999:
2756
2757         * tests/autotestfilechooser.c (test_reload_sequence): Ensure that
2758         the the result of gtk_file_chooser_get_folder() is NULL or
2759         non-NULL at the right times.  Log the tests.
2760         (test_button_folder_states): New test for the initial states of
2761         the current folder in GtkFileChooserButton.
2762         (main): Test that the number of warnings/errors/critical errors is
2763         zero.
2764
2765         * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder):
2766         Clarify the documentation on when this can return NULL.
2767         (gtk_file_chooser_get_current_folder_uri): Likewise.
2768
2769         * gtk/gtkfilechooserbutton.c (struct
2770         _GtkFileChooserButtonPrivate): Added a folder_has_been_set flag;
2771         we use it to keep track of whether a folder has been set.
2772         (gtk_file_chooser_button_map):  Implement.  If no folder has been
2773         loaded before, we at least try to load $cwd here.
2774         (gtk_file_chooser_button_constructor): If the construct-time
2775         dialog already has a folder set, turn on our folder_has_been_set
2776         flag.
2777         (dialog_current_folder_changed_cb): Turn on our
2778         folder_has_been_set flag.
2779
2780 2005-10-07  Michael Natterer  <mitch@gimp.org>
2781
2782         * gtk/gtkfilechooserdefault.c: remove some explicit #defines of
2783         PROFILE_FILE_CHOOSER because they break compilation after the
2784         removal of <unistd.h>.
2785
2786 2005-10-07   Matthias Clasen  <mclasen@redhat.com>
2787
2788         * gtk/gtkfilechooserdefault.c: Properly fix the unistd.h include
2789         by moving it out of the profiling ifdef.
2790
2791         * gtk/gtkfilechooserdefault.c: Remove a redundant (and
2792         unconditional) include of unistd.h  (#318211, Kazuki Iwamoto)
2793
2794         * gtk/gtktexttag.c (gtk_text_attributes_ref): Use
2795         g_return_val_if_fail(), not g_return_if_fail().  (#318412,
2796         Kazuki Iwamoto)
2797
2798 2005-10-06  Matthias Clasen  <mclasen@redhat.com> 
2799                 
2800         * gtk/gtk.symbols:
2801         * gtk/gtktextbuffer.h:
2802         * gtk/gtktextbuffer.c: Add a readonly has-selection property
2803         with a getter.  (#318161, Paolo Borelli)
2804
2805 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
2806
2807         * README.in: Start collecting release notes for 2.10.
2808
2809         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
2810         leak fix, since the assertion failures were traced to 
2811         an xchat bug.  (#314696)
2812         
2813         * gtk/gtkstyle.c (gtk_style_detach):
2814         (gtk_style_attach):  Documentation improvements.
2815         (gtk_style_detach): Assert that the attach_count is > 0.
2816
2817 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
2818
2819         * gtk/gtkfilechooserdefault.c (switch_to_shortcut): Take a
2820         shortcut position, not a ShortcutsIndex, to make the function more
2821         generic.
2822         (home_folder_handler): Pass the resolved index to
2823         switch_to_shortcut(), rather than just SHORTCUTS_HOME.
2824         (desktop_folder_handler): Likewise for SHORTCUTS_DESKTOP.
2825         (gtk_file_chooser_default_class_init): Add a "quick-bookmark"
2826         binding signal, and bind it to Alt-1, Alt-2. ..., Alt-0.  These
2827         make the respective key switch to the first, second, ..., tenth
2828         bookmark.
2829         (quick_bookmark_handler): Implement.
2830
2831 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
2832
2833         * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and
2834         Desktop; just use their real names on the file system for the
2835         user-visible names.
2836
2837         * gtk/gtkfilechooserdefault.c
2838         (gtk_file_chooser_default_class_init): Add a "desktop-folder"
2839         binding signal, and bind it to M-d by default.
2840         (desktop_folder_handler): Implement the default handler.
2841         (home_folder_handler): Use a helper function.
2842         (switch_to_shortcut): New helper function.
2843         (shortcuts_append_home): Don't special-case the name of "Home";
2844         just use the folder name.
2845
2846 2005-10-04  Tor Lillqvist  <tml@novell.com>
2847
2848         * gtk/gtkcalendar.c (gtk_calendar_init): Make it compile without
2849         HAVE__NL_TIME_FIRST_WEEKDAY. (#317910, Mathias Hasselmann)
2850
2851 2005-10-04  Matthias Clasen  <mclasen@redhat.com>
2852
2853         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Revert the change
2854         from yesterday, since it leads to assertion failures.  (#317879,
2855         Sebastian Bacher)
2856
2857 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
2858
2859         * gtk/gtkcalendar.c (gtk_calendar_init): Call 
2860         calendar_compute_days() after setting priv->week_start.
2861
2862 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
2863
2864         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
2865         removing it from the hash table.  (#314696, Benjamin Berg)
2866
2867 2005-10-01  Tor Lillqvist  <tml@novell.com>
2868
2869         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
2870         BitBlt() fails with ERROR_INVALID_HANDLE, the most probable cause
2871         is that the the desktop isn't visible because the session has been
2872         switched, the screen is locked, or a terminal server session
2873         disconnected, so no error message necessary. (#137796)
2874
2875         It is of course remotely possible that BitBlt() failing with
2876         ERROR_INVALID_HANDLE might also be caused by some other
2877         problem. We could strive for perfection and track whether the
2878         desktop is visible by using WTSRegisterSessionNotification() and
2879         handling WM_WTSESSION_CHANGE. I think that's overdoing it just for
2880         this issue, though. If we would track desktop visibility, we
2881         should then avoid even trying to update the display at all while
2882         the desktop isn't visible.
2883
2884 2005-09-30  Matthias Clasen  <mclasen@redhat.com>
2885
2886         * gtk/gtkcalendar.c (gtk_calendar_init): Another attempt
2887         to correct the calculations for the first week day. We may
2888         just have to remove this code if too many locales turn out 
2889         to have broken data. 
2890
2891         * gtk/gtkimage.c (gtk_image_expose): Don't leak pixbuf in
2892         some cases.  (#317611, Tommi Komulainen)
2893
2894         * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
2895         Prevent overflow when storing size hints in an unsigned
2896         short variable. Tracked down by Ray Strode and Søren Sandmann.
2897
2898 2005-09-29  Matthias Clasen  <mclasen@redhat.com>
2899
2900         * gtk/gtkbutton.c (gtk_button_set_image): Check arguments.  (#317491,
2901         Paolo Borelli)
2902
2903         * gtk/gtkpaned.c (gtk_paned_grab_notify): Stop drags when being
2904         grab shadowed.  (#317332)
2905
2906 2005-09-29  Tor Lillqvist  <tml@novell.com>
2907
2908         * gtk-zip.sh.in: DLLs are always in bin nowadays, no need to test.
2909
2910 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
2911
2912         * tests/autotestfilechooser.c (test_reload_sequence): Oops, return
2913         if the unmap test fails.
2914         (test_reload_sequence): Use gtk_widget_show_now() instead of
2915         gtk_widget_show() for the dialog.
2916         Thanks to Tim Janik for noticing these.
2917
2918 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
2919
2920         * tests/testcellrenderertext.c: New file with a set of tests for
2921         GtkCellRendererText.  The idea is to run a text renderer through
2922         most of its interesting property values to see that it works
2923         correctly.
2924
2925         * tests/Makefile.am: Added testcellrenderertext.
2926
2927         * gtk/gtkfilechooserdefault.c (load_set_model): Mark the
2928         entry/exit of this function for profiling.
2929         (gtk_file_chooser_default_style_set): Mark the start/end of the
2930         calls to the parent class and the the signal emission for profiling.
2931
2932 2005-09-29  Tor Lillqvist  <tml@novell.com>
2933
2934         * gtk/gtkmain.c (_gtk_get_localedir): The locale directory is
2935         passed to bindtextdomain() which isn't UTF-8-aware, so convert to
2936         system codepage using g_win32_locale_filename_from_utf8().
2937         (#317457, Kazuki Iwamoto)
2938
2939 2005-09-28  Matthias Clasen  <mclasen@redhat.com>
2940
2941         * gtk/gtkselection.c (_gtk_selection_request): Free mult_atoms 
2942         here. (#317039, Paolo Borelli)
2943
2944         * gtk/gtktexttag.h: 
2945         * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
2946         to make this function work as boxed copy function.  (#317455,
2947         Gustavo Carneiro)
2948
2949         * gtk/gtkclipboard.c (request_image_received_func): Don't unref
2950         NULL.  (#316828, Tor Lillqvist)
2951
2952 2005-09-28  Tor Lillqvist  <tml@novell.com>
2953
2954         * modules/input/imime.c: Include <config.h>. (#317444, Kazuki
2955         Iwamoto)
2956
2957 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
2958
2959         Don't reload the current folder unnecessarily on ::map().
2960
2961         * gtk/gtkfilechooserprivate.h (ReloadState): New enum to represent
2962         the reloading state.
2963         (struct _GtkFileChooserDefault): Added a "reload_state" field.
2964
2965         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2966         Initialize impl->reload_state.
2967         (gtk_file_chooser_default_map): Check the impl->reload_state; load
2968         a default folder if no folder has been set, or reload the current
2969         one only if we had been unmapped first.
2970         (gtk_file_chooser_default_update_current_folder): Set the
2971         reload_state to RELOAD_HAS_FOLDER.
2972         (gtk_file_chooser_default_unmap): Implement, and set the
2973         reload_state to RELOAD_WAS_UNMAPPED.
2974         (shortcuts_model_create): Don't call shortcuts_add_bookmarks()
2975         here; they'll get (re)loaded on ::map() anyway.
2976
2977         * gtk/gtkfilechooserwidget.c
2978         (gtk_file_chooser_widget_constructor): Don't set a default folder here.
2979
2980         * tests/autotestfilechooser.c (test_action_widgets): Don't take in
2981         a dialog; build it ourselves.
2982         (test_reload): New test to ensure that we don't load the default
2983         folder more than once, and that we reload it when
2984         unmapping/remapping.
2985         (get_impl_from_dialog): New utility function.
2986         (test_widgets_for_current_action): Use get_impl_from_dialog().
2987
2988 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
2989
2990         * gtk/gtkfilechooserdefault.c
2991         (gtk_file_chooser_default_constructor): Mark the entry/exit of
2992         this function for profiling.
2993         (check_icon_theme): Likewise.
2994         (change_icon_theme): Likewise.
2995         (settings_notify_cb): Likewise.
2996         (gtk_file_chooser_default_screen_changed): Likewise.
2997         (update_chooser_entry): If the selection is empty, clear the file
2998         name entry only if we are in CREATE_FOLDER mode.  In SAVE mode,
2999         nothing will be selected when the user starts typeahead in the
3000         treeview, and we don't want to clear the file name entry in that
3001         case --- the user could be typing-ahead to look for a folder name.
3002         Fixes bug #308332, patch by Jürg Billeter.
3003
3004 2005-09-27  Matthias Clasen  <mclasen@redhat.com>
3005
3006         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
3007         Pop below the entry if there's more free space below the entry
3008         than above.  (#316948, Tommi Komulainen)
3009
3010 2005-09-26  Federico Mena Quintero  <federico@ximian.com>
3011
3012         Do not create the save mode-specific widgets in the open modes, so
3013         that we don't carry their baggage around.
3014
3015         * gtk/gtkfilechooserdefault.c
3016         (gtk_file_chooser_default_constructor): Don't create the
3017         save_widgets here.
3018         (save_widgets_create): Set the impl->save_widgets directly here,
3019         instead of passing the widgets back to the caller.  Also, pack
3020         them into the impl's box.
3021         (update_appearance): Create or destroy the save widgets as
3022         appropriate.  Set the action of the save_file_name_entry here.
3023         (shortcuts_add_current_folder): Set the active item in the
3024         save_folder_combo only if it exists.
3025         (gtk_file_chooser_default_set_property): Don't set the action of
3026         the save_file_name_entry here.
3027         (gtk_file_chooser_default_update_current_folder): Set the base
3028         folder of the save_file_name_entry only if the entry exists.
3029         (shortcuts_drag_data_received_cb): Cast the selection_data->data
3030         to (const char *) since that's what shortcuts_drop_uris() expects.
3031         (file_list_drag_data_received_cb): Likewise, for
3032         g_uri_list_extract_uris().
3033
3034 2005-09-26  Tor Lillqvist  <tml@novell.com>
3035
3036         * gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
3037         the shaped flag here, too. (#316871)
3038         (gdk_window_shape_combine_region): Currently unimplemented, so
3039         don't do anything to the shaped flag here.
3040
3041 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
3042
3043         Fix #316871, reported by Dan Winship:
3044         
3045         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
3046
3047         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) 
3048         (gdk_window_shape_combine_region): Set it here.
3049
3050         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
3051         remove the child area for shaped windows.
3052
3053 2005-09-23  Matthias Clasen  <mclasen@redhat.com>
3054
3055         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
3056         Don't leak expander pixbufs.  (#316946, Tommi Komulainen)
3057
3058 2005-09-22  Michael Natterer  <mitch@imendio.com>
3059
3060         Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
3061         consistent with GTK+ terminology:
3062
3063         * gtk/gtkcellrendererkeys.[ch]
3064         * tests/testkeys.c: removed...
3065
3066         * gtk/gtkcellrendereraccel.[ch]
3067         * tests/testaccel.c: ...and added.
3068
3069         * gtk/Makefile.am
3070         * gtk/gtk.h
3071         * gtk/gtk.symbols
3072         * tests/Makefile.am: changed accordingly.
3073
3074 2005-09-22  Matthias Clasen  <mclasen@redhat.com>
3075
3076         * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
3077         for the grab-broken-event signal, noticed by Damon Chaplin.
3078
3079 2005-09-21  Tor Lillqvist  <tml@novell.com>
3080
3081         * gdk/win32/gdkselection-win32.c (gdk_selection_convert,
3082         gdk_text_property_to_text_list_for_display,
3083         gdk_text_property_to_utf8_list_for_display,
3084         gdk_win32_selection_add_targets,
3085         _gdk_win32_selection_convert_to_dib): Free return value from
3086         gdk_atom_name().
3087         (gdk_text_property_to_text_list_for_display): Drop GError variable
3088         that isn't actually used after being set.
3089
3090 2005-09-20  Johan Dahlin  <jdahlin@async.com.br>
3091
3092         * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in 
3093         documentation.
3094
3095 2005-09-20  Tor Lillqvist  <tml@novell.com>
3096
3097         * gdk/win32/gdkselection-win32.c
3098         (gdk_selection_owner_get_for_display): Do return the correct owner
3099         for CLIPBOARD (i.e., the owner of the Windows Clipboard, if it is
3100         a window GDK knows about). The reason to return NULL seems to have
3101         gone when in the fix for bug #163702 the artificial
3102         GDK_SELECTION_CLEAR event generation was removed from
3103         gdk_selection_send_notify_for_display(). Fixes bug #316552.
3104
3105 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
3106
3107         Avoid unnecessary XkbGetState() calls and XkbStateNotify
3108         events.  (#151555, Søren Sandmann)
3109
3110         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use 
3111         XkbSelectEventDetails() to select XkbStateNotify events
3112         for only the state we care about.
3113
3114         * gdk/x11/gdkprivate-x11.h:
3115         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_state_changed): Pass
3116         the event into the function and update the keymap state from
3117         the state information contained in the event. Adjust all callers.
3118         
3119 2005-09-19  Matthias Clasen  <mclasen@redhat.com>
3120
3121         * gtk/gtkiconview.c: Use g_list_nth_data() instead of g_list_nth()->data
3122         in multiple places to avoid segfaults if the index is out of range.  
3123         (#316422, Guillaume Cottenceau)
3124         (gtk_icon_view_set_drag_dest_item): 
3125         (gtk_icon_view_scroll_to_path): Fix a typo in the docs.  (#316419,
3126         #316424, Guillaume Cottenceau)
3127
3128 2005-09-18  Hans Breuer  <hans@breuer.org>
3129
3130         * gtk/gtktrayicon-win32.c : now handling events by hard-coded 
3131         g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
3132
3133 2005-09-18  Hans Breuer  <hans@breuer.org>
3134
3135         * gdk/gdk.symbols gdk/win32/gdkwin32.h gdk/win32/gdkcursorwin32.c : export
3136         _gdk_win32_pixbuf_to_hicon() as gdk_win32_pixbuf_to_hicon_libgtk_only()
3137         * gtk/gtktrayicon-win32.c : a lot of debug spew but it has started to show
3138         the icon and is blinking with teststatusicon. More to come ...
3139
3140 2005-09-18  Hans Breuer  <hans@breuer.org>
3141
3142         * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
3143         cause gtkprogressbar.c has #include <config.h> conditionally; less
3144         noise from generated gtk.def
3145         * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
3146         
3147         * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
3148         For me it works as well as the *NIX implemenation, that is not at all.
3149
3150         * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
3151
3152         * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
3153         only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
3154         back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
3155         again - if compiled properly.
3156
3157         * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
3158         already coming with Gtk+. Makes it compile on win32.
3159
3160 2005-09-18  Guilherme de S. Pastore  <gpastore@cvs.gnome.org>
3161
3162         * README.cvs-commits: fixed some tiny typos
3163
3164 2005-09-16  Tor Lillqvist  <tml@novell.com>
3165
3166         * modules/engines/ms-windows/msw_style.c (draw_extension,
3167         draw_box_gap): Check whether the widget actually is a GtkNotebook
3168         before treating it as such. Drop some unneeded local variables,
3169         use parameter with same information instead. (#316412)
3170
3171 2005-09-15  Federico Mena Quintero  <federico@ximian.com>
3172
3173         * tests/autotestfilechooser.c: Start a set of automated tests for
3174         the file chooser.  The only test in there right now doesn't pass
3175         yet.  It specifies the intended behavior of the first optimization
3176         of a series which I'll do on the file chooser (see
3177         http://primates.ximian.com/~federico/news-2005-09.html#14 for the
3178         details of this optimization).
3179
3180         * tests/Makefile.am: Added autotestfilechooser.c.
3181
3182         * gtk/gtkfilechooserprivate.h (struct
3183         _GtkFileChooserDialogPrivate): Move all the file chooser's private
3184         structures to here, so that they can be accessed by
3185         tests/autotestfilechooser.c:  _GtkFileChooserDialogPrivate,
3186         _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
3187
3188         * gtk/gtkfilechooserdialog.c: See above.
3189
3190         * gtk/gtkfilechooserwidget.c: See above.
3191
3192         * gtk/gtkfilechooserdefault.c: See above.
3193
3194 Thu Sep 15 15:27:55 2005  Tim Janik  <timj@imendio.com>
3195
3196         * gtk/gtkwindow.c: 
3197         gtk_window_map_event(): new function to work around lost unmap requests.
3198         fixes bug #316180.
3199
3200 2005-09-14  Federico Mena Quintero  <federico@ximian.com>
3201
3202         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
3203         an easy-to-find profiling marker when starting to create a file
3204         chooser.
3205         (browse_files_model_finished_loading_cb): Likewise, for when the
3206         chooser is finished loading.
3207
3208 2005-09-14  Tristan Van Berkom <tvb@cvs.gnome.org>
3209
3210         * gtk/gtkcolorbutton.c: Check "color" argument in 
3211         gtk_color_button_set_color ()
3212
3213 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
3214
3215         * gtk/gtklabel.c (gtk_label_get_type): 
3216         * gtk/gtkbutton.c (gtk_button_get_type): 
3217         * gtk/gtkwindow.c (gtk_window_group_get_type): No point in 
3218         using a mem chunk for window groups, buttons, labels.
3219
3220         * gtk/updateiconcache.c (foreach_remove_func): Fix
3221         a use-after-free bug.  (#316256, Alexander Nedotsukov)
3222
3223 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
3224
3225         * gtk/*.c: Various cleanups.  (#315360, Kjartan Maraas)
3226
3227         * gdk/*.c: Various cleanups.  (#315359, Kjartan Maraas)
3228         
3229 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
3230
3231         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
3232         Let GDK_Return pass through in some more cases.
3233
3234         * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
3235         activating the entry. 
3236
3237         * gtk/gtkiconview.c (gtk_icon_view_class_init):
3238         (gtk_icon_view_get_dest_item_at_pos):  Fix typos in the 
3239         docs.  (#316008, #316027, #316121, Guillaume Cottenceau)
3240
3241         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
3242         (#316001, Guillaume Cottenceau)
3243
3244         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
3245         mistake in the docs.  (#315993, Guillaume Cottenceau)
3246
3247         * tests/testentrycompletion.c (create_simple_completion_model): Add
3248         some strings containing multibyte characters.
3249
3250         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
3251         Fix prefix insertion for multibyte characters.  (#316095,
3252         Tommi Komulainen)
3253
3254         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
3255         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): Silently
3256         return NULL if the widget is not realized.  (#316023,
3257         Guillaume Cottenceau)
3258
3259 2005-09-11  Matthias Clasen  <mclasen@redhat.com>
3260
3261         * gdk/gdk.symbols: 
3262         * gdk/gdkproperty.h: 
3263         * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string): 
3264         New function to avoid pointless strdups when creating atoms
3265         from static strings.  
3266
3267         * gdk/x11/*.c:
3268         * gtk/*.c:  Use gdk_atom_intern_static_string() where 
3269         appropriate.
3270
3271 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
3272
3273         * gtk/gtkcellrendererkeys.h: 
3274         * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
3275         and editing accelerators, a port of EggCellRendererKeys .
3276
3277         * gtk/gtk.symbols:
3278         * gtk/gtk.h:
3279         * gtk/Makefile.am: Add the keys cell renderer.
3280
3281         * tests/Makefile.am: 
3282         * tests/testkeys.c: Test GtkCellRendererKeys
3283
3284 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
3285
3286         Make it possible to determine if a key event is for a
3287         modifier key:
3288         
3289         * gdk/x11/gdkprivate-x11.h: 
3290         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): 
3291         New function to determine if a keycode is mapped to a modifier.
3292         (get_xkb): Get the modmap.
3293
3294         * gdk/x11/gdkevents-x11.c (translate_key_event): Set the 
3295         is_modifier bit by calling _gdk_keymap_key_is_modifier().
3296
3297         * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
3298         bit.
3299
3300 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
3301
3302         * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an 
3303         unused variable, noticed by Kjartan Maraas.
3304
3305 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
3306
3307         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): 
3308         Make drag reordering work properly for columns other than the
3309         first.  (#315054, Dan Winship)
3310         
3311         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
3312         invalid fontnames better. (#136926, Michael R. Walton)
3313         
3314         Stop cursor blinking in non-editable regions of a text view.
3315         (#311508, Torbjörn Andersson)
3316         
3317         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): 
3318         (cursor_blinks): Take editability into account when deciding
3319         whether the cursor blinks.
3320         (gtk_text_view_button_release_event): 
3321         (gtk_text_view_move_cursor_internal): Update cursor blinking here.
3322
3323         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
3324         Use connect_after to connect to the focus_out event. This
3325         ensures that the entry has already stopped blinking by the time
3326         we emit the edited signal.  (#315229, Thomas Leonard)
3327
3328         * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
3329
3330         * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
3331         unsigned ints to -1.  (#315481, Kjartan Maraas)
3332
3333         * gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
3334         to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
3335         (#314473, Stanislav Brabec)
3336
3337 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
3338
3339         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
3340         memory handling.  (#314975, Torsten Schoenfeld)
3341
3342         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
3343         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
3344         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
3345         * gtk/gtklabel.c (gtk_label_class_init): 
3346         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
3347         Stylistic improvements and clarifications for some blurbs. 
3348         (#315520, Clytie Siddall)
3349
3350 2005-09-09  Tor Lillqvist  <tml@novell.com>
3351
3352         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
3353         display name. There is only one GdkDisplay on Win32, and
3354         constructing the display name isn't entirely trivial, so cacheing
3355         is probably worth it. For instance GIMP calls this function a lot.
3356         (gdk_display_open): Call gdk_display_get_name() to prime the
3357         cached name.
3358         (gdk_display_get_n_screens, gdk_display_get_screen,
3359         gdk_display_get_default_screen): Verify parameter correctness like
3360         the X11 backend does.
3361
3362         * gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
3363         Return a freshly allocated string, as the API specifies. Fixes a
3364         heap corruption problem that caused random errors and crashes in
3365         GIMP, for instance.
3366
3367 2005-09-07  Matthias Clasen  <mclasen@redhat.com>
3368
3369         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
3370         Make C-u commit and restart hex input if we are already in a
3371         hex sequence.
3372
3373 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
3374
3375         * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
3376         (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
3377         if they are mapped to the same modifier.
3378
3379         * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
3380         to gtkstatusicon.c and gtktrayicon-x11.c
3381
3382         * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
3383         default accel mod mask.
3384
3385         * gtk/gtkaccelgroup.c (gtk_accelerator_parse): 
3386         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
3387         Don't use GDK_ALT_MASK.
3388
3389         * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
3390
3391 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
3392
3393         Add support for extra virtual modifiers:  (#85780, Owen Taylor)
3394         
3395         * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
3396         modifiers.
3397
3398         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
3399         Mod2 - Mod5 and against Super, Hyper, Meta.
3400
3401         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
3402         * gtk/gtkaccelgroup.c (gtk_accelerator_parse) 
3403         (gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
3404
3405         * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a 
3406         modmap to maintain the information which X modifiers map to
3407         virtual modifiers.
3408         (get_xkb): Set up the modmap from the XKB tables.
3409         (update_keymaps): Set up the modmap from the information returned
3410         by XGetModifierMapping in the non-XKB case.
3411
3412         * gdk/x11/gdkprivate-x11.h: 
3413         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New 
3414         function to set the virtual modifiers in the state.
3415
3416         * gdk/x11/gdkevents-x11.c (translate_key_event): Call 
3417         _gdk_keymap_add_virtual_modifiers here.
3418
3419         * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super, 
3420         Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
3421         for GDK_MOD1_MASK.
3422
3423 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
3424
3425         * gtk/gtkaction.c (connect_proxy): Set the label of a button
3426         if it has no child.  (#315253, John Finlay)
3427
3428 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
3429
3430         * gtkimcontextsimple.h: Add a modifiers_dropped bit
3431
3432 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
3433
3434         * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
3435         on destroy to avoid problems when they are called on a destroyed
3436         widget.  (#315135, John Cupitt)
3437         
3438         * gtk/gtkentry.c (gtk_entry_class_init):
3439         * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
3440         for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
3441
3442         * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
3443         code. Now we only steal a single key combination, Ctrl-Shift-U,
3444         instead of sixteen. 
3445         A hex Unicode sequence must be started with Ctrl-Shift-U, followed
3446         by a sequence of hex digits entered with Ctrl-Shift still held.
3447         Releasing one of the modifiers or pressing space while the modifiers
3448         are still held commits the character. It is possible to erase
3449         digits using backspace.
3450         As an extension to the above, we also allow to start the sequence
3451         with Ctrl-Shift-U, then release the modifiers before typing any
3452         digits, and enter the digits without modifiers.
3453         (#82011, Owen Taylor)
3454         
3455 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
3456
3457         * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
3458         we still need to deliver the destroy event.  (#314980, Chris Lahey)
3459
3460         * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset 
3461         im context before committing \n or \t.
3462
3463 2005-09-02  Alexander Larsson  <alexl@redhat.com>
3464
3465         * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
3466         (shortcuts_activate_volume):
3467         Handle base_path being null in the rest of the cases (#310270)
3468
3469 2005-09-02  Tor Lillqvist  <tml@novell.com>
3470
3471         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
3472         cursor position also in root window coordinates. Prune out
3473         superfluous WM_MOUSEMOVE events even earlier, based on root window
3474         coordinates. Windows sends WM_MOUSEMOVE messages after a new
3475         window has ben mapped below the cursor even if the mouse doesn't
3476         move. We used to generate GDK_MOTION_NOTIFY in these cases. This
3477         confused at least gtk_menu_motion_notify(). (#314995)
3478
3479         * gtk/gtkintl.h: No need to include config.h here. It caused
3480         warnings about GTK_LOCALEDIR being redefined on Win32 when
3481         compiling files where gtkintl.h is included after gtkprivate.h
3482         (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
3483
3484         * gtk/gtkplug.c: Include config.h.
3485
3486 2005-09-01  Matthias Clasen  <mclasen@redhat.com>
3487
3488         * gtk/gtkfilesystemunix.c: Pass statbufs down to 
3489         xdg_mime_get_mime_type_for_file() where possible, to avoid
3490         useless re-stating.  
3491         
3492         * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
3493         typo.  (#314921, Guillaume Cottenceau)
3494
3495         * gdk/*.c: Intern some more strings.
3496         * gtk/gtkintl.h: 
3497         * gtk/*.c: Define an I_() macro and use it instead of the 
3498         bulky g_intern_static_string().
3499
3500 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
3501
3502         * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
3503         instead of copying it.
3504
3505         * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
3506
3507         * gtk/*.c: Also intern static strings passed to 
3508         g_object_set_data().
3509
3510         * gdk/Makefile.am: 
3511         * gtk/Makefile.am: Intern type names in code generated by 
3512         glib-mkenums, too.
3513
3514         * gtk/*.c: 
3515         * gdk/x11/*.c: 
3516         * gdk/*.c: Intern type names before registering the type to avoid 
3517         unnecessary copies.
3518
3519         * configure.in: Require GLib 2.9.0
3520
3521 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
3522
3523         * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
3524         and add icon-size and icon-size-set properties.  (#314172)      
3525
3526         * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
3527         groups across transient parents.  (#312918, Christian Persch)
3528
3529         * gtk/gtktreemodel.c: Some documentation fixes.  (#314882,
3530         Guillaume Cottenceau)
3531
3532         * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): 
3533         Fix a typo in the docs.  (#314878, Guillaume Cottenceau)
3534
3535 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
3536
3537         * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
3538         make C-/ select all and C-\ unselect all.  (#309301,
3539         Kathy Fernandez)
3540
3541         * gtk/gtkimcontextsimple.c: Change the compose sequence for
3542         soft hyphen to be multi_key-minus-minus-space, and add
3543         compose sequences multi_key-minus-minus-period and 
3544         multi_key-minus-minus-minus for en dash and em dash.
3545         (#172653, Christian Lohmaier)
3546
3547         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
3548         code.  (#313946, Christian Persch)
3549
3550         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
3551         fix for the default value of the "ui" property.
3552
3553 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
3554
3555         * gtk/gtk.symbols: 
3556         * gtk/gtkselection.h:
3557         * gtk/gtkselection.c: Add functions which look for text, image
3558         or uri targets in an array of atoms.   (#314089, Mark Wielaard)
3559
3560         * gtk/gtk.symbols: 
3561         * gtk/gtkselection.h:
3562         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
3563         Add a function to check wether targets include uri.  
3564         (#314092, Mark Wielaard)
3565         
3566         * gtk/gtk.symbols: 
3567         * gtk/gtkwindow.h: 
3568         * gtk/gtkwindow.c: Add a deletable property with getter
3569         and setter, to control the close button in the window 
3570         frame.  (#59718, Havoc Pennington)
3571
3572 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
3573
3574         * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
3575         to the arrow keys for menu navigation.  (#162825, Carl Worth)
3576
3577         * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
3578
3579         * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
3580
3581         * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock): 
3582         * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
3583         refer to nonexisting stock ids.
3584
3585         * gtk/gtktextview.c (popup_targets_received): 
3586         * gtk/gtkentry.c (popup_targets_received): Construct
3587         the "Select All" menuitem from stock.
3588
3589         * gtk/stock-icons/stock_select_all_{16,24}.png:
3590         * gtk/stock-icons/Makefile.am: 
3591         * gtk/gtkiconfactory.c:
3592         * gtk/gtkstock.h: 
3593         * gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
3594         Calum Benson)
3595
3596         * gtk/gtktrayicon.c: Add a pointer to the spec.
3597
3598         * gtk/gtkstatusicon-x11.c: Add docs.
3599
3600         * gtk/gtkstatusicon.h: Fix a typo.
3601
3602         Add a cross-platform "tray icon" API, by
3603         porting EggStatusIcon/EggTrayIcon (#105101)
3604         
3605         * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
3606         displays an icon in a notification area.
3607
3608         * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
3609         X11, using GtkTrayIcon.
3610
3611         * gtk/gtktrayicon.h: 
3612         * gtk/gtktrayicon.c: An implementation of the freedesktop.org
3613         system tray specification, not public API.
3614
3615         * gtk/gtk.symbols: Add new exported functions.
3616
3617         * gtk/gtk.h: Include gtkstatusicon.h.
3618
3619         * gtk/Makefile.am: Add new files.
3620
3621         * tests/Makefile.am:
3622         * tests/teststatusicon.c: Test for GtkStatusIcon.
3623
3624 2005-08-29  Christopher Aillon  <caillon@redhat.com>
3625
3626         * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
3627         and GTK_STOCK_DISCONNECT
3628         
3629 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
3630
3631         * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify): 
3632         Use XFixesChangeSaveSet if available.  (#314682)
3633
3634         * gtk/gtkmenu.c (gtk_menu_grab_notify):  Only cancel if the menu
3635         was active.  (#314298, Christian Persch, analysis by Mark McLoughlin)
3636
3637 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
3638
3639         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
3640         accidentally leftover duplicate pixbuf creation.  (#314700,
3641         Kjartan Maraas)
3642
3643         * gtk/gtksettings.c (settings_update_cursor_theme): Don't 
3644         leak the cursor theme name.  (#314693, Kjartan Maraas)
3645
3646         * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free 
3647         state.children in all cases.  (#313862, Kjartan Maraas)
3648
3649 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
3650
3651         * po/POTFILES.in, po-properties/POTFILES.in:
3652         Add gdk/gdkscreen.c
3653
3654 2005-08-27  Matthias Clasen  <mclasen@redhat.com>
3655
3656         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
3657         value of the ui property. (#314532, Yong Wang)
3658
3659         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
3660         when G_MAXLONG is passed as length.  
3661
3662 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
3663
3664         * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
3665         to avoid overloading --force.  (JP Rosevaar)
3666
3667 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
3668
3669         * configure.in: Bump version to 2.9.0
3670
3671         * gdk/gdk.symbols: 
3672         * gdk/gdkscreen.h: 
3673         * gdk/gdkscreen.c: Make the GdkScreen font options api
3674         public, and add properties GdkScreen::font-options and
3675         GdkScreen::resolution.  (#314004)
3676
3677         * gdk/gdkpango.c:
3678         * gtk/gtksettings.c:
3679         * gtk/gtkwidget.c: Adjust all callers.
3680         
3681         * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
3682         * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
3683         * gdk/gdkscreen.c: Include gdkintl.h.
3684
3685         * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
3686         variable warning, pointed out by Colin Walters. (#314585)
3687
3688 2005-08-26  Tor Lillqvist  <tml@novell.com>
3689
3690         * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
3691         printouts.
3692         (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
3693
3694 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
3695
3696         * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
3697         of week_start.  (#314473, JP Rosevaar)
3698
3699 2005-08-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
3700
3701         * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
3702         lock.  (#314533, Thomas Fitzsimmons)
3703
3704 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
3705
3706         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
3707         NULL gracefully.  (#314523, Ed Catmur)
3708
3709 2005-08-25  Owen Taylor  <otaylor@redhat.com>
3710
3711         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
3712         Handle theme == NULL.
3713
3714 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
3715
3716         * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
3717         y offset into account when positioning the popup.  (#314470,
3718         Christian Persch)
3719
3720 2005-08-25  Owen Taylor  <otaylor@redhat.com>
3721
3722         * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
3723         as instance_init, not base_init! (#314452, Fix from Frederic
3724         Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
3725         rather than 1 for a negative flag value.
3726
3727 2005-08-24  Owen Taylor  <otaylor@redhat.com>
3728
3729         * gdk/gdkpango.c (draw_error_underline): Add a note about
3730         cut-and-paste between here and Pango.
3731
3732 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
3733
3734         * === Released 2.8.2 ===
3735
3736         * gtk/gtkclipboard.c (request_image_received_func): Use the correct
3737         callback for image/gif, and also try image/bmp.  (#314086,  Mark 
3738         Wielaard)
3739
3740         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon): 
3741         Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev.  (#314382,
3742         Sebastien Bacher)
3743         
3744         * NEWS: Updates
3745
3746         * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
3747         and cursor settings get propagated down to the screen initially.
3748         Pointed out by Frederic Crozat.
3749
3750         * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
3751         message if the screen is NULL. Noticed by Kjartan Maraas.
3752
3753 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
3754
3755         * Bump version
3756
3757         * === Released 2.8.1 ===
3758
3759         * NEWS: Updates
3760         
3761 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
3762
3763         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
3764         against lazy filterers which return values other than TRUE or
3765         FALSE from their visible func.  (#314335)
3766
3767 2005-08-23  Owen Taylor  <otaylor@redhat.com>
3768
3769         Fix for #314004, reported by Michael Reinsch:
3770
3771         * gdk/gdk.symbols:
3772         * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
3773         Add gdk_screen_get/set_resolution_libgtk_only()
3774
3775         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
3776         the options for the screen on the newly created context.
3777
3778         * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c: 
3779         Move font options and dpi code from gtkwidget.c to gtksettings.c, set
3780         the font options on the screen.
3781
3782         * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
3783         the font options from the screen and set them on the context.
3784
3785 2005-08-23  Kristian Rietveld  <kris@gtk.org>
3786
3787         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
3788         bother inserting new rows in a level with a zero refcount and
3789         immediately free the level. (Fixes #312350, reported by Markku Vire).
3790
3791 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
3792
3793         * gtk/updateiconcache.c: Complain when there is no index.theme file
3794         in the specified directory, unless --force is used. Also add an
3795         --index-only option to create caches without image data.
3796
3797         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
3798         C99ism.  (#314262, Robert Jeff Mitchell)
3799         
3800 2005-08-22  Manish Singh  <yosh@gimp.org>
3801
3802         * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
3803
3804         * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
3805
3806 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
3807
3808         * gtk/gtkwindow.c (gtk_window_client_event): 
3809         * gtk/gtkicontheme.c (ensure_valid_themes) 
3810         (_gtk_icon_theme_check_reload): Implement a clientmessage based
3811         scheme for makeing sure that all GTK+ applications notice if an
3812         icon theme has been updated. This should prevent multiple versions
3813         of an icon theme cache to be mapped in memory at the same time,
3814         which can cause excessive memory consumption.  (#313156, Chris 
3815         Lahey)
3816
3817 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
3818
3819         * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
3820         regarding icon theme changes.
3821
3822         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
3823         pixbufs which are backed by the mmapped memory of an icon cache,
3824         increase the refcount of the icon cache, so that the memory is not
3825         munmapped away underneath the pixbuf upon icon theme changes.  
3826         (#314170, Kjartan Maraas)
3827
3828         * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order 
3829         to link against Xext.  (#314062)
3830
3831         * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
3832         overruns.  (#314081, Hans Breuer)
3833
3834 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
3835
3836         * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
3837         returned layout must not be modified.
3838
3839 Sat Aug 20 16:12:14 2005  Jonathan Blandford  <jrb@redhat.com>
3840
3841         * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
3842         scroll_to_path if the model changes.
3843
3844         * gtk/gtkiconview.c: (gtk_icon_view_destroy),
3845         (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
3846         (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
3847         we're realized, #312798
3848         (gtk_icon_view_set_model): clear scroll_to_path if the model
3849         changes.
3850
3851 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
3852
3853         * gtk/gtkrange.c (gtk_range_adjustment_changed) 
3854         (gtk_range_adjustment_value_changed):  Don't queue a draw
3855         if the layout has not changed.  (#313991, Benjamin Berg)
3856
3857 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
3858
3859         * gtk/gtktreeitem.c: Remove duplicate lines.  (#313344,
3860         Benoit Carpentier)
3861
3862         * modules/engines/ms-windows/msw_style.c (setup_system_styles): 
3863         Fix a typo. 
3864
3865         * gtk/gtkfilechooserbutton.c (change_icon_theme) 
3866         (model_add_special, model_add_special, model_add_volumes):
3867         Handle pixbuf being NULL without warnings. Also, don't
3868         leak pixbuf references when the icon theme is changed.
3869
3870         * gtk/gtkmain.c (gtk_get_event_widget): Don't access
3871         the user data on destroyed windows, since at best
3872         it can be a stale pointer.  (#313953, Robin Green)      
3873
3874 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
3875
3876         * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
3877         (#313900, Sebastien Bacher)
3878
3879         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
3880         FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
3881
3882         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display) 
3883         (xdnd_read_actions, get_client_window_at_coords_recurse): 
3884         Free data returned from XGetWindowProperty. 
3885
3886         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) 
3887         Free data returned from XGetWindowProperty.  (313867, Kjartan
3888         Maraas)
3889         
3890         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
3891         children in all cases.  (#313862, Kjartan Maraas)
3892
3893         * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
3894         in the per-directory hash, even if they come from the icon cache. 
3895         We tried to avoid that before, but as a result leaked icon data
3896         structs.  (#313852, Kjartan Maraas)
3897
3898 2005-08-18  Matthias Clasen  <mclasen@redhat.com>
3899
3900         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
3901         signal handlers on destroy, not on finalize.  (#313759, Brett Atoms)
3902
3903 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3904
3905         * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
3906         files for x11/xext. (Jonas Bonn)
3907
3908 2005-08-15  Tor Lillqvist  <tml@novell.com>
3909
3910         * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
3911         inside GTK_NOTE.
3912
3913 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3914
3915         * configure.in: Fix have_base_pc / have_base_x_pc typo.
3916
3917         * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
3918         (#313417, James Andrewartha)
3919
3920         * configure.in: Add fontconfig to X_PACKAGES, since we use it for
3921         FcNameConstant(). (More of #313417)
3922
3923 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
3924
3925         * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
3926         modal dialogs, make sure to inherit the window group from 
3927         the parent, since we don't inherit window groups across
3928         transient parents currently.  (#312918, Christian Persch)
3929
3930         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): 
3931         * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs. 
3932
3933         * gtk/gtkiconview.c (gtk_icon_view_select_path) 
3934         (gtk_icon_view_scroll_to_path): Handle paths of depth 0
3935         gracefully.  (#312796, Jonathan Blandford)
3936
3937         * tests/testtoolbar.c: Add some more tests for menu placement.
3938
3939         * gtk/gtkmenutoolbutton.c (menu_position_func): 
3940         * gtk/gtktoolbar.c (menu_position_func): Improve positioning
3941         of toolbutton menus and of the overflow menu.  (#312937, 
3942         #153870, Christian Persch, Paolo Borelli)
3943
3944 2005-08-15  Tor Lillqvist  <tml@novell.com>
3945
3946         * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
3947         the nonportable <libgen.h> and dirname().
3948
3949 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
3950
3951         * gtk/gtksizegroup.c: Use object data to mark widgets and
3952         groups as visited, so that we avoid constant extra list
3953         traversals. Also allocate quarks in class_init.  (#311618,
3954         Michael Natterer)
3955
3956         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the 
3957         download location for the hicolor icon theme. (#313475, Olexiy 
3958         Avramchenko)
3959
3960         * gtk/gtkicontheme.c: Remove debug spew. 
3961
3962 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3963
3964         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): 
3965         * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): 
3966         * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
3967         Handle pixmap == NULL when checking for a colormap.
3968         (Allin Cottrell).
3969
3970 2005-08-14  Matthias Clasen  <mclasen@redhat.com>
3971
3972         * gtk/updateiconcache.c: Store only one copy of the pixel data
3973         for symlinked icons. To achieve this, maintain a hashtable 
3974         mapping pathnames to pixel data, and share the pixel data for
3975         all symlinks resolving to the same pathname. When writing out
3976         the image data, write out the pixel data only the first time
3977         it is met, and store the offset pointing to the first copy
3978         for use in all later cases.
3979         This reduces the size of the Bluecurve icon cache from 40
3980         to 13MB. (#312972)
3981