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