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