]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
1bbe4634fd6eddce92f5d1af6483027718c80938
[~andy/gtk] / ChangeLog.pre-2-10
1 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
2
3         Allow setting paragraph background.  (#81045, Gustavo
4         Carneiro, patch by Jeroen Zwartepoorte)
5         
6         * gtk/gtktextlayout.c (set_para_values): Propagate 
7         pg_bg_color to the display struct.
8         (gtk_text_layout_free_line_display): Free it here.
9
10         * gtk/gtktextdisplay.c (render_para): If pg_bg_color
11         is set, draw a rectangle in that color behind
12         the paragraph.
13
14         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add 
15         paragraph-background, paragraph-background-gdk and
16         paragraph-background-set properties.
17         (set_pg_bg_color): A setter for paragraph-background.
18
19         * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
20         pg_bg_color.
21
22         * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
23         pg_bg_color.
24         (struct _GtkTextTag): Add pg_bg_color_set.
25
26 2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>
27
28         * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
29         cairo surface when done with it. Plugs a fairly large leak in
30         some cases.
31         ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
32         826 blocks are definitely lost in loss record 25239 of 25250
33         Like this from nautilus.
34
35 2005-06-10  Michael Natterer  <mitch@imendio.com>
36
37         * gtk/gtk.symbols
38         * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
39         to get an action's accel_closure (Fixes #141750 and #148106).
40
41 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
42
43         * gdk/gen-keyname-table.pl: Generate N_() calls for
44         translatable key names.
45
46         * gdk/keynames.txt: Mark some key names as translatable.
47         
48         * gdk/keyname-table.h: Regenerated.
49
50         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
51         some context to the msg ids for keyboard modifiers and
52         key names.
53         (_gtk_accel_label_class_get_accelerator_label): Try to
54         translate key names.  (#300224, Christian Rose)
55
56 2005-06-10  Federico Mena Quintero  <federico@ximian.com>
57
58         Merged from gtk-2-6:
59
60         Fixes #162358:
61
62         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
63         immediately if we are in CREATE_FOLDER mode, so that we can fill
64         the entry with the newly-selected folder.
65         (gtk_file_chooser_default_set_property): Warn against turning on
66         multiple selection for CREATE_FOLDER mode, or about setting that
67         action while multiple selection is on.
68         (update_chooser_entry): Change the entry's contents as well if we
69         are in CREATE_FOLDER mode.  If nothing is selected, clear the
70         chooser entry.
71         (trap_activate_cb): Don't trap enter/space if modifiers are
72         pressed.  This lets one use Ctrl-space to toggle rows in multiple
73         selection mode.
74         (gtk_file_chooser_default_should_respond): Clean up the if-chain
75         mess of special cases by using an array to determine what to do.
76         Also, for the save-entry case in CREATE_FOLDER mode, actually fix
77         the bug where the file chooser would switch to an existing folder
78         rather than confirming with it, and create the folder ourselves.
79         (error_creating_folder_over_existing_file_dialog): New function.
80
81         * gtk/gtkfilechooserentry.c (check_completion_callback): Only
82         insert the common prefix if we are in an "open" mode.  Use a
83         helper function.
84         (append_common_prefix): New helper function; code moved over from
85         check_completion_callback().
86         (find_common_prefix): New helper function.
87         (gtk_file_chooser_entry_focus): Append the common prefix if the
88         user requests it explicitly.
89
90 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
91
92         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): 
93         * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow): 
94         * gtk/gtktextview.c (gtk_text_view_get_iter_at_position): 
95         * gtk/gtkstock.c (gtk_stock_set_translate_func): 
96         * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment): 
97         * gtk/gtkscrolledwindow.h: 
98         * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus): 
99
100         * gtk/gtkiconview.c (gtk_icon_view_set_margin): 
101         * gtk/gtkicontheme.c (gtk_icon_info_load_icon): 
102         * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
103
104 2005-06-09  Matthias Clasen  <mclasen@redhat.com>
105
106         * gdk/x11/gdkwindow-x11.c: Small markup fixes.
107
108         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
109         (#306212, Steve Chaplin, docs provided by Billy Biggs)
110
111         * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small 
112         cleanup.  (#305539, Paolo Borelli)
113
114 2005-06-09  Rodrigo Moya <rodrigo@novell.com>
115
116         * configure.in: added cairo to list of $GTK_PACKAGES.
117
118 2005-06-09  Matthias Clasen  <mclasen@redhat.com>
119
120         * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
121         the user time on the window when a drop happens.  (#169364, Alexander
122         Hunziker, patch by Elijah Newren)
123
124         * gdk/x11/gdkwindow-x11.c: Small markup fixes.
125
126         * gtk/gtk.symbols: 
127         * gtk/gtkiconview.h: 
128         * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
129         to scroll to a path.  (#306838, Jonathan Blandford)
130
131 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
132
133         * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
134         item.  (#306839, Jonathan Blandford)
135
136         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
137         negative before appending the index, to avoid double error
138         message.  (#306393, Morten Welinder)
139
140         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
141         Don't crash if search_window is NULL.  (#304914, Victor Osadci,
142         testcase by Olaf Vitters)
143
144         * gtk/gtkimage.c: Make the file property readable.  
145         (#170674, Lorenzo Gil Sanchez)
146
147 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
148
149         * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
150         g_utf8_collate_key_for_filename().
151
152 2005-06-07  Kjartan Maraas  <kmaraas@gnome.org>
153
154         * gtk/gtkfilechooserbutton.c: (update_label_and_image):
155         Merge leak fix from stable. Bug 306754.
156
157 2005-06-05  Tor Lillqvist  <tml@novell.com>
158
159         * gdk/win32/gdkscreen-win32.c
160         (_gdk_windowing_substitute_screen_number): Return NULL unless
161         screen number is zero. We have only one screen on Win32.
162         (gdk_screen_make_display_name): Call gdk_display_get_name() and
163         return that.
164         
165         * modules/engines/Makefile.am
166         * modules/input/Makefile.am: Decide whether to build the
167         ms-windows theme engine based on the GDK backend, not based on
168         platform. (I.e., if building for Cygwin with the X11 backend, we
169         shouldn't build the ms-windows engine, but if building for Cygwin
170         but with the Win32 backend, we should.) Ditto for the IME
171         (Windows) input module. (#305832)
172
173 2005-06-04  Tor Lillqvist  <tml@novell.com>
174
175         * gdk/win32/gdkcursor-win32.c
176         * gdk/win32/gdkwindow-win32.c
177         * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
178         Support cursors with alpha on XP. Use code in common with the
179         support for alpha icons that already was present. (#306101, Tim
180         Evans)
181
182         * modules/engines/ms-windows/msw_style.c: Render insensitive icons
183         in a way that more closely matches Windows. (#305986, Tim Evans).
184
185         * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
186         gdk-pixbuf.
187
188 2005-06-03  Dom Lachowicz <cinamod@hotmail.com>
189
190         * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
191         * modules/engines/ms-windows/xp_theme.c: Ditto
192         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
193
194 Thu May 26 16:43:27 2005 Manish Singh  <yosh@gimp.org>
195
196         * gtk/gtkentrycompletion.h: Add declarations for
197         gtk_entry_completion_{get,set}_popup_single_match.
198
199 2005-05-26  Matthias Clasen  <mclasen@redhat.com>
200
201         * gtk/gtk.symbols: 
202         * gtk/gtkentrycompletion.c: Add a property to suppress the
203         popup for single matches.  (#154711)
204
205         * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
206
207         * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action): 
208         Use it here.
209
210         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the 
211         redisplay after modifying the tag in the btree, otherwise 
212         we end up showing the old tags until the next redraw comes 
213         around.   (#143537, Gary Kramlich, Peter Wainwright)
214
215         * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make 
216         autoscrolling work at the bottom of the screen.
217
218 2005-05-26  Maciej Katafiasz  <email@mathrick.org>
219
220         * docs/reference/gtk/tmpl/gtkentry.sgml:
221         Point to GtkTextView instead of GtkText. Fixes bug #305535
222
223 2005-05-26  Sven Neumann  <sven@gimp.org>
224
225         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
226         aggressive PNG compression level (bug #305340).
227
228 2005-05-26  Tor Lillqvist  <tml@novell.com>
229
230         * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
231         from the root window, take the multi-monitor offset into
232         account. (#305511)
233
234 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
235
236         * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
237         icon by name.
238
239         * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading): 
240         Remove another C99ism.
241
242         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the 
243         background of rows insensitive when the treeview is insensitive.
244         (pointed out by Billy Biggs)
245
246         * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
247         and DND, and clipboard persistency.
248
249         * gtk/gtkselection.c (gtk_target_list_add_image_targets): 
250         Make sure png comes first, otherwise dnd may use bmp by
251         default, loosing transparency.
252
253 2005-05-25  Michael Natterer  <mitch@imendio.com>
254
255         * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
256         handler when changing cursor visibility because it would expose
257         the whole paragraph where the cursor is. Instead, expose the
258         cursors' areas manually. (#173047).
259
260         (text_window_invalidate_cursors): new function which exposes the
261         cursors.
262
263         * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
264         same cursor size calculation is in text_window_invalidate_cursors().
265
266 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
267
268         * demos/gtk-demo/editable_cells.c (create_items_model): Also
269         demonstrate GtkCellRendererProgress.
270
271         * demos/gtk-demo/Makefile.am (demos): 
272         * demos/gtk-demo/combobox.c: Add a demo showing combo box 
273         variations.
274
275         * demos/gtk-demo/Makefile.am (demos): 
276         * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
277
278 2005-05-24  Matthias Clasen  <mclasen@redhat.com>
279
280         * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
281
282 2005-05-24  Tor Lillqvist  <tml@novell.com>
283
284         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
285         gtk-alternative-button-order (setting it to TRUE).
286
287 2005-05-23  Matthias Clasen  <mclasen@redhat.com>
288
289         * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
290         an unused variable.  (#305130, Jaap A. Haitsma)
291
292         * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
293         the focus away from the file list when operating the filter
294         combo with the pointer.  (#304844, Sven Neumann)
295
296 2005-05-23  Tor Lillqvist  <tml@novell.com>
297
298         * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
299         GDK_Menu. (#172383, Ivan Wong)
300
301         * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
302         of the special cases this function takes care of, use it as
303         such. This takes care of for instance the Bengali Virama, see bug
304         #165723.
305
306 2005-05-20  Matthias Clasen  <mclasen@redhat.com>
307
308         * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
309         buffer overrun.  (#142444, Leonard Michlmayr)
310
311         * gtk/gtkfilesystem.c: Remove C99-isms (#304879, 
312         Kazuki IWAMOTO)
313
314 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
315
316         * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri): 
317         Use the correct function to conver the uri to a path.  (#304565,
318         Ismael Juma)
319
320         * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
321         Cancel button properly.  (#304234, Sven Neumann)
322
323 2005-05-18  Anders Carlsson  <andersca@imendio.com>
324
325         * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
326         (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
327         * gtk/gtktextview.h:
328         If the horizontal adjustment changes because of a change in the
329         layout width, then do a complete redraw. This is because there
330         might be right-aligned or centered text that needs to be redrawn.
331
332 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
333         
334         * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
335         the event masks of descendent windows.  (#169821, Tommi Komulainen)
336
337         * gtk/gtktreeview.c (gtk_tree_view_get_drop_column) 
338         (gtk_tree_view_set_column_drag_info): Fix some errors in the
339         handling of drop columns.  (#143355, John Finlay)
340
341         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): 
342         Remove the no longer needed workaround.
343
344         * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
345         allocations of mapped children.
346
347         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): 
348         Add a bug reference.
349
350 2005-05-18  Tor Lillqvist  <tml@novell.com>
351
352         * gdk/win32/gdkevents-win32.c
353         * gdk/win32/gdkkeys-win32.c
354         * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
355         lParam of WM_KEY* messages to distinguish between left and right
356         Control and Alt keys. Unfortunately, the right Shift key doesnt
357         set KF_EXTENDED, so to distinguish between left and right Shift
358         keys, check the scan code. (#304584)
359
360 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
361
362         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
363         length overflows.  (#161520, Ian Wienand)
364
365         * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
366         parameter names to make gtk-doc happy.
367
368         * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
369         values of draw-value and value-pos to be the values we
370         actually use in _init. (#304547, Mikael Hallendal)
371
372         * gtk/gtkcellrendererpixbuf.c: Support named icons in
373         cells by adding a icon-name property. (#165777, Anders
374         Carlsson)
375
376         * gtk/gtk.symbols:
377         * gtk/gtktoolbutton.h: 
378         * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name) 
379         (gtk_tool_button_get_icon_name): Support named icons in 
380         tool buttons by adding a icon-name property. (#116577, 
381         Christian Neumair)
382
383         * gtk/gtk.symbols: 
384         * gtk/gtkdnd.h: 
385         * gtk/gtkdnd.c (gtk_drag_source_set_icon_name) 
386         (gtk_drag_set_icon_name): New functions to support themed 
387         drag icons.  (#116577, Christian Neumair)
388
389 2005-05-17  Owen Taylor  <otaylor@redhat.com>
390
391         * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface): 
392         Update to changed cairo interface.
393
394         * gdk/x11/gdkdrawable-x11.[ch]:
395         Add _gdk_x11_drawable_update_size()
396         
397         * gdk/x11/gdkwindow-x11.c (gdk_window_resize) 
398         (gdk_window_move_resize)
399         * gdk/x11/gdkevents-x11.c (gdk_event_translate): 
400         Call _gdk_x11_drawable_update_size().
401
402 2005-05-17  Matthias Clasen  <mclasen@redhat.com>
403
404         * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
405         if the text view is not editable.  
406
407         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
408         the popup posted if the button is released over the cellview.
409         This matches the behaviour of other combo box implementations.  
410         (#171378)
411         
412         * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
413         when recursing.  (#153682, Felipe Heidrich)
414
415 2005-05-16  Matthias Clasen  <mclasen@redhat.com>
416
417         * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up 
418         and GDK_Page_Down twice.  (#168333, Hazael Maldonado Torres)
419
420         * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if 
421         the entry is not editable.  (#304171, Nikos Kouremenos)
422         
423         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor): 
424         Make sure the action of the button and the dialog are in sync,
425         when the dialog is provided by the app.  (#303987, David A Knight)
426
427         * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
428         in the docs.  (#303940, Masao Mutoh)
429
430         * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
431
432         * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
433         casting.  (#304089, Philip Langdale)
434
435         * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
436         the label if we need to.  (#169390, Felix Riemann)
437
438 Sat May 14 00:07:46 2005  Manish Singh  <yosh@gimp.org>
439
440         * gdk/gdkdraw.c
441         * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
442         declaration.
443
444         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
445         call gdk_cairo_set_source_color() with a color.
446
447         * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
448
449         * tests/testiconview.c (main): cast args of drag functions to the
450         appropriate type.
451
452 2005-05-13  Owen Taylor  <otaylor@redhat.com>
453
454         * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
455
456         * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export 
457         gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
458         
459 2005-05-11  Owen Taylor  <otaylor@redhat.com>
460
461         * tests/testgtk.c (on_alpha_window_expose): Fix to use
462         gdk_cairo_create(). (create_alpha_window): Hook up "response"
463         to close the window.
464
465 2005-05-11  Owen Taylor  <otaylor@redhat.com>
466
467         * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
468         to draw the swatch in to avoid having an extraneous window.
469         
470         * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
471         color when !has_opacity.
472
473 2005-05-10  Owen Taylor  <otaylor@redhat.com>
474
475         * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
476         files for Cairo convenience functionality.
477
478         * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
479         convenience functions to add GdkRectangle, GdkRegion to a cairo path.
480
481         * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c 
482         gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
483
484         * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
485         gdk_drawable_create_cairo_context() to gdk_cairo_create().
486
487         * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
488         Rename gdk_pixbuf_set_as_cairo_source() to 
489         gdk_cairo_set_source_pixbuf().
490
491         * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
492         gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
493         Adjust for renames.
494
495         * gdk/gdk.symbols: Update.
496
497         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix 
498         coordinate system problem that was causing the wrong portions
499         to be invalidated.
500
501         * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
502         gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
503         gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
504         gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
505         gtk/gtkcellview.c (gtk_cell_view_expose)
506         gtk/gtkdnd.c (gtk_drag_highlight_expose)
507         gtk/gtkentry.c (gtk_entry_draw_text) 
508         gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
509
510         * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
511         GTK+ style ... use instance-private data and standard names for
512         private structure, etc. Move function docs inline.
513
514         * gtk/gtkcalendar.[ch]: Switch to drawing everything in
515         expose. Switch drawing to Cairo.
516
517         * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
518         gtk_calendar_freeze/thaw
519
520 2005-05-10  Tor Lillqvist  <tml@novell.com>
521
522         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
523         that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
524         == gdk_screen_get_default(), as that might return NULL when this
525         function is called.
526
527 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
528
529         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
530         padding in RTL mode.  (#303572, Maciej Katafiasz)
531
532 2005-05-09  Owen Taylor  <otaylor@redhat.com>
533
534         * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br): 
535         Fill in unused bits so they can be used for the depth-32 target case.
536         Rewrite so that that gives a marginal speedup rather than a
537         marginal slowdown. (on x86)
538
539         * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
540         Add gdk_screen_get_rgba_colormap/visual to get a visual for
541         windows with an alpha channel, if one exists.
542
543         * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
544         Stub out gdk_screen_get_rgba_colormap/visual.
545
546         * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
547         "unused" wasn't right for depth == 32, since it depended on
548         shifting by 32.
549
550         * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
551         Keith Packard,
552         http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
553
554         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
555         Implement again, without using Xft.
556
557         * tests/testgtk.c: Add a test for windows with an alpha channel.
558
559 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
560
561         * autogen.sh: Revert accidental commit.
562
563 2005-05-08  Matthias Clasen  <mclasen@redhat.com>
564
565         * gdk/gdkcolor.c (gdk_cairo_set_source_color): 
566         * gdk/gdkimage.h: 
567         * gdk/gdkdraw.c: 
568         * gdk/gdkcolor.h: 
569         * gdk/gdkcursor.h: 
570         * gdk/x11/gdkcolor-x11.c: Small documentation additions.
571
572 2005-05-07  Matthias Clasen  <mclasen@redhat.com>
573
574         * gtk/gtkscrolledwindow.h: 
575         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar): 
576         (gtk_scrolled_window_get_cscrollbar): Change the return 
577         type to GtkWidget*, proposed by Owen Taylor. 
578
579         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm) 
580         (gdk_screen_get_height_mm): Fix typos in the docs.  (#303389,
581         Masao Mutoh)
582
583 2005-05-07  Matthias Clasen <mclasen@redhat.com>
584
585         * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
586         by Owen Taylor.
587
588 2005-05-07  Owen Taylor  <otaylor@redhat.com>
589
590         * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
591         the background color.
592
593 2005-05-07  Owen Taylor  <otaylor@redhat.com>
594
595         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): 
596         Change prototype to match cairo_set_source_surface().
597
598         * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
599         gtk/gtkhsv.c tests/testcairo.c.
600
601 2005-05-06  Federico Mena Quintero  <federico@ximian.com>
602
603         Merged from gtk-2-6:
604
605         * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
606         types if this is an AFS directory.
607         (fill_in_names): If we are in an AFS directory, set the MIME type
608         blindly to "x-directory/normal".
609
610 2005-05-06  Matthias Clasen  <mclasen@redhat.com>
611
612         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
613         initialize child-visible to FALSE, otherwise we may end up
614         with the wrong page visible initially.  (#302283, Patrik Fimml)
615
616         * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
617         appear insensitive in insensitive treeviews. 
618
619 2005-05-05  Matthias Clasen  <mclasen@redhat.com>
620
621         * gtk/gtktoolbar.c: Fix a typo in the docs.  (#303024, 
622         Morten Welinder)
623
624 2005-05-06  Matthias Clasen  <mclasen@redhat.com>
625
626         * gtk/gtk.symbols:
627         * gtk/gtkiconview.[hc]: Add DND support similar to the DND
628         support in the tree view.  (#150270)
629
630 2005-05-05  Matthias Clasen  <mclasen@redhat.com>
631
632         * gtk/gtktreednd.h: 
633         * gtk/gtkwidget.h: Small cleanups.
634
635         * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
636         a typo.
637
638 2005-05-04  Owen Taylor  <otaylor@redhat.com>
639
640         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
641         in focus tracking when we move between has_pointer_focus and 
642         has_focus_window directly. (#109246, Billy Biggs, Niko Tyni 
643         and others)
644
645         * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
646         happen in the case of no window manager + keyboard grabs, by
647         moving to a more consistent model of when we pay attention to
648         mode=NotifyGrab/NotifyUngrab events.
649         
650         * docs/focus_tracking.txt: Extensive writeup about how to track
651         focus under X11.
652
653 Wed May  4 13:21:41 2005  Søren Sandmann  <sandmann@redhat.com>
654
655         * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
656         cairo_set_source_surface()/cairo_paint();
657
658 2005-05-04  Tor Lillqvist  <tml@novell.com>
659
660         * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
661         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
662         _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
663         gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
664         again.
665
666 2005-05-03  Matthias Clasen  <mclasen@redhat.com>
667
668         * gtk/gtkfilesystem.c: 
669         * gtk/gtkcelleditable.c: 
670         * gtk/gtktreemodel.c: Avoid getting the interface struct
671         twice in the same function.  (#300513, Billy Biggs)
672
673         * gtk/gtkscrolledwindow.h:
674         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar): 
675         * gtk/gtk.symbols: Add getters for the scrollbars.  (#167181,
676         Billy Biggs)    
677
678         * gtk/gtkdialog.h: 
679         * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget): 
680         Make this function public.  (#170748, Morten Welinder)
681
682 2005-05-02  Federico Mena Quintero  <federico@ximian.com>
683
684         Merged from gtk-2-6:
685
686         Fixes #301068:
687
688         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
689         to store struct stat for /afs and /net, and boolean fields to say
690         whether these are valid.
691         (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
692         (gtk_file_system_unix_get_folder): Fill in the is_network_dir
693         field of the folder structure.
694         (fill_in_names): If the folder is a network directory, create a
695         fake struct stat for its entries.
696         (fill_in_stats): Don't stat() the children of network directories.
697
698         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
699         is 0, use "Unknown" for the cell's displayed text.
700
701 2005-04-28  Owen Taylor  <otaylor@redhat.com>
702
703         * gtk/gtkwidget.c: Add a draw-border style property to allow
704         themes to draw outside the widget's allocation.
705
706         * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
707         that were working around the clip-leakage bug in Cairo.
708
709         * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
710         save/fill/restore.
711
712         * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
713         That updates a Cairo context to match a GC.
714
715         * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
716         for tiles/stipples/clipping to gdk_draw_glyphs(), 
717         gdk_draw_trapezoids().
718
719         * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
720         implementation of stipples. Use one cairo_t across the entire
721         drawing operation. Replace cairo_matrix_create() with 
722         stack-allocated matrices.
723
724         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c 
725         gdk/win32/gdkgc-win32.c: Save various aspects of the 
726         GC state (fill, tile, stipple, foreground, background, clip region)
727         in instance-private-data for future use. Add getters.
728         Get rid of _gdk_windowing_gc_get_foreground() function implemented 
729         by the backends.
730
731         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
732         gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
733         _gdk_gc_init() to do initial setup of the GC from values;
734         fixes some problems from drawable redirection.
735
736         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
737         gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move 
738         gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into 
739         the generic code, add _gdk_windowing_gc_copy(), 
740         _gdk_windowing_gc_set_clip_region() to do backend specific
741         stuff.
742
743         * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
744         gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
745         gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
746         Don't duplicate state that now is stored by the generic code.
747
748         * gdk/gdk.symbols Update
749
750 2005-05-02  Matthias Clasen  <mclasen@redhat.com>
751
752         * tests/testiconview.c: Test cell renderers.
753
754         * gtk/gtk.symbols: Add new functions.
755
756         * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
757         cell renderers for drawing and editing. (#148144, #160242)
758
759 2005-05-02  Matthias Clasen  <mclasen@redhat.com>
760
761         * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
762         width for cases where pango_layout_get_pixel_extents() returns
763         a rectangle with nonzero x. 
764
765         * gtk/gtkselection.c: Small doc fixes.
766
767         * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus): 
768         (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
769
770 2005-05-02  Michael Natterer  <mitch@imendio.com>
771
772         * gtk/gtkmain.c (do_post_parse_initialization): return silently if
773         "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
774         multiple times when using gtk_get_option_group(), just as one can
775         call gtk_init() multiple times without doing any harm.
776
777 2005-05-01  Matthias Clasen  <mclasen@redhat.com>
778
779         * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
780         the event to unanchored children in the text window.  
781         (#302494, Stephen Kennedy)
782
783 2005-04-30  Tor Lillqvist  <tml@novell.com>
784
785         * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
786         multi-monitor offset into account. (#302525)
787
788 2005-04-29  Matthias Clasen  <mclasen@redhat.com>
789
790         * gtk/gtkradioaction.c: Make the docs build.  (#302230,
791         Ali Akcaagac)
792
793         * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
794         function, instead show the bin_window when it is created.
795
796         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't 
797         grab focus to unrealized widgets.  (#302240, Philip Langdale)
798
799         * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
800         background upon state changes.  (#301651, Billy Biggs)
801         (gtk_tree_view_get_path_at_pos): Take RTL into account
802         when iterating over the columns.  (#302163)
803         
804         * configure.in: Check for nm.
805
806         * gtk/Makefile.am: Use $(NM), not nm directly. (#301299, 
807         Nguyen Thai Ngoc Duy)
808
809         * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
810         the internal unselect_all function, since we need the unselection
811         to happen even in browse mode.  (#300995, Mathias Hasselmann)
812
813         * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
814         of triggering a ::notify by re-setting the property.  (#300982,
815         Sven Neumann)
816
817         * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
818
819         * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
820         scroll horizontally when necessary, and keep the northwest
821         corner of the item visible.  (#300913, Mathias Hasselmann)
822
823         * tests/testiconview.c: Add some more tests.
824
825         * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
826         if the path does not point to a row in the model.  (#300909,
827         Mathias Hasselmann)
828         (gtk_icon_view_rows_reordered): Re-layout here.  (#301009, 
829         Mathias Hasselmann)
830
831         * tests/testtext.c: Add some more attribute tests.
832
833         * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
834         of the rise property. String change, but it is more important to
835         be correct than to be translated.  (#301740)
836
837 2005-04-25  Tor Lillqvist  <tml@novell.com>
838
839         * gtk/gtkfilesystemwin32.c
840         (gtk_file_system_win32_volume_get_display_name): Get volume name
841         also on Win9x. (#301798, Daniel Atallah)
842         (canonicalize_filename): Add explicit braces to silence compiler
843         warning.
844
845 2005-04-22  Tor Lillqvist  <tml@novell.com>
846
847         * gtk/gtkmain.c: Initailize gettext before use. Calling
848         bindtextdomain() and bind_textdomain_codeset() in
849         do_post_parse_initialization() is too late. Put the calls in a new
850         function gettext_initialization(), and call that from
851         gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
852         GTK+'s part, but the same problem occurs also at least in
853         atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
854
855 2005-04-19  Ivan, Wong Yat Cheung  <email@ivanwong.info>
856
857         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
858         character height instead of cell height. Fix #301228.
859
860 2005-04-18  Federico Mena Quintero  <federico@ximian.com>
861
862         Merged from gtk-2-6:
863
864         * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
865         obsolete assertion that the selected row can't be a volume; this
866         is handled by the "removable" column now.  Fixes #301017.
867
868 2005-04-18  Owen Taylor  <otaylor@redhat.com>
869
870         * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
871         * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
872         gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
873         setting color and opacity. (#301066, Vincent Noel)
874  
875 2005-04-15  Federico Mena Quintero  <federico@ximian.com>
876
877         Merged from gtk-2-6:
878
879         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
880         Patch from Christian Neumair <chris@gnome-de.org>; only select the
881         first row if we are in OPEN mode.  The only other case we were
882         letting pass through was SELECT_FOLDER, but selecting the first
883         row when changing folders confuses people when folders are
884         actually being selected.  Fixes #171885.
885
886 2005-04-13  Matthias Clasen  <mclasen@redhat.com>
887
888         * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
889         Revert the fix for #169870, adjust the documentation instead. 
890
891         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
892         Revert the fix for #170727.     
893
894 2005-04-11  Ivan, Wong Yat Cheung  <email@ivanwong.info>
895
896         Fix #300218:
897
898         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
899         C99ism.
900
901         * gtk/updateiconcache.c: Guard inclusion of unistd.h and
902         utime.h.
903
904 2005-04-09  Matthias Clasen  <mclasen@redhat.com>
905
906         * gdk/x11/gdkinput-xfree.c:
907         * gdk/x11/gdkinput-none.c:
908         * gdk/gtk.symbols: Some more fixes necessary to 
909         make building with gcc 4 work.
910
911         Add 16x16 versions of the zoom icons and of 
912         GTK_STOCK_INDEX. Some of the images were taken from 
913         the hicolor icon theme, and were originally created 
914         by Jakub Steiner and Tuomas Kuosmanen.  (#167515, 
915         Vincent Noel)
916         
917         * gtk/stock-icons/stock_index_16.png:
918         * gtk/stock-icons/stock_zoom_1_16.png:
919         * gtk/stock-icons/stock_zoom_fit_16.png:
920         * gtk/stock-icons/stock_zoom_in_16.png:
921         * gtk/stock-icons/stock_zoom_out_16.png: New images.
922         
923         * gtk/stock-icons/Makefile.am: Add the new images. 
924
925         * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
926         Don't display too many broken images.  (#169870, Roman
927         Kagan, patch by Ivan Wong)
928
929         * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
930         output.  (#300013, Tommi Komulainen)
931
932 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
933
934         * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size): 
935         If a stock_id is unknown, display the missing image. (#169870,
936         Steven Walter)
937
938         * gtk/gtkiconcache.c (icon_name_hash): Use the same function 
939         as in updateiconcache.c.  (spotted by Morten Welinder)
940
941 2005-04-08  Carl Worth  <cworth@cworth.org>
942
943         * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
944         now that cairo exposes the cairo_matrix_t structure.
945         
946         * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
947         cairo API change in signedness of data argument.
948
949 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
950
951         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
952         work when called from gtk_combo_box_destroy().  (#172999,
953         Christian Persch)
954
955 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
956
957         Fix double-click to autosize treeview columns. This was
958         probably broken since 2.2 ! (#169675)
959         
960         * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
961         "user-resized" state of the column on a double-click to
962         autosize.
963         (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column): 
964         Enter the "user-resized" state of the column only if a drag
965         actually changes the column width, not on any click.
966
967 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
968
969         * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
970         images on menus.  (#169532, Benjamin Otte)
971         
972         * gtk/updateiconcache.c (write_card16, write_card32): Avoid
973         unaligned access.  (#172947)
974
975         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): 
976         Consistently use the term "Bookmarks" in the UI.  (#166906,
977         Sebastian Bacher)
978
979         Some fixes from Morten Welinder (#172947):
980         
981         * gtk/updateiconcache.c (icon_name_hash): Make this compiler- 
982         and platform-independent.
983         (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
984         (build_cache): Error out if a stat fails.  
985
986 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
987
988         * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add 
989         a hint about hiding expanders.
990
991         * gtk/updateiconcache.c (is_cache_up_to_date): Return 
992         TRUE if the cache is newer than the directory.  (#172852,
993         Jacob Kroon)
994
995         * configure.in: Replace an explicit pkg-config by 
996         $PKG_CONFIG.  (#168074, Hans-Wolfgang Loidl)
997         
998         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
999         Ignore regions which fall completely outside the line.  
1000         (#165862, Felipe Heidrich)
1001
1002 2005-04-06  Matthias Clasen  <mclasen@redhat.com>
1003
1004         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
1005         -1 as possible value.  
1006         (gtk_tree_view_enable_model_drag_source) 
1007         (gtk_tree_view_enable_model_drag_dest): Pass the target list 
1008         to the underlying dnd implementation, otherwise we miss the 
1009         target info in the drag-data-received signal.  (#164085, Jorn
1010         Baayen)
1011
1012 2005-04-06  Matthias Clasen  <mclasen@redhat.com>
1013
1014         * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column) 
1015         (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
1016         to gdk_window_get_pointer(). (#168015, Billy Biggs)
1017
1018         * po/.cvsignore, po-properties/.cvsignore: Remove
1019         Makefile.in.in.  (#171092, Stepan Kasal)
1020
1021         * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify 
1022         scanner->value, copy it first.  (#165693, Tommi Komulainen)
1023
1024 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
1025
1026         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus): 
1027         * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
1028         grab_focus for GtkComboBox and GtkComboBoxEntry.  (#171912,
1029         Gustavo Carneiro)
1030
1031         * gtk/gtkicontheme.c: Store icon caches along with the
1032         mtimes of the toplevel directories. The previous
1033         mechanism of a hashtable-per-theme caused duplicate icon
1034         caches for the same toplevel directory to be created.  
1035         (#170030)
1036
1037 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
1038
1039         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): 
1040         Fix a typo in a warning.
1041
1042         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
1043         the license and credits buttons from being affected by 
1044         gtk_widget_show_all().  (#172724)
1045
1046 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
1047
1048         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a 
1049         reference to the item.  (#167920, Hazael Maldonado Torres)
1050
1051         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
1052         more docs on interactive search.
1053
1054 2005-04-05  Tor Lillqvist  <tml@novell.com>
1055
1056         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
1057         display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
1058         returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
1059
1060         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
1061         24bpp GdkVisual on 32bpp displays. (#140706)
1062
1063 Mon Apr  4 19:13:23 2005  Jonathan Blandford  <jrb@redhat.com>
1064
1065         Fix for #172319, Tristan Van Berkom:
1066         
1067         * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
1068         gtk_tree_view_real_expand_row() instead of doing this by hand.
1069
1070 2005-04-04  Johan Dahlin  <johan@gnome.org>
1071
1072         * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
1073         (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
1074         (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
1075
1076 Mon Apr  4 14:33:55 2005  Manish Singh  <yosh@gimp.org>
1077
1078         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1079         cast combo->priv->entry to GTK_ENTRY()
1080
1081         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1082         cast completion->priv->tree_view to GTK_TREE_VIEW()
1083
1084 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
1085
1086         * gtk/gtktextbuffer.c: Some trivial doc fixes.
1087
1088         * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve 
1089         the wording of the doc comment.  (#172422, Vincent Untz)
1090
1091 2005-04-04  Owen Taylor  <otaylor@redhat.com>
1092
1093         * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
1094         drawing to Cairo. Also always draw the entire triangle instead
1095         of just drawing the center for prelight. (Fixes inconsistent
1096         drawing in GtkTreeView.)
1097
1098 2005-04-04  Johan Dahlin  <johan@gnome.org>
1099
1100         * gtk/gtk.symbols: Remove symbols accidentally added.
1101         * gtk/gtkentryprivate.h: Add boolean property popup_set_width
1102         * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
1103         Use object_class instead of gobject_class
1104
1105 Mon Apr  4 12:14:35 2005  Søren Sandmann  <sandmann@redhat.com>
1106
1107         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
1108         widget coordinates instead of root coordinates. Patch from Jorn
1109         Baayen. (#172236)
1110
1111 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
1112
1113         * gtk/gtktoolbar.c: Add a tooltips property.
1114
1115         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init): 
1116         * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
1117
1118         * gtk/gtktoggletoolbutton.c: Add an active property.
1119
1120 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
1121
1122         Allow completion popups to be wider than the entry. (#131916, 
1123         Ross Burton)
1124         
1125         * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
1126
1127         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
1128         Don't force the popup to have the same width as the entry if 
1129         popup-set-width is FALSE.
1130
1131         * gtk/gtk.symbols: Add new functions.
1132
1133 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
1134
1135         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
1136         Use gtk_accel_map_change_entry(), so that reusing the same
1137         action name works.  (#170727, Paolo Borelli)
1138
1139 2005-04-04  Tor Lillqvist  <tml@novell.com>
1140
1141         * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
1142         function, to log a clipboard format name symbolically.
1143         (_gdk_win32_data_to_string): Also new, to log random data bytes.
1144
1145         Implement delayed rendering on Win32, specifically for transfering
1146         images through the clipboard from GTK+ apps to other
1147         apps (#168173, implementation by Ivan Wong):
1148
1149         * gdk/win32/gdkevents-win32.c (gdk_event_translate): 
1150         Handle WM_RENDERFORMAT.
1151
1152         * gdk/win32/gdkprivate-win32.h
1153         * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
1154         _delayed_rendering_data and _image_bmp.
1155
1156         * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
1157
1158         * gdk/win32/gdkproperty-win32.c (gdk_property_change):
1159         Accept formats other than GDK_TARGET_STRING or _utf8_string, and
1160         assume they are handled through delayed rendering.
1161
1162         * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
1163         Return all available formats (including those registered by GTK+
1164         apps) on request_targets.
1165         (gdk_selection_property_get): We should append a zero byte like
1166         X11 does.
1167         (gdk_win32_selection_add_targets): New function, for
1168         gtkselection's use. Win32 requires that the clipboard owner
1169         registers all valid formats even if the owner wants delayed
1170         rendering.
1171         (_gdk_win32_selection_convert_to_dib): New function. Convert
1172         images to DIB using gdk-pixbuf.
1173
1174         * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
1175
1176         * gtk/gtkselection.c (gtk_selection_add_target,
1177         gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
1178         to register target formats.
1179
1180         * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
1181
1182 2005-04-03  Hans Breuer  <hans@breuer.org>
1183
1184         [merged from gtk-2-6 branch]
1185         * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
1186         the line pattern not the start of the line. Fixes bug #171641.
1187
1188         * gtk/makefile.msc.in : follow .symbols changes
1189
1190         * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
1191         dynamically. (It is not available in _WIN_VER <= 0x0400)
1192
1193         * gdk/win32/makefile.msc : removed gdkpango-win32.obj
1194
1195         * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
1196
1197         [also applied to gtk-2-6 branch]
1198         * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
1199
1200         * gdk/makefile.msc.in : add gtkmnemonichash.obj
1201
1202         * test/testgtk.c(set_parent_signal) : use g_message instead of
1203         g_print to keep the 'testgtk --bench=all' output clean
1204
1205 2005-04-03  Matthias Clasen  <mclasen@redhat.com>
1206
1207         * gtk/gtkruler.c: Add a "metric" property.
1208
1209         * gtk/gtkradiomenuitem.c: Add a "group" property like
1210         the one found in radio buttons.
1211
1212         * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
1213         a typo in the docs.
1214         (gtk_radio_button_set_group): Add change notification.
1215
1216 2005-04-01  Matthias Clasen  <mclasen@redhat.com>
1217
1218         * gtk/gtkselection.c: Move documentation inline, document
1219         if add_target functions append or prepend.  (#172350, 
1220         Jon-Kare Hellan)
1221
1222 2005-04-01  Matthias Clasen  <mclasen@redhat.com>
1223
1224         Make gtk_combo_box_get_active_text do the right thing for
1225         GtkComboBoxEntry (#171373, Robert Staudinger)
1226         
1227         * gtk/gtkcombobox.h: Add a get_active_text vfunc.
1228         
1229         * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
1230         implement it here.
1231
1232         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text): 
1233         Implement get_active_text by always returning the content of 
1234         the entry.
1235
1236 2005-03-31  Sven Neumann  <sven@gimp.org>
1237
1238         Merged from gtk-2-6:
1239
1240         * gtk/gtkbutton.c
1241         * gtk/gtkiconview.c: fixed gtk-doc comments.
1242
1243 2005-03-31  Michael Natterer  <mitch@gimp.org>
1244
1245         Allow to pop up menus without grabbing the keyboard. Useful for
1246         stuff like virtual keyboards. Fixes bug #159890
1247
1248         * gtk/gtk.symbols
1249         * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
1250         and public API gtk_menu_shell_set/get_take_focus().
1251
1252         * gtk/gtkmenu.c (gtk_menu_popup)
1253         (popup_grab_on_window): don't grab the keyboard if take_focus
1254         is FALSE.
1255
1256         * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
1257         parent menu_shell's take_focus property to the submenu which is
1258         about to be popped up.
1259
1260 2005-03-30  Federico Mena Quintero  <federico@ximian.com>
1261
1262         Merged from gtk-2-6:
1263
1264         Fix #170755:
1265
1266         * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
1267         if the row which changed is the same as the row being edited.
1268
1269 2005-03-30  Matthias Clasen  <mclasen@redhat.com>
1270
1271         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
1272         Make enable_search control only typeahead, not C-f.  (#170435,
1273         Sven Neumann)
1274         (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
1275
1276         * gdk/gdkpixbuf.h: Include cairo.h
1277
1278         * gtk/gtkclipboard.c (gtk_clipboard_set_can_store): 
1279         Don't accept n_targets == -1.
1280         (clipboard_unset): unref the old_data, not the
1281         user_data which we have just cleared.  (#172038, Sven
1282         Neumann)
1283
1284         * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't 
1285         segfault if somebody tries to popup an unrealized
1286         combo box.  (#172031, Felipe Heidrich)
1287
1288 2005-03-30  Tor Lillqvist  <tml@novell.com>
1289
1290         * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
1291         state field should represent the state before the event, like on
1292         X11. (#169753)
1293         (gdk_event_translate): Fix event filter handling. If an event
1294         filter (global, client message filter, of window-specific) returns
1295         GDK_FILTER_CONTINUE, continue as if nothing happened. If it
1296         returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
1297         from gdk_event_translate() which means that DefWindowProc() will
1298         not be called.
1299         (gdk_event_translate): Fix client message handling. Append a
1300         GDK_CLIENT_EVENT unless there is a filter that matches and returns
1301         something other than GDK_FILTER_CONTINUE. (#135552)
1302
1303 2005-03-29  Matthias Clasen  <mclasen@redhat.com>
1304
1305         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func): 
1306         Document the need to refilter if parameters of the visibility function
1307         change.  (#169516, Olivier Sessink)     
1308
1309 Mon Mar 28 15:13:42 2005  Søren Sandmann  <sandmann@redhat.com>
1310
1311         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
1312         invalidate areas that are covered by mapped input-output child
1313         windows. Bug 141380.
1314
1315 2005-03-28  Jeroen Zwartepoorte  <jeroen.zwartepoorte@gmail.com>
1316
1317         * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
1318         the preview label ellipsize so the dialog layout stays constant.
1319         (#171398)
1320
1321 2005-03-28  Matthias Clasen  <mclasen@redhat.com>
1322
1323         * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
1324         the context menu of the search entry if it is not visible.
1325         (#169534, Billy Biggs)
1326
1327 2005-03-27  Tor Lillqvist  <tml@novell.com>
1328
1329         * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
1330         after all, and in fact necessary with HEAD libtool.
1331
1332 2005-03-26  Matthias Clasen  <mclasen@redhat.com>
1333
1334         * gtk/*.c: 
1335         * gdk/gdkdisplaymanager.c: 
1336         Use canonical names for g_object_notify() as well. 
1337
1338 2005-03-24  Tor Lillqvist  <tml@novell.com>
1339
1340         * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
1341         in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
1342         gtk+-2.0.pc file and automatically used by dependents. MSVC users
1343         who use pkg-config will have to manually edit it out from
1344         gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
1345         some kind of conditionals in .pc files?
1346
1347 2005-03-23  Matthias Clasen  <mclasen@redhat.com>
1348
1349         * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
1350         a call whose result was unused and leaked.  (#170776,
1351         Kjartan Maraas)
1352
1353         Some cleanups to the GtkDialog code:  (#170746, 
1354         Morten Welinder)
1355         * gtk/gtkdialog.c (action_widget_activated): Simplify,
1356         use _gtk_dialog_get_response_for_widget.
1357         (gtk_dialog_add_action_widget): Use the correct signal
1358         id for non-buttons.
1359         (gtk_dialog_set_response_sensitive): 
1360         (gtk_dialog_set_default_response): Use get_response_data.
1361         (gtk_dialog_run): Don't disconnect the signals if the
1362         dialog was destroyed while running.
1363
1364 Tue Mar 22 14:16:31 2005  Manish Singh  <yosh@gimp.org>
1365
1366         * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
1367         Use g_return_if_fail, not g_return_val_if_fail.
1368
1369 2005-03-22  Matthias Clasen  <mclasen@redhat.com>
1370
1371         Implement bookmark renaming  (#136216, Sean Middleditch)
1372         
1373         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add 
1374         get_bookmark_label and set_bookmark_label vfuncs.
1375
1376         * gtk/gtkfilesystem.h:
1377         * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label): 
1378         (gtk_file_system_get_bookmark_label): Wrappers for the
1379         vfuncs.
1380
1381         * gtk/gtk.symbols: Add new exported symbols.
1382
1383         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label): 
1384         (gtk_file_system_unix_get_bookmark_label): Implementations
1385         for the Unix backend.
1386
1387         * gtk/gtkfilechooserdefault.c: Add a context menu to
1388         the bookmarks pane, and allow to rename bookmarks.
1389
1390 2005-03-22  Matthias Clasen  <mclasen@redhat.com>
1391
1392         * gtk/gtkpathbar.c (gtk_path_bar_unmap): 
1393         * gtk/gtkspinbutton.c (gtk_spin_button_unmap): 
1394         * gtk/gtknotebook.c (gtk_notebook_unmap): 
1395         * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
1396         the widget is unmapped.  (#168791, Ryan Lortie)
1397
1398 2005-03-21  Matthias Clasen  <mclasen@redhat.com>
1399
1400         * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
1401         GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
1402         their G_ counterparts, but also mark the name, nick
1403         and blurb as static.
1404
1405         * gtk/*.c: Mark param spec strings as static, using
1406         the new macros.
1407
1408         * gtk/gtkspinbutton.h: Fix a typo.
1409
1410 2005-03-21  Matthias Clasen  <mclasen@redhat.com>
1411
1412         * gtk/gtkcellrendererprogress.c: 
1413         * gtk/gtkcellrendererpixbuf.c: 
1414         * gtk/gtkcellrenderercombo.c: 
1415         * gtk/gtkcellrenderer.c: 
1416         * gtk/gtkcalendar.c: 
1417         * gtk/gtkbutton.c: 
1418         * gtk/gtkbox.c: 
1419         * gtk/gtkbbox.c: 
1420         * gtk/gtkaspectframe.c: 
1421         * gtk/gtkarrow.c: 
1422         * gtk/gtkalignment.c: 
1423         * gtk/gtkactiongroup.c: 
1424         * gtk/gtkaction.c:
1425         * gtk/gtkaccellabel.c: 
1426         * gtk/gtkaboutdialog.c: Mark param spec strings as static.
1427
1428         * gdk/gdkpango.c (gdk_pango_renderer_class_init): 
1429         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
1430         param spec strings as static.
1431
1432 2005-03-21  Tor Lillqvist  <tml@novell.com>
1433
1434         * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
1435         variables, unhandled enum value in switch). Use g_object_unref()
1436         instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
1437
1438         * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state): 
1439         Add missing "case" keyword.
1440
1441         * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
1442         explicitly.
1443
1444 2005-03-20  Tor Lillqvist  <tml@novell.com>
1445
1446         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
1447         Terminal Services session number, window station name (always
1448         "WinSta0" in interactive processes), and desktop name (typically
1449         "Default"), concatenated with backslash separators.
1450         (gdk_display_open): Accept only NULL or the string
1451         gdk_display_get_name() returns as display name.
1452
1453 2005-03-20  Matthias Clasen  <mclasen@redhat.com>
1454
1455         Make PLT-reduction work with gcc4, and don't include
1456         everything in gdkalias.h:
1457         
1458         * gtk/grk.symbols: Group symbols by header and source file.
1459         * gtk/makegtkalias.pl: Protect definitions by the same 
1460         preprocessor symbols used to guard the headers. Move
1461         the alias declarations to a separate file which is 
1462         produced when calling makegtkalias.pl -def
1463         * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate 
1464         this file.
1465         * gtk/*.c: Include gtkalias.h after the other headers, 
1466         include gtkaliasdef.c at the bottom.
1467         * gtk/*.h: Small cleanups.
1468
1469 Fri Mar 18 23:59:49 2005  Soeren Sandmann  <sandmann@redhat.com>
1470
1471         * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
1472         Make right-clicks not pop up the menu.
1473
1474 2005-03-18  Owen Taylor  <otaylor@redhat.com>
1475
1476         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish): 
1477         Call cairo_surface_finish()
1478
1479         * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
1480         _gdk_windowing_set_surface_device_offset().
1481
1482 2005-03-18  Tor Lillqvist  <tml@novell.com>
1483
1484         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
1485         WM_MOUSEMOVE, don't check if this process owns the active
1486         window. This makes cross-application widget embedding work better.
1487         On WM_MOVE, don't bother checking for window visibility.
1488
1489         * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
1490         unused variables. Add some casts to silence gcc.
1491
1492 2005-02-24  Owen Taylor  <otaylor@redhat.com>
1493
1494         * gdk/gdkwindow.c: Use cairo_set_device_offset().
1495
1496         * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
1497         gdk/win32/gdkpixmap-win32.c: 
1498         Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the 
1499         drawable. Add _gdk_drawable_win32_finish() to clean up resources
1500         when a drawable is destroyed.
1501
1502         * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
1503         (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use 
1504         acquire/release_dc when getting a DC to use with a GC or for 
1505         blitting from a pixmap.
1506
1507         * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
1508
1509         * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
1510         Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
1511         implementations.
1512
1513         * gdk/win32/gdkdrawable-win32.c: Remove 
1514         gdk_draw_rectangle_alpha_libgtk_only()
1515
1516 2005-03-17  Owen Taylor  <otaylor@redhat.com>
1517
1518         * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
1519         EXTEND_REPEAT on the stipple pattern.
1520
1521 2005-03-17  Matthias Clasen  <mclasen@redhat.com>
1522
1523         * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
1524         in example in the docs.  (#170611, Jianfei Wang)
1525
1526         * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
1527         adjustment values on resize.  (#170567, Tomislav Jonjic)
1528
1529         * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
1530         if there is no cache.  (#170652, Diego Gonzalez)
1531         
1532         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
1533         Make inline completion insert the prefix at the
1534         right spot.  (#170146, Doug Quale)
1535
1536 2005-03-17  Tor Lillqvist  <tml@novell.com>
1537
1538         * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
1539
1540 2005-03-16  Matthias Clasen  <mclasen@redhat.com>
1541
1542         * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize): 
1543         Typo fix in the docs.
1544         
1545         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip): 
1546         Typo fix in the docs.
1547
1548         * gtk/gtkiconview.c (gtk_icon_view_set_columns) 
1549         (gtk_icon_view_get_columns, gtk_icon_view_set_item_width) 
1550         (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing) 
1551         (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing) 
1552         (gtk_icon_view_set_column_spacing) 
1553         (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin) 
1554         (gtk_icon_view_set_margin): Add docs.
1555         
1556         * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row): 
1557         Add docs.
1558
1559 2005-03-15  Owen Taylor  <otaylor@redhat.com>
1560
1561         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c 
1562         gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
1563         gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
1564         ref_cairo_surface()
1565
1566         * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
1567         function to create_cairo_context()
1568
1569         * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
1570
1571         * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
1572         not just the pixel.
1573
1574         * tests/testcairo.c: Update for create_cairo_context()
1575
1576         * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
1577         Reimplement in terms of Cairo, bypass the vtable entries.
1578
1579         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
1580         gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
1581         gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
1582         implementation of draw_trapezoids / draw_glyphs[_transformed].
1583
1584         * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
1585
1586         * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
1587         gdk_pango_context_get_for_screen() into the backend independent code.
1588
1589         * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
1590         for drawing images.
1591
1592         * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
1593         gdk_draw_rectangle_alpha_libgtk_only.
1594
1595         * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add 
1596         gdk_pixbuf_set_as_cairo_source()
1597
1598         * gdk/gdk.symbols: Update
1599
1600         * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
1601         gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
1602
1603         * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
1604         gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
1605         radio button style for now to get something more scalable.
1606
1607         *  gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
1608         antialiasing/dpi settings.
1609
1610 2005-03-16  Matthias Clasen  <mclasen@redhat.com>
1611
1612         * demos/gtk-demo/editable_cells.c: Also demonstrate
1613         GtkCellRenderer::editing-started and separators.
1614
1615 Tue Mar 15 20:34:33 2005  Manish Singh  <yosh@gimp.org>
1616
1617         * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
1618
1619 2005-03-15  Matthias Clasen  <mclasen@redhat.com>
1620
1621         Make PLT-reduction work with gcc4, and don't include
1622         everything in gdkalias.h:
1623
1624         * gdk/gdk.symbols: Group symbols by header and source file.
1625         * gdk/makegdkalias.pl: Protect definitions by the same
1626         preprocessor symbols used to guard the headers. Move
1627         the alias declarations to a separate file which is
1628         produced when calling makegdkalias.pl -def
1629         * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
1630         file.
1631         * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
1632         headers, include gdkaliasdef.c at the bottom.
1633
1634 2005-03-16  Tor Lillqvist  <tml@novell.com>
1635
1636         * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
1637         debugging output only if asked for, not always.
1638
1639         * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
1640         debugging printout instead of +%d+%d. Misc other additions and
1641         cosmetic improvements to debugging printouts. Use API_CALL() and
1642         GDI_CALL() macros in more places.
1643
1644         * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
1645         gdk_window_move_resize): To detect child windows, check whether
1646         the real parent is not the desktop window, instead of relying on
1647         the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
1648         windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
1649         de facto child windows.
1650
1651         * gdk/win32/gdkprivate-win32.h
1652         * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
1653         GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
1654         _gdk_root.
1655
1656         * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
1657         toplevel_window_type field.
1658
1659         * gdk/win32/gdkwindow-win32.c: As there is only one root window in
1660         GDK on Win32, we can compare directly to _gdk_root instead of
1661         checking the window type.
1662         (gdk_window_reparent): When reparenting a child of the desktop
1663         clear out the window decorations. Correspondingly, when
1664         reparenting to the desktop, add decorations. As in the X11
1665         backend, save the window type of a toplevel window when
1666         reparenting, in case it is reparented back to toplevel.
1667
1668 2005-03-15  Matthias Clasen  <mclasen@redhat.com>
1669
1670         * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
1671         example for manually setting up a group of actions.
1672
1673         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
1674         Document that inline completion requires text-column to be set.
1675         (gtk_entry_completion_compute_prefix): Return NULL if text-column
1676         is not set.
1677
1678         * gtk/gtkentry.c (check_completion_callback): Call 
1679         gtk_entry_completion_complete() before inserting the prefix,
1680         otherwise the prefix may depend on (random) state of the
1681         filter model.  
1682
1683 2005-03-15  Anders Carlsson  <andersca@imendio.com>
1684
1685         * docs/iconcache.txt:
1686         Update spec.
1687         
1688         * gtk/gtkiconcache.c: (find_image_offset),
1689         (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
1690         (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
1691         * gtk/gtkiconcache.h:
1692         Update to be able to fetch pixbuf data and icon metadata.
1693         
1694         * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
1695         (icon_info_ensure_scale_and_pixbuf):
1696         Use new cache functions.
1697         
1698         * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
1699         (maybe_cache_image_data), (scan_directory), (write_pixdata),
1700         (get_image_meta_data_size), (get_image_pixel_data_size),
1701         (get_image_data_size), (get_single_node_size), (get_bucket_size),
1702         (write_bucket), (main):
1703         Update to write pixbuf data as well as information from .icon
1704         files.
1705         
1706 2005-03-15  Tor Lillqvist  <tml@novell.com>
1707
1708         * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
1709         debugging function. As GetKeyNameText() returns a localized key
1710         name we need to convert it to UTF-8.
1711
1712         * gdk/win32/gdkprivate-win32.h: Declare it.
1713
1714         * gdk/win32/gdkevents-win32.c: Use it.
1715
1716         * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
1717         handling of children of foreign windows. They should be child
1718         windows from Windows's perspective, even if they are toplevel GDK
1719         windows.
1720
1721 2005-03-13  Ivan, Wong Yat Cheung  <email@ivanwong.info>
1722
1723         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
1724         for big window support. Now also the test in testgtk works.
1725
1726 2005-03-11  Matthias Clasen  <mclasen@redhat.com>
1727
1728         * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
1729         style changes.  (#169334, Yury Puzis)
1730
1731         * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
1732         the doc comments.  (#169967, Masao Mutoh)
1733
1734 2005-03-12  Ivan, Wong Yat Cheung  <email@ivanwong.info>
1735
1736         Big window fix for Win32. Big windows are still emulated within
1737         16-bit coordinate limits, though. Big windows now work on NT-based
1738         Windows. (#169989)
1739
1740         * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
1741         32-bit coordinates.
1742
1743         * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
1744
1745         * gdk/win32/gdkwindow-win32.c: Minor related changes.
1746         
1747 2005-03-10  Matthias Clasen  <mclasen@redhat.com>
1748
1749         * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv): 
1750         Fix a doc typo.  (#169873, Johan Dahlin)
1751
1752         * gtk/gtkdialog.c (gtk_dialog_map): Don't
1753         try to focus the default_widget if there is 
1754         none.  (#169881, Thomas Leonard)
1755
1756 Wed Mar  9 19:20:44 2005  Manish Singh  <yosh@gimp.org>
1757
1758         * configure.in: Remove inadvertent gail references, require
1759         Pango 1.9.0
1760
1761 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
1762
1763         * configure.in: Require GLib 2.7.0
1764
1765 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
1766
1767         * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
1768         (#169728, Morten Welinder, Owen Taylor)
1769
1770         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
1771         in the docs.  (#169729, Morten Welinder)
1772
1773         * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
1774
1775         * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize 
1776         when the model is unset.  (#169528, Tomislav Jonjic)
1777
1778 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
1779
1780         * gtk/gtkviewport.c (gtk_viewport_class_init): 
1781         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): 
1782         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init): 
1783         * gtk/gtktipsquery.c (gtk_tips_query_class_init): 
1784         * gtk/gtktext.c (gtk_text_class_init): 
1785         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): 
1786         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): 
1787         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): 
1788         * gtk/gtkoptionmenu.c (gtk_option_menu_class_init): 
1789         * gtk/gtkoldeditable.c (gtk_old_editable_class_init): 
1790         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): 
1791         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): 
1792         * gtk/gtktoolitem.c (gtk_tool_item_class_init): 
1793         * gtk/gtkimage.c (gtk_image_class_init): 
1794         * gtk/gtkruler.c (gtk_ruler_class_init): 
1795         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
1796         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): 
1797         * gtk/gtkprogress.c (gtk_progress_class_init): 
1798         * gtk/gtkmenu.c (gtk_menu_class_init): 
1799         * gtk/gtkscale.c (gtk_scale_class_init): 
1800         * gtk/gtkpaned.c (gtk_paned_class_init): 
1801         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
1802         * gtk/gtkfontbutton.c (gtk_font_button_class_init): 
1803         * gtk/gtkfontsel.c (gtk_font_selection_class_init): 
1804         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
1805         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
1806         * gtk/gtkcurve.c (gtk_curve_class_init): 
1807         * gtk/gtkcombo.c (gtk_combo_class_init): 
1808         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
1809         * gtk/gtkcolorbutton.c (gtk_color_button_class_init): 
1810         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): 
1811         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): 
1812         * gtk/gtkcheckbutton.c (gtk_check_button_class_init): 
1813         * gtk/gtktogglebutton.c (gtk_toggle_button_class_init): 
1814         * gtk/gtkcellview.c (gtk_cell_view_class_init): 
1815         * gtk/gtktoolbar.c (gtk_toolbar_class_init): 
1816         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): 
1817         * gtk/gtkclist.c (gtk_clist_class_init): 
1818         * gtk/gtkctree.c (gtk_ctree_class_init): 
1819         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): 
1820         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
1821         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init): 
1822         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init): 
1823         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
1824         * gtk/gtkbbox.c (gtk_button_box_class_init): 
1825         * gtk/gtktable.c (gtk_table_class_init): 
1826         * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): 
1827         * gtk/gtkframe.c (gtk_frame_class_init): 
1828         * gtk/gtkaction.c (gtk_action_class_init): 
1829         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): 
1830         * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init): 
1831         * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
1832
1833 2005-03-08  Matthias Clasen  <mclasen@redhat.com>
1834
1835         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): 
1836         * gtk/gtkrange.c (gtk_range_class_init): 
1837         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): 
1838         * gtk/gtktexttag.c (gtk_text_tag_class_init): 
1839         * gtk/gtktextview.c (gtk_text_view_class_init): 
1840         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): 
1841         * gtk/gtknotebook.c (gtk_notebook_class_init): 
1842         * gtk/gtkentry.c (gtk_entry_class_init): 
1843         * gtk/gtkexpander.c (gtk_expander_class_init): 
1844         * gtk/gtkarrow.c (gtk_arrow_class_init): 
1845         * gtk/gtkalignment.c (gtk_alignment_class_init): 
1846         * gtk/gtkbutton.c (gtk_button_class_init): 
1847         * gtk/gtklabel.c (gtk_label_class_init): 
1848         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): 
1849         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
1850         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 
1851         * gtk/gtktreeview.c (gtk_tree_view_class_init): 
1852         * gtk/gtkbox.c (gtk_box_class_init): 
1853         * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): 
1854         * gtk/gtkcontainer.c (gtk_container_class_init): 
1855         * gtk/gtkwidget.c (gtk_widget_class_init): 
1856         * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
1857         when registering param specs.
1858
1859         * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
1860         (#169607, Mark McLoughlin)
1861         
1862         * gtk/gtk.symbols: Add the new attributes here, too.
1863
1864         * gtk/gtkwidget.h: 
1865         * gtk/gtktreeview.h: 
1866         * gtk/gtktreeviewcolumn.h: 
1867         * gtk/gtktextbuffer.h: 
1868         * gtk/gtkobject.h: 
1869         * gtk/gtkfilechooserdialog.h: 
1870         * gtk/gtkdialog.h: 
1871         * gtk/gtkcontainer.h: 
1872         * gtk/gtkcelllayout.h: 
1873         * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
1874         appropriate.  (#165682, Marc Meissner)
1875
1876 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
1877
1878         Convert the gdk keyval-keyname tables to a big string
1879         + offsets. (#168901)
1880         
1881         * gdk/gen-keyname-table.pl: Perl script inspired by
1882         pango/tools/gen-color-table.pl to create the 
1883         gdk_keys_by_keyval and gdk_keys_by_name tables as lists
1884         of offsets pointing into a big const string.
1885         
1886         * gdk/keynames.txt: List of keyval-keyname pairs.
1887         * gdk/keyname-table.h: Generated tables.
1888
1889         * gdk/gdkkeynames.c: Include keyname-table.h and don't
1890         generate the inverse table at runtime.
1891
1892 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
1893
1894         * gtk/gtkstyle.c: Document which parameters may be NULL.  
1895         (#166855, Frank Naumann)
1896
1897 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
1898
1899         * AUTHORS: Add original authors of incorporated software.
1900
1901 Thu Mar  3 16:59:44 2005  Manish Singh  <yosh@gimp.org>
1902
1903         * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
1904
1905 2005-03-03  Matthias Clasen  <mclasen@redhat.com>
1906
1907         * gtk/gtksettings.c (gtk_settings_get_property): 
1908         * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak 
1909         the values here.  (#169047, Philip Langdale)
1910
1911         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
1912         Don't warn if a stock icon cannot be found.  (#168830,
1913         Sven Neumann)
1914
1915 2005-03-03  Matthias Clasen  <mclasen@redhat.com>
1916
1917         * gtk/gtkwidget.c (gtk_widget_reparent_subwindows): 
1918         Avoid warnings if gtk_widget_reparent() is called at
1919         unusual times.  (#168966, Christian Persch)
1920
1921 Tue Mar  1 14:04:08 2005  Manish Singh  <yosh@gimp.org>
1922
1923         * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
1924         const warnings on data structure seeding.
1925
1926 Tue Mar  1 13:53:56 2005  Manish Singh  <yosh@gimp.org>
1927
1928         * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
1929
1930 2005-03-01  Matthias Clasen  <mclasen@redhat.com>
1931
1932         * gtk/gtkmenutoolbutton.c (button_state_changed_cb): 
1933         Fix prelighting.  (#157392, Vincent Noel, patch by
1934         Christian Persch)
1935
1936         * gtk/gtkicontheme.c (theme_lookup_icon): Make 
1937         icon data caching work again.  (#168851, Alexander Larsson)
1938
1939         * gdk-pixbuf/gdk-pixbuf.c:
1940         * gdk-pixbuf/gdk-pixbuf-features.h.in:
1941         Revert the previous change, since it breaks
1942         bin compat.
1943
1944 2005-03-01  Matthias Clasen  <mclasen@redhat.com>
1945
1946         * gdk/gdkkeyuni.c
1947         * gdk/gdkpixbuf-drawable.c
1948         * gdk/gdkrgb.c
1949         * gdk/x11/gdkdnd-x11.c
1950         * gdk/x11/gdkevents-x11.c
1951         * gdk/x11/gdkproperty-x11.c
1952         * gdk/x11/gdkvisual-x11.c
1953         * gdk-pixbuf/gdk-pixbuf.c
1954         * gdk-pixbuf/gdk-pixbuf-features.h.in
1955         * gtk/gtkaction.c
1956         * gtk/gtkbindings.c
1957         * gtk/gtkcolorbutton.c
1958         * gtk/gtkcombo.c
1959         * gtk/gtkcontainer.c
1960         * gtk/gtkfilechooserdefault.c
1961         * gtk/gtkfilesel.c
1962         * gtk/gtkgamma.c
1963         * gtk/gtkiconview.c
1964         * gtk/gtkinputdialog.c
1965         * gtk/gtkitemfactory.c
1966         * gtk/gtkmenu.c
1967         * gtk/gtktextview.c
1968         * gtk/gtktooltips.c
1969         * gtk/gtktreedatalist.c
1970         * gtk/gtkuimanager.c
1971         * gtk/tree_minus.xpm
1972         * gtk/tree_plus.xpm
1973         * gtk/xdgmime/xdgmime.c
1974         * gtk/xdgmime/xdgmime.h: 
1975         Move constant data to .rodata.
1976
1977 2005-02-27  Matthias Clasen  <mclasen@redhat.com>
1978
1979         * gtk/gtkaction.c (connect_proxy): Improve the handling
1980         of buttons as action proxys.  (#165534, Milosz Derezynski)
1981
1982         * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
1983         (#168646, Vincent Untz)
1984
1985         * gtk/gtkfilechooserdefault.c (save_folder_combo_create): 
1986         Unset "focus-on-click" for the save folder combo.  (#168688,
1987         Sven Neumann)
1988
1989 2005-02-25  Matthias Clasen  <mclasen@redhat.com>
1990
1991         * demos/testpixbuf.c (main): Remove a C++ comment.  (#168531, 
1992         Paul Cornett)
1993
1994         * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a 
1995         path here.  (#168443, Morten Welinder)
1996
1997 2005-02-24  Robert Ögren  <gtk@roboros.com>
1998
1999         Implement better handling of Wintab tablet context overlap on
2000         Win32. (#167298)
2001
2002         * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
2003         function that brings any tablet contexts to the top of the overlap
2004         order.
2005         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
2006         * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2007         Call _gdk_input_set_tablet_active when a window is activated (on
2008         WM_ACTIVATE)
2009
2010 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
2011
2012         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path): 
2013         Don't leak parent_path.  (#168435, Morten Welinder)
2014
2015 Thu Feb 24 14:20:16 2005  Søren Sandmann  <sandmann@redhat.com>
2016
2017         * gtk/gtkstyle.c: Add
2018
2019         g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
2020
2021         all over the place.
2022
2023 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
2024
2025         * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
2026         (gtk_combo_box_model_row_deleted): Update the displayed row in 
2027         the cell_view.  (#167842, Gustavo Carneiro)
2028
2029 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
2030
2031         Fix #167259, reported by  Christian Persch:
2032         
2033         * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented 
2034         widget, even if we avoid the unrealizing. 
2035         (gtk_widget_reparent_subwindows): Make reparenting work for
2036         !NO_WINDOW widgets which have other windows which are siblings
2037         of widget->window (as e.g. GtkSpinButton).
2038
2039 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
2040
2041         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
2042         Don't emit a warning if a parent node is filtered out. (#164726,
2043         Olivier Sessink)
2044
2045 2005-02-23  Matthias Clasen  <mclasen@redhat.com>
2046
2047         * gtk/gtklabel.c (gtk_label_style_set): Revert the last 
2048         change, since gtk_widget_set_style_internal() already
2049         queues a resize.
2050
2051 2005-02-23  Matthias Clasen  <mclasen@redhat.com>
2052
2053         * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
2054         fonts may have changed.  (#164128, Phil Blundell)
2055
2056         * gtk/gtkaboutdialog.c (gtk_about_dialog_init) 
2057         (gtk_about_dialog_new): Move initialization code from _new to 
2058         _init.  (#168249, Murray Cumming) 
2059
2060 Wed Feb 23 17:34:01 2005  Jonathan Blandford  <jrb@redhat.com>
2061
2062         * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
2063         jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
2064         widgets.
2065
2066 2005-02-23  Tor Lillqvist  <tml@novell.com>
2067
2068         * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
2069         MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
2070
2071 Tue Feb 22 13:49:09 2005  Manish Singh  <yosh@gimp.org>
2072
2073         * gtk/updateiconcache.c: #include <config.h>
2074
2075 2005-02-22  Federico Mena Quintero  <federico@ximian.com>
2076
2077         Merged from gtk-2-6:
2078
2079         Fix #164940, patch by Ben Maurer and Tommi Komulainen.
2080
2081         * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
2082         (gdk_rgb_convert_565_d): Likewise.
2083         (DM_565): Made a static const precomputed array to avoid
2084         allocating it at runtime.
2085         (gdk_rgb_preprocess_dm_565): #ifdef out.
2086
2087 2005-02-20  Matthias Clasen  <mclasen@redhat.com>
2088
2089         * gtk/gtkwindow.c: 
2090         * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
2091         in the documentation.
2092
2093         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
2094         Set have_render_with_trapezoids to GDK_YES when we have 
2095         a new enough Render extension.  (#167965,Billy Biggs) 
2096
2097         * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
2098         the last user interaction when focusing the window.  (#166379, 
2099         Elijah Newren)
2100
2101 Thu Feb 17 14:58:16 2005  Manish Singh  <yosh@gimp.org>
2102
2103         * gtk/gtkuimanager.c (start_element_handler): make sure expand
2104         is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
2105
2106 Thu Feb 17 14:52:57 2005  Manish Singh  <yosh@gimp.org>
2107
2108         * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
2109
2110 2005-02-16  Matthias Clasen  <mclasen@redhat.com>
2111
2112         * docs/iconcache.txt: Add some information about the
2113         icon cache format (since I can't locate it at freedesktop.org)
2114
2115         Fixes for #143829, Tommi Komulainen, Christian Persch:
2116         
2117         * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
2118         typeselect_flush_timeout when destroying the widgets
2119         it is operating on.  
2120         (gtk_tree_view_ensure_interactive_directory): Add the 
2121         popup to the window group of the toplevel it belongs to.
2122
2123         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget) 
2124         (gtk_combo_box_popup): Do the same here. 
2125
2126 2005-02-14  Matthias Clasen  <mclasen@redhat.com>
2127
2128         * configure.in: Kill --enable-ansi  (#164394)
2129
2130 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
2131
2132         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling 
2133         when the pathbar goes away.  (#167094, Rodney Dawes)
2134         (change_icon_theme): Use GTK_ICON_SIZE_MENU here as 
2135         well  (Vincent Noel)
2136
2137 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
2138
2139         Support vertical menubars  (#166632): 
2140         
2141         * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack 
2142         directions, with values for left-to-right, right-to-left, 
2143         top-to-bottom and bottom-to-top.
2144
2145         * gtk/gtk.symbols: 
2146         * gtk/gtkmenubar.h: 
2147         * gtk/gtkmenubar.c: Add two properties, pack-direction and
2148         child-pack-direction, which specify how children and 
2149         grandchildren of a menubar are packed, with getters and setters. 
2150
2151         * gtk/gtkmenubar.c (gtk_menu_bar_set_property): 
2152         (gtk_menu_bar_get_property): Implement set_property and get_property.
2153
2154         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): 
2155         (gtk_menu_bar_size_allocate): Take pack direction into account.
2156
2157         * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement 
2158         move_current here move all the menubar-specific direction 
2159         tweaking from the generic menushell implementation here.
2160
2161         * gtk/gtkmenu.c (gtk_menu_move_current): Move  menu-specific 
2162         direction tweaking from the generic menushell implementation here.
2163
2164         * gtk/gtkmenuitem.c (gtk_menu_item_size_request): 
2165         (gtk_menu_bar_size_allocate): Take pack direction into account.
2166
2167         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request) 
2168         (gtk_image_menu_item_size_allocate): 
2169         (gtk_image_menu_item_toggle_size_request): Take child pack 
2170         direction into account and pack the image vertically if
2171         necessary.
2172
2173         * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
2174         Set the submenu direction to left-right for menuitems in 
2175         vertical menubars.
2176         (gtk_real_menu_shell_move_current): Simplify by moving
2177         direction tweaking to menu- and menubar-specific 
2178         implementations. Take pack direction into account when
2179         doing fallbacks.
2180
2181         * tests/testmenubars.c: Test menubars in various packing
2182         direction combinations.
2183
2184         * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
2185
2186 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
2187
2188         Complete the fix for #165770, Vincent Noel:
2189         
2190         * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
2191         fallback size be 16, to be equal to the default for
2192         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
2193         (gtk_file_chooser_button_init):
2194         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
2195         GTK_ICON_SIZE_SMALL_TOOLBAR. 
2196
2197 2005-02-09  Matthias Clasen  <mclasen@redhat.com>
2198
2199         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
2200         keynav for going from menubar to menu.
2201
2202 2005-02-08  Christian Rose  <menthos@menthos.com>
2203
2204         * configure.in: Added "xh" to ALL_LINGUAS.
2205
2206 2005-02-08  Matthias Clasen  <mclasen@redhat.com>
2207
2208         * gtk/gtkuimanager.c (start_element_handler): Accept 
2209         the "expand" attribute and set a flag in the node if it
2210         is set to "true".
2211         (update_node): If the expand flag is set, make separator
2212         toolitems non-drawn and expanding.  (#166489, Christian Persch)
2213
2214 2005-02-05  Hans Breuer  <hans@breuer.org>
2215
2216         * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
2217         build with Cairo dependency. The patch to acually use Cairo
2218         on win32 will be on gtk-devel-list soon.
2219         * tests/makefile.msc : add testcairo building
2220
2221         * gtk/stock-icons/makefile.msc : split command line into two to
2222         work with the shells default
2223
2224 Fri Feb  4 14:16:31 2005  Manish Singh  <yosh@gimp.org>
2225
2226         * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
2227         function.
2228
2229         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2230         Add some extra parens for bitop order of operations disambiguiation.
2231
2232         * gtk/gtkstock.c: Fix const confusion, make our own copy of the 
2233         domain when setting a translate function.
2234
2235         * tests/testcombo.c: removed unused variable.
2236
2237 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
2238
2239         * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
2240         being NULL.  (#166179, Diego Gonzalez)
2241
2242 2005-02-04  Owen Taylor  <otaylor@redhat.com>
2243
2244         * configure.in: Revert gtk_binary_version to 2.4.0. Fix
2245         up comment to talk only about backwards compat, not
2246         forward/backwards compat. (#166293, reported by Vincent Noel)
2247
2248 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
2249
2250         * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
2251         when there is not enough space. This avoids a nasty size
2252         allocation loop in the file chooser.  (#154007, reported 
2253         by Milosz Derezynski, patch by Robert Ögren)
2254
2255 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
2256
2257         * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
2258         selection of RTL direction if the widget does not have 
2259         focus.  (#164125, Frederic Crozat)
2260
2261 Thu Feb  3 19:15:55 2005  Manish Singh  <yosh@gimp.org>
2262
2263         * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
2264
2265 2005-02-03  Owen Taylor  <otaylor@redhat.com>
2266
2267         * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
2268         gdk_drawable_set_cairo_target().
2269
2270         * tests/testtreeflow.c (enum): Use grand not rand as a variable
2271         name because one of the cairo headers is pulling in stdlib.h.
2272
2273         * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
2274         example.
2275
2276         * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
2277
2278         * Require libpangocairo for all backends.
2279
2280 2005-02-03  Tor Lillqvist  <tml@novell.com>
2281
2282         * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
2283         wide character version of ImmGetCompositionString() here,
2284         too. (#165278, Takuro Ashie)
2285
2286 2005-02-03  Matthias Clasen  <mclasen@redhat.com>
2287
2288         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
2289         one roundtrip per motion event.  (#166173, pointed out
2290         by Chris Lee, patch by Søren Sandmann)
2291
2292         * gtk/gtk.symbols: 
2293         * gtk/gtkstock.h: 
2294         * gtk/gtkstock.c (gtk_stock_set_translate_func): 
2295         New function which allows to change the function used for
2296         translation stock labels, on a per-domain basis. Use this
2297         functionality to switch the GTK+ stock items to use Q_()
2298         prefixed msgids.  (#166179, Funda Wang)
2299         
2300         * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
2301         Tommi Komulainen)
2302
2303 2005-02-02  Federico Mena Quintero  <federico@ximian.com>
2304
2305         Merged from gtk-2-6:
2306
2307         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
2308         Don't select the first row if the chooser is not mapped.  This
2309         happens when it's acting on behalf of GtkFileChooserButton.  Also,
2310         don't select the first row if we are in SAVE or CREATE_FOLDER
2311         modes --- I had missed that (see the ChangeLog entry from
2312         2005-01-18).  Fixes #165264.
2313
2314 2005-02-02  Tor Lillqvist  <tml@novell.com>
2315
2316         Implement lazy extended input initialization on Win32, by Robert
2317         Ögren. Fixes #163163, possibly #162334. Lazy initialization would
2318         be a good idea in any case even if it didn't fix any visible
2319         problems, though.
2320
2321         The Wacom tablet driver seems to get confused if Wintab is
2322         initialized but no window is shown before the process exits. This
2323         is the case for some GIMP plug-ins, for instance. 
2324
2325         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
2326         non-static (and renamed).
2327         (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
2328
2329         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
2330
2331         * gdk/win32/gdkinput.c (gdk_devices_list,
2332         gdk_display_list_devices, gdk_input_set_extension_events): Call
2333         _gdk_input_wintab_init_check() here instead.
2334
2335 2005-02-02  Ivan, Wong Yat Cheung  <email@ivanwong.info>
2336
2337         * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
2338         of a single window so that gtk_clipboard_request_contents() can be
2339         called inside a GtkClipboardReceivedFunc(). (#163844)
2340
2341 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
2342
2343         * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
2344         in XDG_DATA_DIRS/pixmaps.  (#165950, Thomas Zajic)
2345
2346         * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
2347         to NULL after freeing it.  (#165800, Damon Chaplin)
2348
2349 2005-02-01  Michael Natterer  <mitch@gimp.org>
2350
2351         * configure.in: depend on stable pango-1.8, not unstable 1.7
2352
2353 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
2354
2355         Merged from gtk-2-6:
2356
2357         * gtk/gtkfilechooserdefault.c
2358         (browse_files_model_finished_loading_cb): Don't
2359         g_assert_not_reached() if we are in any other state.  Another code
2360         path may have triggered a folder reload.  Fixes #165556.
2361
2362 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
2363
2364         Merged from gtk-2-6:
2365
2366         Fix #165770:
2367
2368         * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
2369         fallback size be 16, to be equal to the default for
2370         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
2371         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
2372         GTK_ICON_SIZE_SMALL_TOOLBAR.
2373
2374 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
2375
2376         * */*.c: Fix many instances of "the the" in docs and
2377         comments.  (#165815, Masao Mutoh)
2378
2379         * gtk/updateiconcache.c (main): Add a --quiet option.
2380
2381 2005-02-01  Tor Lillqvist  <tml@novell.com>
2382
2383         * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
2384         reset_after_dead, handle_dead): New functions, code blocks
2385         refactored out of update_keymap(). No functionality change.
2386
2387         (update_keymap): Use ToUnicodeEx() when available (on NT-based
2388         Windows) instead of ToAsciiEx(). Makes keyboard input work in
2389         Unicode-only input locales that don't have any ANSI codepage, for
2390         instance Hindi and Bengali. Use _gdk_input_codepage only on
2391         Win9x. (#165723)
2392
2393         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2394         WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
2395         TranslateCharsetInfo() to get the input locale's corresponding
2396         codepage, if any.
2397
2398 2005-01-31  Matthias Clasen  <mclasen@redhat.com>
2399
2400         * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate 
2401         NULL-terminated va lists.  (#165683)
2402
2403 2005-01-29  Matthias Clasen  <mclasen@redhat.com>
2404
2405         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw): 
2406         Typo fix.  (#165581, Masao Mutoh)
2407
2408 Thu Jan 27 14:25:45 2005  Manish Singh  <yosh@gimp.org>
2409
2410         * README.cvs-commits: update ancient IRC info.
2411
2412 2005-01-27  Federico Mena Quintero  <federico@ximian.com>
2413
2414         Merged from gtk-2-6:
2415
2416         * gtk/gtkfilechooserdefault.c
2417         (gtk_file_chooser_default_select_path): Oops, don't assert that we
2418         can't reach the end of the function; this happens if we are still
2419         loading but don't need a path change.  Fixes #165213.
2420
2421 2005-01-27  Matthias Clasen  <mclasen@redhat.com>
2422
2423         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
2424         Make wrapping work in RTL mode.  
2425
2426         * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
2427         obey HIG spacing a bit more, add a hand cursor when over the
2428         link button.  (#163979, Jorn Baayen)
2429
2430 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
2431
2432         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
2433         Don't allow -1 as minimum-key-length.
2434         (gtk_entry_completion_set_model): Add missing notification.
2435         (gtk_entry_completion_set_minimum_key_length): Add missing
2436         notification, allow setting minimum-key-length to 0.  (#165194,
2437         Vincent Ladeuil)
2438
2439 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
2440
2441         * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
2442         the license dialog is initially displayed without a horizontal
2443         scrollbar.  
2444         (gtk_about_dialog_class_init): Document the fact that the 
2445         license text is not wrapped.  (#165012, Christian Rose)
2446
2447 2005-01-25  Matthias Clasen  <mclasen@redhat.com>
2448
2449         * gtk/gtkbutton.c (gtk_button_set_image): Fix docs.  (#165180,
2450         Jeff Franks)
2451
2452         * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix 
2453         docs.  (#165163, Jeff Franks)
2454         
2455         * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
2456         for a string GValue.  (#165203, Damon Chaplin)
2457
2458 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
2459
2460         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): 
2461         Initialize user_time from DESKTOP_STARTUP_ID.  (#165131,
2462         Elijah Newren)
2463
2464 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
2465
2466         * gtk/gtkfilechooserdefault.c: Removed leftover comments.
2467
2468 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
2469
2470         Merged from gtk-2-6:
2471
2472         Fix #147785 and clean up the loading code:
2473
2474         * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
2475         be EMPTY, PRELOAD, LOADING, FINISHED.
2476         (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
2477         (struct _GtkFileChooserDefault): Added a pending_select_paths
2478         field.
2479         (load_remove_timer): Add the new states.
2480         (load_setup_timer): Likewise.
2481         (load_timeout_cb): Likewise.  Switch to the LOAD_LOADING state.
2482         (browse_files_model_finished_loading_cb): Switch to the
2483         LOAD_FINISHED state.
2484         (enum PendingOp): Removed.
2485         (struct _GtkFileChooserDefault): Removed the pending_op and
2486         pending_select_path fields.
2487         (pending_select_paths_free): New utility function.
2488         (pending_select_paths_add): New utility function.
2489         (gtk_file_chooser_default_finalize): Call
2490         pending_select_paths_free().
2491         (pending_op_queue): Removed.
2492         (pending_op_process): Removed.
2493         (pending_select_paths_process): New function.
2494         (browse_files_model_finished_loading_cb): Call
2495         pending_select_paths_process().
2496         (center_selected_row_foreach_cb): Handle multiple selection by
2497         only centering the first row.
2498         (get_is_file_filtered): Constify.
2499         (gtk_file_chooser_default_select_path): Queue into a list of paths
2500         to select if we are not finished loading.
2501         (show_and_select_paths): New utility function.
2502         (up_folder_handler): Use pending_select_paths_add().
2503         (gtk_file_chooser_default_should_respond): Do not call
2504         pending_op_queue(); free the pending_selected_paths instead.
2505         (gtk_file_chooser_default_initial_focus): Don't queue a pending
2506         operation, and don't select the first row unconditionally --- this
2507         will happen when the folder is done loading.
2508         (shortcuts_row_activated_cb): Free the pending_select_paths.
2509         (pending_select_paths_store_selection): New utility function.
2510         (gtk_file_chooser_default_map): Call
2511         pending_select_paths_store_selection() to save the selection
2512         before reloading the folder.
2513         (select_func): Umm?  Call gtk_tree_selection_select_iter().  Don't
2514         move the cursor here; it will be done when processing the pending paths.
2515
2516         * tests/testfilechooser.c (main): Add a button to the command
2517         window to unmap and remap the file chooser.
2518
2519 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
2520
2521         * docs/tutorial/gtk-tut.sgml:
2522         * docs/tutorial/gtk_tut.sgml:
2523         * docs/reference/gtk/tmpl/gtkliststore.sgml:
2524         * gtk/gtkactiongroup.c:
2525         * gtk/gtksizegroup.c:
2526         * gtk/gtksizegroup.h:
2527         * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
2528         appropriate.  (#165108, Dan Winship)
2529
2530 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
2531
2532         * gtk/gtkwidget.c (gtk_widget_class_init): Document 
2533         GtkWidget::style-set.  (#164222, Alex Graveley)
2534         
2535 2005-01-22  Matthias Clasen  <mclasen@redhat.com>
2536
2537         * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full): 
2538         Remove the accidentally added prototype for this unimplemented 
2539         function.  (#164893, Jeff Franks)
2540
2541         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
2542         drags.  (#164884)
2543
2544 2005-01-23  Tor Lillqvist  <tml@novell.com>
2545
2546         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
2547         dead accent key. (#164859, reported and fix verified by Daniel
2548         Atallah.)
2549
2550         * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
2551         GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
2552         and upsilon.
2553
2554         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name): 
2555         Don't call GetVolumeInformation() for network drives. They might
2556         be disconnected, and calling GetVolumeInformation() will then
2557         cause long delays. (#164448, reported by Dave Neary.) It seems to
2558         be very hard to reliably find out whether a network drive is
2559         connected or not, so it's easier to just not try getting the
2560         volume name for them. See the bug report for discussion.
2561
2562         Make volume name display formats translatable.
2563
2564         Fix for #163702, from Ivan Wong: 
2565         
2566         * gdk/win32/gdkprivate-win32.h 
2567         * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
2568         
2569         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
2570         WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
2571         GDK_SELECTION_CLEAR event.
2572
2573         * gdk/win32/gdkselection-win32.c
2574         (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
2575         when emptying the clipboard ourselves.
2576
2577         (gdk_selection_send_notify_for_display): Remove the artifical
2578         GDK_SELECTION_CLEAR event generation.
2579
2580 2005-01-21  Matthias Clasen  <mclasen@redhat.com>
2581
2582         * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
2583         provided by Bill Haneman.
2584
2585 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
2586
2587         * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs.  (#164725,
2588         George Kraft IV)
2589
2590         * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
2591         here, even if the only focusable widgets are labels.
2592
2593 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
2594
2595         Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
2596         
2597         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init) 
2598         Add a follow-state property which when TRUE causes the pixbuf
2599         to be tinted according to state.
2600
2601         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
2602         Use follow-state and colorize the pixbuf when appropriate.      
2603         
2604 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
2605
2606         Support wrapping in GtkCellRendererText  (#163608):
2607         
2608         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
2609         Add wrap-mode and wrap-width properties which cause a 
2610         text cell to break to a specified width when set.
2611
2612         * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
2613         and wrap-width when they are set.
2614
2615 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
2616
2617         * gtk/gtkmodules.c (load_module): Don't reverse the order
2618         of modules when putting them in gtk_modules.  (#162676, Dennis
2619         Cranston, patch by Remus Draica)
2620
2621         * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash 
2622         if the tree is empty.  (#164669, Priit Laes)
2623
2624 Wed Jan 19 18:57:02 2005  Manish Singh  <yosh@gimp.org>
2625
2626         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
2627         GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
2628         function a bit too.
2629
2630 Wed Jan 19 17:17:31 2005  Manish Singh  <yosh@gimp.org>
2631
2632         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
2633         strict aliasing warning in _NET_VIRTUAL_ROOTS code.
2634
2635 2005-01-19  Tor Lillqvist  <tml@novell.com>
2636
2637         * gdk/win32/gdkkeys-win32.c (update_keymap,
2638         gdk_keymap_translate_keyboard_state): Handle keyboards with
2639         ShiftLock (and not CapsLock) correctly. (#161814)
2640
2641 2005-01-19  Matthias Clasen  <mclasen@redhat.com>
2642
2643         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
2644         In save mode, don't return paths containing nonexisting 
2645         directories.  (#162443, Jean Marie Favreau)
2646
2647         * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit 
2648         macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
2649
2650         * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
2651         atom.
2652
2653         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): 
2654         Support _NET_VIRTUAL_ROOTS.  (#163910, Carsten Haitzler)
2655         
2656         * gdk/gdk.symbols: 
2657         * gdk/x11/gdkx.h: 
2658         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time): 
2659         Add a function to obtain the last user interaction 
2660         time.  (#163119, Elijah Newren)
2661
2662 Tue Jan 18 13:56:09 2005  Manish Singh  <yosh@gimp.org>
2663
2664         * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
2665         PENDING_OP_NONE.
2666
2667 Tue Jan 18 13:46:46 2005  Manish Singh  <yosh@gimp.org>
2668
2669         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
2670         disambiguate nested if/else.
2671
2672 2005-01-18  Federico Mena Quintero  <federico@ximian.com>
2673
2674         Merged from gtk-2-6:
2675
2676         * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
2677         operation to select the first file if we are in SAVE or
2678         CREATE_FOLDER modes.  Executing that operation would overwrite the
2679         contents of the save-name entry.
2680
2681 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
2682
2683         * gdk/gdkdisplay.h: 
2684         * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer): 
2685         * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
2686         pointer warping to GDK.  (#160437)
2687
2688         * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
2689
2690 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
2691
2692         * gtk/gtkstyle.c (gtk_default_draw_check) 
2693         (gtk_default_draw_option, gtk_default_draw_handle): Add some
2694         more NULL checks, patch by Michael Natterer.
2695
2696 Tue Jan 18 10:55:47 2005  Søren Sandmann  <sandmann@redhat.com>
2697
2698         * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
2699         and NULL widget.
2700
2701         * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
2702         NULL widget.  (#164477, Michael Natterer)
2703
2704 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
2705
2706         Avoid X errors when running against servers which
2707         implement XRender < 0.4.  (#164427, Albert Chin)
2708         
2709         * gdk/x11/gdkprivate-x11.h:
2710         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
2711         New function to check for trapezoid support in XRender.
2712         (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids): 
2713         Use it here.
2714         
2715         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a 
2716         separate have_render_with_trapezoids field.
2717
2718         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
2719
2720 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
2721
2722         * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
2723
2724 Mon Jan 17 16:44:36 2005  Jonathan Blandford  <jrb@redhat.com>
2725
2726         * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
2727         dist.
2728
2729 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
2730
2731         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
2732         and restore the selected row in the bookmark list and the
2733         save folder combo.  (#164290)
2734
2735 2005-01-16  Matthias Clasen  <mclasen@redhat.com>
2736
2737         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
2738         Fix argument order in docs.  
2739
2740 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
2741
2742         * gtk/gtktextview.c (gtk_text_view_check_keymap_direction): 
2743         * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL 
2744         if the keymap is neutral.  (#164125, Phil Blundell)
2745
2746 2005-01-14  Matthias Clasen  <mclasen@redhat.com>
2747
2748         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
2749         reset the property to its default value -1. 
2750         (gtk_tree_view_get_search_column): Return the default value in
2751         the g_return_val_if_fail() check.  (#163864, Richard Hult)
2752
2753         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value): 
2754         Add a translator hint.  (#163889)
2755
2756         * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
2757         is an enum value, not a define. Pointed out by Tommi Komulainen.
2758         * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
2759
2760 2005-01-13  Matthias Clasen  <mclasen@redhat.com>
2761
2762         * configure.in: Check for nl_langinfo()
2763         * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
2764         available to determine first day of week   (#163842, Vincent Untz)
2765
2766         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about 
2767         the lifecycle of widgets.  (#159503, Christian Persch)
2768
2769         * demos/gtk-demo/main.c (create_text): Use monospace for the 
2770         source code view.  (#163526, Theerud Lawtrakul)
2771
2772         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
2773         for the Credits button to avoid duplicate.  (#163465, Tim-Philipp 
2774         Müller)
2775         
2776         * configure.in: Add an OS_LINUX conditional.
2777
2778         * gdk/Makefile.am (TESTS):
2779         * gdk-pixbuf/Makefile.am (TESTS):
2780         * gtk/Makefile.am (TESTS): Only run abicheck on Linux.  (#163917,
2781         Roger Leigh)
2782
2783 2005-01-13  Matthias Clasen <mclasen@redhat.com>
2784
2785         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
2786         (gtk_tree_view_set_headers_clickable): Make the headers-visible
2787         property readwrite instead of just writable, and remove the
2788         g_return_if_fail check that there is a model when setting this
2789         property. Also improve the blurb.  (#163851, Richard Hult)
2790
2791 2005-01-12  Owen Taylor <otaylor@redhat.com>
2792
2793         * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
2794         initialization of gdktarget, that was causing it to be
2795         evaluated before host was set. Simplify --with-gdktarget help
2796         message.
2797
2798         * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1 
2799         which doesn't work with slightly older versions of GNU grep 
2800         in install-libtool-import-lib rule.
2801         
2802 2005-01-12  Tor Lillqvist  <tlillqvist@novell.com>
2803
2804         Fix for #162790, by Iwan Wong:
2805         
2806         * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
2807         correctly. Simplify the interface to render_line_horizontal() and
2808         render_line_vertical(). Need to draw lines "manually" also on
2809         NT-based Windowses if we have a dash offset or are drawing
2810         double-dashed lines.
2811
2812         * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
2813         double-dash flag, and a brush for the background colour (used by
2814         the odd dashes in the double-dash line style) in the GdkGCWin32
2815         struct.
2816
2817         * gdk/win32/gdkgc-win32.c: Set up above new fields.
2818
2819 2005-01-10  Federico Mena Quintero  <federico@ximian.com>
2820
2821         Fix #162617.
2822
2823         * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
2824         GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
2825         (gtk_file_system_unix_get_folder): Make error reporting more
2826         accurate.  Don't bail out if we can't read the directory.
2827         (fill_in_stats): Don't return an error; just assume we don't have
2828         stat info for this folder's files.
2829         (fill_in_names): Don't create the hash table for the names if we
2830         can't open the directory.
2831         (gtk_file_folder_unix_list_children): Don't emit the
2832         "finished-loading" signal --- we don't do asynchronous loads, so
2833         we are always finished loading.
2834         (gtk_file_folder_unix_get_info): Use helper functions; handle the
2835         case where we can't stat '/'.
2836         (get_icon_type_from_path): Don't call fill_in_stats() here; only
2837         use the info we have.
2838         (fill_in_mime_type): Don't return an error.  Don't do anything if
2839         we don't have the stat info.
2840
2841 2005-01-10  Owen Taylor  <otaylor@redhat.com>
2842
2843         * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
2844         to EXTRA_DIST.
2845
2846 2005-01-10  Matthias Clasen  <mclasen@redhat.com>
2847
2848         * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
2849         signals.  (#163319, Murray Cumming)
2850
2851 2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>
2852
2853         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
2854         cursor also when changing the cursor of a window that is the first
2855         ancestor of the window containing the pointer that has a cursor
2856         defined. (#163035, Ivan Wong)
2857
2858 2005-01-09  Anders Carlsson <andersca@gnome.org>
2859
2860         * gtk/gtkcellrenderertext.c: (get_size):
2861         * gtk/gtklabel.c: (gtk_label_size_request):
2862         * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
2863         Don't pass NULL to pango_context_get_metrics. Use 
2864         pango_context_get_language instead, which is way faster.
2865         
2866 2005-01-08  Matthias Clasen  <mclasen@redhat.com>
2867
2868         * configure.in: Bump version
2869
2870         * === Released 2.6.1 ===
2871         
2872         * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
2873
2874 2005-01-07  Tor Lillqvist  <tml@iki.fi>
2875
2876         * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
2877         Fix braino. (#163232, Arnaud Charlet)
2878
2879 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
2880
2881         * gtk/gtkiconview.c: Make markup_column work, and fix some
2882         layout issues when either icon or text is missing.  (#163065)
2883
2884 2005-01-06  Federico Mena Quintero  <federico@ximian.com>
2885
2886         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
2887         "Open _Location" item.  Fixes #148839.
2888
2889 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
2890
2891         * README.in: Fix a typo.  (#163128, kentaro fukuchi)
2892
2893 2005-01-06  James M. Cape  <jcape@ignore-your.tv>
2894
2895         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
2896         (gtk_file_chooser_button_new_with_backend): Use default title if
2897         NULL is passed.
2898
2899         * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
2900         match API.
2901
2902 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
2903
2904         Fix #161409:
2905
2906         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
2907         a pending operation to select the first row.
2908
2909 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
2910
2911         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
2912         button_data_free() explicitly; the button is weak-reffed and the
2913         callback will free the button data.  Fixes #163010.
2914         (_gtk_path_bar_set_path): Don't ref/sink the button.  And for the
2915         failure case, call gtk_widget_destroy() on it.
2916
2917         * gtk/gtkfilechooserdefault.c (check_is_folder): Use
2918         gtk_file_system_get_folder() again (see the ChangeLog entry from
2919         2004-08-25).  We can't first get the parent folder and then
2920         request the info for the path in question, as the parent folder
2921         may not be readable.  See bug #162617.
2922         (gtk_file_chooser_default_set_current_folder): Assert that the
2923         passed-in path is not null.
2924         (shortcuts_find_current_folder): Likewise.
2925         (shortcuts_add_current_folder): Likewise.
2926         (set_list_model): Likewise.
2927         (gtk_file_chooser_default_map): Only reload the current folder if
2928         it exists.
2929         (bookmarks_check_add_sensitivity): Check for the current folder
2930         being NULL.
2931         (browse_files_select_first_row): Don't set the cursor if there is
2932         no model loaded.
2933
2934 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
2935
2936         * gtk/gtkfilechooserdefault.c: Don't construct errors from 
2937         the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
2938         (get_file_info, check_is_folder): Translate errors from
2939         the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
2940         of the fix for #162911, noticed by Murray Cumming.
2941
2942 Wed Jan  5 11:42:49 2005  Søren Sandmann  <sandmann@redhat.com>
2943
2944         * gtk/gtkviewport.c (gtk_viewport_realize):
2945         * gtk/gtktextview.c ((text_window_realize): Set the background of
2946         the windows to None instead of adding EXPOSURE_MASK, as suggested
2947         by Owen in #162112.
2948
2949         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
2950         the user time when receiving a WM_DELETE message.  (#162980, 
2951         Elijah Newren)
2952         
2953 Tue Jan  4 16:52:14 2005  Jonathan Blandford  <jrb@redhat.com>
2954
2955         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
2956         only reorder on button 1, part of #141937
2957
2958 Tue Jan  4 11:36:43 2005  Søren Sandmann  <sandmann@redhat.com>
2959
2960         Bug 162112.
2961         
2962         * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
2963         to win->window's event_mask
2964
2965         * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
2966         to viewport->view_window.
2967
2968 2005-01-04  Matthias Clasen  <mclasen@redhat.com>
2969
2970         * demos/testpixbuf.c (main): Remove the size_prepared callback,
2971         to test incremental display.
2972         (new_testrgb_window): Return the drawing area, not the window,
2973         since we want to queue draws on the drawing area.
2974
2975 2005-01-03  Matthias Clasen  <mclasen@redhat.com>
2976
2977         * examples/*: Re-extract.
2978
2979         * docs/tutorial/gtk-tut.sgml: Small corrections.
2980         
2981         * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
2982         section.  (#161414, Robert Ancell)
2983
2984         * docs/tutorial/gtk-tut.sgml: Make it build.
2985
2986         * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
2987         regarding modality.  (#112903, Dave Bordoley)
2988
2989         * gtk/gtkfixed.c (gtk_fixed_set_has_window): 
2990         Add a little motivation.  (#145556, Tommi Komulainen)
2991
2992         * docs/tutorial/gtk-tut.sgml: Clarify section on 
2993         g_signal_connect_swapped.   (#120543, David Bourguignon)
2994
2995         Make gtk_icon_theme_load_icon() work independent of
2996         icon factory initialization.  (#162791, Tristan Van Berkom)
2997         
2998         * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
2999         _gtk_icon_factory_ensure_default_icons, and make it non-static.
3000
3001         * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
3002
3003 2005-01-02  Matthias Clasen  <mclasen@redhat.com>
3004
3005         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder): 
3006         Don't add a shortcut here.  (#162752, Tor Lillqvist)
3007
3008 2005-01-02  Tor Lillqvist  <tml@iki.fi>
3009
3010         * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
3011         CoTaskMemFree in get_special_folder() below.
3012
3013         * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
3014         Win32 using _gtk_file_system_win32_path_compare().
3015
3016         * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
3017
3018         * gtk/gtkfilechooserbutton.c (model_add_special)
3019         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
3020         _gtk_file_system_win32_get_desktop() to get correct Desktop folder
3021         on Win32. (#144003)
3022
3023         * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
3024         consider all drives "mounted", including floppies. Trying to
3025         inspect the contents of a nonexistent floppy will cause errors
3026         later that are handled normally, no need to avoid them
3027         completely. Keep the drive type in the GtkFileSystemVolume.
3028         Support UNC paths. (#161797, #137874) Fix error message
3029         capitalizations as in gtkfilesystemunix.c.
3030
3031         (gtk_file_system_win32_init): Start one timeout per
3032         GtkFileSystemWin32.
3033
3034         (gtk_file_system_win32_finalize): Remove the timeout.
3035
3036         (get_special_folder): Copied from GLib.
3037
3038         (_gtk_file_system_win32_get_desktop): New function, uses
3039         get_special_folder().
3040
3041         (gtk_file_system_win32_list_volumes): Don't start a timeout at
3042         each call to this function. Don't assume A: and B: are floppies.
3043
3044         (gtk_file_system_win32_get_volume_for_path): Don't assume all
3045         volumes are drive roots, i.e. support share roots of UNC paths
3046         (\\server\share).
3047
3048         (gtk_file_system_win32_get_folder): Don't assume errno is set
3049         after g_file_test() returns FALSE. It isn't on Win32 (and even on
3050         Unix I don't think one should assume anything about errno after
3051         g_file_test()).
3052
3053         (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
3054
3055         (gtk_file_system_win32_volume_get_display_name): Don't call
3056         GetVolumeInformation() on drives A: or B: if they are removable,
3057         as they might then be floppies, causing an unnecessary
3058         delay. (#157820)
3059
3060         (gtk_file_system_win32_volume_render_icon): Use network icon for
3061         unrecognized drive types.
3062
3063         (canonicalize_filename, gtk_file_system_win32_parse): Don't get
3064         confused by UNC paths.
3065
3066         (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
3067         for case-insensitive UTF-8 path comparison.
3068
3069         (extract_icon): Use SHGetFileInfo() which is faster than
3070         ExtractAssociatedIcon(). Icon extraction is still slow, though,
3071         needs work.
3072
3073         (win32_pseudo_mime_lookup): Don't use the same icon for all
3074         shortcuts or executables. Cache only other file type icons.
3075
3076         (gtk_file_system_win32_render_icon): Use network stock icon for
3077         remote drives and UNC server share roots. Compare home directory
3078         case-insensitively. Do lookup icons also for executable files,
3079         after all, it's these files that can have individual icons in the
3080         first place. Yes, it can be slow. Needs work.
3081
3082         (filename_is_drive_root): Require also the slash after the colon.
3083
3084         (filename_is_server_share): New function.
3085
3086         (_gtk_file_system_win32_path_compare): New function, does
3087         case-folded UTF-8 comparison.
3088
3089         * gtk/gtkfilesystemwin32.h: Declare
3090         _gtk_file_system_win32_path_compare().
3091
3092 2005-01-01  Matthias Clasen  <mclasen@redhat.com>
3093
3094         * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
3095         custom image by passing NULL.
3096         (gtk_button_init): Initialize image_is_stock to TRUE, fixing
3097         a problem with changing stock labels.  (#162273, Marcin 
3098         Krzyzanowski)
3099
3100 2005-01-01  Tor Lillqvist  <tml@iki.fi>
3101
3102         * gtk/gtkmodules.c (get_module_path)
3103         * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
3104         gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
3105         g_getenv() now returning UTF-8 on Win32, no need to call
3106         g_locale_to_utf8().
3107
3108 2004-12-31  Matthias Clasen  <mclasen@redhat.com>
3109
3110         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval) 
3111         (_gtk_key_hash_lookup): Don't sort a list of values as if
3112         it was a list of entries. This fixes crashes during mnemonic
3113         activation in the presence of multiple keymaps. (#162488, 
3114         Christian Persch)
3115
3116 2004-12-30  Matthias Clasen  <mclasen@redhat.com>
3117
3118         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
3119         state propagation when making an insensitive combo box sensitive
3120         again.  (#162524, Carlos Garnacho Parro)
3121
3122         * gtk/gtkfilechooserdefault.c: Use secondary text for error 
3123         dialogs.
3124
3125         * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
3126         (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
3127         for error messages. Also mark some error messages for translation,
3128         fix capitalization of error messages.
3129
3130         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): 
3131         Use g_value_get_boolean() for ellipsize_set.  (#162447, 
3132         Brian Tarricone)
3133
3134 2004-12-30  Tor Lillqvist  <tml@iki.fi>
3135
3136         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
3137         only on Unix.
3138
3139 2004-12-28  Matthias Clasen  <mclasen@redhat.com>
3140
3141         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
3142         submenu direction from the parent menu.
3143
3144         * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first): 
3145         Return a boolean indicating whether an item in the submenu
3146         was selected.
3147         (gtk_real_menu_shell_move_current): When going in child 
3148         direction, don't get stuck at completely insensitive 
3149         submenus.  (#162055, Billy Biggs)       
3150
3151 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
3152
3153         Make the clipboard image API more robust (#162357, 
3154         Torsten Schoenfeld):
3155         
3156         * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
3157         ref the pixbuf if it is NULL.
3158
3159         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): 
3160         NULL-terminate the varargs in the call to 
3161         gdk_pixbuf_save_to_buffer(). 
3162         (gtk_selection_data_get_pixbuf): Only use a pixbuf loader 
3163         if there is data to load.
3164
3165 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
3166
3167         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
3168         Set x_root and y_root in button and motion events from 
3169         extended input devices.  (#148715, Robert Ögren)
3170
3171         * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a 
3172         typo.  (#162339, Alessio Dessi)
3173
3174         * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
3175         properties as new since 2.4.  (#156101, Billy Biggs)
3176
3177         * configure.in: Add a warning about the linux-fb 
3178         target.  (#155488, Zeeshan Ali)
3179
3180         * gtk/gtkmain.c (gtk_init_with_args): Typo fix.  (#162278,
3181         Torsten Schoenfeld)
3182
3183 2004-12-26  Matthias Clasen  <mclasen@redhat.com>
3184
3185         * gtk/gtkfilechooser.c (gtk_file_chooser_set_action): 
3186         Typo fix.  (#162219, Masao Mutoh)
3187         (gtk_file_chooser_set_preview_widget_active): 
3188         Another typo.  (#162218, Masao Mutoh)
3189
3190 2004-12-23  Matthias Clasen  <mclasen@redhat.com>
3191
3192         * gtk/gtkliststore.c (gtk_list_store_iter_children): 
3193         Return TRUE if there are children.  (#162134, Iñigo Serna,
3194         patch by John Finlay)
3195
3196         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): 
3197         Transfer state from the button to the cell view to get
3198         prelighting right.  (#156327, Ricardo Veguilla)
3199
3200 Wed Dec 22 14:22:19 2004  Søren Sandmann  <sandmann@redhat.com>
3201
3202         * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
3203         timeout. Written by Christian Persch.
3204
3205 Wed Dec 22 14:14:02 2004  Søren Sandmann  <sandmann@redhat.com>
3206
3207         Bug #161561
3208         
3209         * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
3210         background for windows that get expose events. 
3211
3212         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
3213         hack to repaint !expose windows.
3214
3215 Wed Dec 22 11:35:41 2004  Søren Sandmann  <sandmann@redhat.com>
3216
3217         Bug #147497, make menu items activate immediately when you release
3218         the button.
3219         
3220         * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
3221         items activate immediately.
3222
3223         * gtk/gtkmenu.c (definitely_within_item): New function
3224         * gtk/gtkmenu.c (check_threshold): New function
3225
3226 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
3227
3228         * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
3229         null the mnemonic_menu when unsetting a mnemonic, reported
3230         by Owen Taylor.
3231
3232 2004-12-21  Matthias Clasen  <mclasen@redhat.com>
3233
3234         * gtk/gtkliststore.c (generate_order): Generate the order the
3235         way it is supposed to be, order[new_pos] == old_pos.
3236         (gtk_list_store_reorder): Invert the order before using it.
3237
3238 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
3239
3240         Fix sorting of list stores.  (#161886, Marcin Krzyzanowski)
3241
3242         * gtk/gtkliststore.c (generate_order): Generate the order the
3243         way it is supposed to be, order[new_pos] == old_pos.
3244         (gtk_list_store_reorder): Invert the order before using it.
3245
3246         * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
3247         list store fix.
3248
3249 Wed Dec 22 01:24:01 2004  Jonathan Blandford  <jrb@redhat.com>
3250
3251         * gtk/queryimmodules.c (main): print out the version and binary
3252         name in the header comment.  Problem reported by Seth Nickell.
3253
3254 2004-12-20  Matthias Clasen  <mclasen@redhat.com>
3255
3256         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
3257         root path to gtk_tree_model_rows_reordered().  (#161720,
3258         Marcin Krzyzanowski)
3259
3260         * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't 
3261         translate NULL messages.  (#161789, Morten Welinder)
3262
3263         * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
3264         the secondary label on show_all().  (#161707, Christian Persch)
3265
3266 2004-12-19  Tor Lillqvist  <tml@iki.fi>
3267
3268         * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
3269         Use wide character API when available. Use UTF-8 for filenames.
3270
3271         * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
3272         the string's trailing zero byte in the property's length, just for
3273         safety.
3274
3275 2004-12-18  Matthias Clasen  <mclasen@redhat.com>
3276
3277         * gtk/gtkfilechooserentry.c (check_completion_callback) 
3278         (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
3279
3280         * gtk/gtkfilechooserdefault.c (edited_idle_cb) 
3281         (shortcuts_drag_outside_idle_cb): Add missing 
3282         GDK_THREADS_ENTER/LEAVE.  (#161604)
3283         
3284         * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): 
3285         (list_select_func): Don't call gtk_file_info_get_is_folder()
3286         on NULL. 
3287
3288         * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name): 
3289         (gtk_about_dialog_init): Add missing initializations.  (#161646,
3290         Torsten Schoenfeld)
3291