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