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