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