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