]> Pileus Git - ~andy/gtk/blob - ChangeLog
Restored the / at the start of the comment block, to fix the build.
[~andy/gtk] / ChangeLog
1 2006-05-14  Murray Cumming  <murrayc@murray.com>
2
3         * gtk/gtkframe.c: Restored the / at the start of the comment 
4         block, to fix the build.
5
6 2006-05-13  Matthias Clasen  <mclasen@redhat.com>
7
8         * gtk/*.c:
9         * gdk-pixbuf/*.c:
10         * gdk/*.c: Remove erroneous ; after G_DEFINE_TYPE 
11         macros.  (#341692, Yevgen Muntyan)
12
13         * gtk/gtktextbtree.c: 
14         * gtk/gtktextview.c: Move some asserts to the right 
15         place.  (#341661, #341665, Pascal Terjan)
16
17 2006-05-12  Matthias Clasen  <mclasen@redhat.com>
18
19         * gtk/gtknotebook.c: Fix some corner cases in the size
20         allocation logic for tabs.  (#341577, Carlos Garnacho Parro)
21
22         * gtk/gtkprintunixdialog.c: Some fixes to capitalization of
23         labels.  (#341558, Dennis Cranston)
24
25         * gtk/gtknotebook.c: Handle tab_label being NULL better.
26         (#341455, William Jon McCann, patch by Carlos Garnacho Parro)
27
28         * gtk/gtkruler.c: Reinstate the ruler metrics strings, since
29         they are used by glade, pointed out by Damon Chaplin.
30
31 2006-05-12  Alexander Larsson  <alexl@redhat.com>
32
33         * gtk/gtkwindow.c:
34         Better handling of the window group on unsetting transient-for, since
35         the transient parent might have changed group.
36         
37         * gtk/gtkmenu.c:
38         Combine the handling of transient for the attach-widget and the
39         window group handling by setting transient-to on popup/popdown only.
40
41         See bug #340401
42         
43         * gtk/gtkprintunixdialog.c:
44         Remove part of old fix no longer needed.
45
46 2006-05-12  Alexander Larsson  <alexl@redhat.com>
47
48         * gtk/gtkprintoperation.c (gtk_print_operation_set_n_pages):
49         Update g_object_notify to new property name.
50
51 2006-05-12  Alexander Larsson  <alexl@redhat.com>
52
53         * gtk/gtkrecentmanager.c:
54         Fix build errors.
55         
56         * gtk/gtk.symbols:
57         * demos/gtk-demo/printing.c:
58         * gtk/gtkprintoperation-win32.c:
59         * gtk/gtkprintoperation.[ch]:
60         * gtk/gtkprintsettings.[ch]: 
61         * modules/printbackends/cups/gtkprintbackendcups.c:
62         * modules/printbackends/lpr/gtkprintbackendlpr.c:
63         * modules/printbackends/pdf/gtkprintbackendpdf.c:
64         * tests/print-editor.c:
65         * tests/testnouiprint.c:
66         * tests/testprint.c:
67         * tests/testprintfileoperation.c:
68         Rename functions from nr_of_pages to n_pages, and num_copies to
69         n_copies to match other gtk+ names.
70         
71         * gtk/gtkmenu.c: (gtk_menu_popdown):
72         Only re-set window group on popdown if we set it on popup (i.e.
73         if there is a parent menu shell).
74         Fixed part of bug #340401
75
76         * gtk/gtkwindow.c:
77         Add (contruct) property "transient-for" to GtkWindow. This
78         is needed for the fix to bug #340401.
79         
80         * gtk/gtkprintunixdialog.c:
81         Use the transient-for property on construction and populate the dialog
82         with widgets after that. This fixes bug #340401.
83         More n_pages renames.
84
85 2006-05-11  Emmanuele Bassi  <ebassi@cvs.gnome.org>
86
87         * gtk/gtkrecentmanager.h: Remove the error parameter to the
88         gtk_recent_manager_add() and gtk_recent_manager_add_full()
89         functions; remove the unneeded error codes from the error
90         enumeration.  (#336774).
91
92         * gtk/gtkrecentmanager.c: Make gtk_recent_manager_add() and
93         gtk_recent_manager_add_full() complain loudly about wrong or
94         missing meta-data, instead of using a GError.  (#336774)
95
96 2006-05-11  Matthias Clasen  <mclasen@redhat.com>
97
98         * demos/gtk-demo/Makefile.am (demos): Add it here.
99
100         * demos/gtk-demo/printing.c (do_printing): Add a GtkPrintOperation demo.
101
102 2006-05-11  Carlos Garcia Campos  <carlosgc@gnome.org>
103
104         * gtk/gtkfilechooserembed.c: use I_() instead of _() when creating
105         response-requested signal. Fixes bug #341416
106
107 2006-05-11  Matthias Clasen  <mclasen@redhat.com>
108
109         * gdk/gdkkeysyms.h: Regenerated from Xorg 7.1 keysyms.h, using
110         gdkkeysyms-update.pl.
111
112         * gdk/gdkkeysyms-update.pl: Script to sync gdkkeysyms.h
113         with Xorg.  (#321896, Simos Xenitellis)
114
115         * gdk/Makefile.am (EXTRA_DIST): Add gdkkeysyms-update.pl
116
117         * gdk/gdkkeysyms.h: Consistently use lowercase in hex numbers.
118
119 2006-05-10  Carlos Garnacho  <carlosg@gnome.org>
120
121         * gtk/gtknotebook.c: check that tab_label is not NULL before checking
122         that it's notebook's child. Closes #341247.
123
124 Wed May 10 15:57:53 2006  Tim Janik  <timj@imendio.com>
125
126         * applied unified patch for configurable scroll arrow sizes from
127         bug #333632 and bug #325282.
128
129         * gtk/gtkwidget.c (gtk_widget_class_init): added ::scroll-arrow-hlength
130         and ::scroll-arrow-vlength style properties. fixed upper limit for
131         ::separator-width and ::separator-height to be MAXINT.
132
133         * gtk/gtkmenu.c: use GtkWidget::scroll-arrow-vlength to determine the
134         scroll arrow size, instead of using a hard coded constant.
135
136         * gtk/gtknotebook.c: use GtkWidget::scroll-arrow-vlength and
137         GtkWidget::scroll-arrow-hlength to determine scroll arrow sizes.
138         added GtkNotebook::arrow-spacing style property to configure the
139         spacing between scroll arrows.
140
141 2006-05-10  Matthias Clasen  <mclasen@redhat.com>
142
143         * gtk/gtkpagesetupunixdialog.c: Don't include langinfo.h
144         unconditionally.  (#341217)
145
146 2006-05-10  John (J5) Palmieri  <johnp@redhat.com>
147
148         * modules/printbackends/cups/gtkprintbackendcups.c:
149         make the _CUPS_MAP_ATTR_STR macro not dup the string so we don't
150         leak 
151
152 2006-05-10  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>
153
154         * gtk/paper_names.c: Correct #11 Envelope typo.
155
156 2006-05-09  Tor Lillqvist  <tml@novell.com>
157
158         * gdk/win32/gdkevents-win32.c (doesnt_want_scroll): Look at both
159         GDK_SCROLL_MASK and GDK_BUTTON_PRESS_MASK. (#139628)
160
161 2006-05-09  Matthias Clasen  <mclasen@redhat.com>
162
163         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add a :cursor-position
164         property.  (#334412, Yevgen Muntyan)
165
166         * gtk/gtk.symbols:
167         * gtk/gtkmessagedialog.[hc]: Add an image property.  (#337306, Alex Graveley)
168
169 2006-05-09  Carlos Garnacho  <carlosg@gnome.org>
170
171         * gtk/gtknotebook.c: create an independent GdkWindow to behave nicely
172         during reordering with tab_labels with their own window, also use
173         gtk_drag_set_icon_widget() for the DnD icon to avoid drawing garbage
174         from offscreen regions. Closes bug #335707.
175         (gtk_notebook_tab_space), (gtk_notebook_calculate_shown_tabs),
176         (gtk_notebook_calculate_tabs_allocation): new functions, 
177         gtk_notebook_pages_allocate() functionality has been splitted into
178         these.
179
180 2006-05-08  Matthias Clasen  <mclasen@redhat.com>
181
182         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_add_shortcut_folder): 
183         * gtk/gtktextbufferserialize.c (parse_attr_element): Fix some typos in
184         messages.  (#341091, Tino Meinen)
185
186         * gtk/gtkstatusicon.c: Some cleanups.
187         
188         * gtk/gtkstatusicon.c (gtk_status_icon_get_property): Silently return
189         NULL if the storage type of the image does not match.  (#340516, Christian
190         Persch)
191
192         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Elide (_x) in the middle
193         of the string, too.  (#323956, Abel Cheung)
194
195         * gtk/gtkuimanager.c (update_node): Fix tooltips. (#340527, Jon-Kare Hellan)
196
197         * configure.in: Require Pango 1.13.0
198
199         * gtk/gtknotebook.c: 
200         * gtk/gtkwindow.c: 
201         * gtk/gtkrange.c: Fix doc typos.
202
203 2006-05-08  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>
204
205         * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_class_init):
206         Corrected a duplicate word.
207
208         * gtk/gtkrecentmanager.c (gtk_recent_manager_add_full): Corrected
209         a typo.
210
211 2006-05-07  Matthias Clasen  <mclasen@redhat.com>
212
213         * gtk/gtkrange.c (gtk_range_key_press):  Chain up, to
214         make bindings work.  Noticed by Al Puzzuoli.
215         
216 2006-05-07  Matthias Clasen  <mclasen@redhat.com>
217
218         * gtk/gtkseparator.c: 
219         * gtk/gtkscrollbar.c: 
220         * gtk/gtkpaned.c: 
221         * gtk/gtkoldeditable.c: 
222         * gtk/gtkmisc.c: 
223         * gtk/gtkitem.c: 
224         * gtk/gtkimcontext.c: 
225         * gtk/gtkrange.c:
226         * gtk/gtkscale.c: Make types abstract again.
227
228 2006-05-06  Matthias Clasen   <mclasen@redhat.com>
229         
230         * gdk/gdkwindow.c (gdk_window_get_toplevels): Fix a wrong
231         reference in the docs.  (#340870, Ed Catmur)
232
233 2006-05-05  Christian Persch  <chpe@cvs.gnome.org>
234
235         * modules/printbackends/cups/gtkprintbackendcups.c:
236         * modules/printbackends/lpr/gtkprintbackendlpr.c:
237         * modules/printbackends/pdf/gtkprintbackendpdf.c: Always register
238           the type with the type module, even if it had been registered
239           before. Fixes bug #340676.
240
241 2006-05-05  Matthias Clasen  <mclasen@redhat.com>
242
243         * gtk/gtkprintunixdialog.c: Use theme colors for 
244         the page layout indicator, and do RTL flipping for
245         the collate indicator.
246
247 2006-05-05  Matthias Clasen  <mclasen@redhat.com>
248
249         * configure.in: Require GLib 1.11.0
250
251         * configure.in: Bump version
252
253         * === Released 2.9.0 ===
254
255         * configure.in: Require cairo 1.1.6
256
257         * gtk/Makefile.am: Tweaks to make distcheck work.
258
259 2006-05-05  Alexander Larsson  <alexl@redhat.com>
260
261         * gtk/gtkprintoperation-unix.c:
262         Implement per-page paper sizes.
263         
264         * gtk/gtkprintoperation.c:
265         Implement per-page paper sizes for pdf output.
266         Make gtk_print_operation_set_pdf_target() work again
267         
268         * tests/Makefile.am:
269         * tests/testprint.c:
270         * tests/testprintfileoperation.[ch]:
271         Add more test code for printing support.
272         This tests per-page paper sizes & orientation and
273         deriving from GtkPrintOperation.
274
275 2006-05-04  Michael Emmel  <mike.emmel@gmail.com>
276
277         * gdk/directfb/gdkkeys-directfb.c: DIKI_ALTGR to compile with
278         directfb 0.9.25.1
279
280 2006-05-04  Michael Natterer  <mitch@imendio.com>
281
282         * gtk/gtk.symbols: remove gtk_printer_set_backend so it compiles
283         again.
284
285 2006-05-04  Alexander Larsson  <alexl@redhat.com>
286
287         * gtk/gtk.symbols:
288         Added new symbols
289         
290         * gtk/gtkpagesetupunixdialog.c:
291         * gtk/gtkprintunixdialog.c:
292         Destroy backends when finalizing dialogs.
293         Fix printer leak in selected_printer_changed.
294         
295         * gtk/gtkprintbackend.[ch]:
296         Convert from interface to baseclass.
297         Move printer hashtable here so that the baseclass can handle
298         the slightly complicated ownership model.
299         Add gtk_print_backend_destroy which runs the dispose method,
300         causing the ref-cycles between the backend and its printers
301         to be broken.
302         Add gtk_print_backend_unref_at_idle().
303         
304         * gtk/gtkprinter.[ch]:
305         GtkPrinter objects now ref their backend so that its always
306         availible, since its needed for the printer object to work.
307         This causes a reference-cycle that is broken using
308         gtk_print_backend_destroy.
309         Add gtk_printer_compare.
310         
311         * gtk/gtkprintoperation-private.h:
312         * gtk/gtkprintoperation-unix.c:
313         * gtk/gtkprintoperation.c:
314         Implement !show_dialog for unix.
315         Make sure the print data is fully spooled before returning
316         from a sync run_dialog.
317         
318         
319         * modules/printbackends/cups/gtkcupsutils.[ch]:
320         Add gtk_cups_request_ipp_add_strings
321         
322         * modules/printbackends/cups/gtkprintbackendcups.c:
323         * modules/printbackends/cups/gtkprintercups.c:
324         * modules/printbackends/lpr/gtkprintbackendlpr.c:
325         * modules/printbackends/pdf/gtkprintbackendpdf.c:
326         Convert backends to derive instead of implementing interface.
327         Move common code into baseclass.
328         CUPS:
329           Remove the printer polling in dispose, not finalize.
330           In the cups watch, remove the backend at idle instead of
331           immediately, since the unref can cause the module to be unloaded.
332           Limit the number of printer attributes requested
333           Get printer uri in initial printer listing so that we can use
334           the printer object immediately.
335         
336         * tests/Makefile.am:
337         * tests/testnouiprint.c:
338         Add testcase for !show_dialog.
339
340 2006-05-04  Matthias Clasen  <mclasen@redhat.com>
341
342         * gtk/gtk.symbols:
343         * gtk/gtkfilesystem.c:
344         * gtk/gtkfilesystemunix.c:
345         * gtk/gtkprintbackend.h:
346         * gtk/gtkrecentchooserdefault.c:
347         * gtk/gtkrecentchooserdefault.h:
348         * gtk/paper_names_offsets.c: Make symbol list mstch reality.
349         
350         * gtk/Makefile.am: Fix a typo.
351         
352         * gdk/x11/Makefile.am (EXTRA_DIST): Add gdksettings.c
353
354 2006-05-03  Matthias Clasen  <mclasen@redhat.com>
355
356         * NEWS: Updates
357
358 2006-05-04  Murray Cumming <murrayc@murrayc.com>
359
360         * gtk/gtktreemodel.c: (gtk_tree_model_base_init): Changed the 
361         language of the signals documentation slightly. Bug #340205.
362
363 2006-05-03  Federico Mena Quintero  <federico@novell.com>
364
365         Merged the federico-filename-entry branch, to fix bug #136541.
366         Combined ChangeLogs:
367
368         2006-04-17  Federico Mena Quintero  <federico@novell.com>
369
370         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
371         Oops, we *do* need to check that we are in OPEN mode before
372         selecting the first row in the file list.  See
373         https://bugzilla.novell.com/show_bug.cgi?id=166906
374         (gtk_file_chooser_default_get_paths): If we are in the case for
375         the file list, and the list has no selected rows, jump to the case
376         for the filename entry.  This is so that
377
378                1. The user types a filename in the SAVE filename entry
379                   ("foo.txt").
380
381                2. He then double-clicks on a folder ("bar") in the file
382                   list.
383
384         will yield the expected "bar/foo.txt" selection.
385
386         2006-03-29  Federico Mena Quintero  <federico@novell.com>
387
388         * gtk/gtkpathbar.c (gtk_path_bar_init): Reduce the inter-button
389         spacing to 0.
390
391         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Make the
392         location label bold.
393
394         2006-03-29  Federico Mena Quintero  <federico@novell.com>
395
396         * gtk/gtkfilechooserdefault.c (location_mode_set): Just change the
397         location_mode field if we are in SAVE/CREATE_FOLDER modes.
398         (gtk_file_chooser_default_get_paths): Get the path based on the
399         currently focused widget, or the last-focused widget.  This is
400         what we should have been doing in the beginning, but it worked out
401         fine because we didn't have the possibility of a filename entry in
402         OPEN mode.
403         (gtk_file_chooser_default_should_respond): Handle the case where
404         the last focused widget is the location_entry.
405
406         2006-03-28  Federico Mena Quintero  <federico@novell.com>
407
408         * gtk/gtkfilechoosersettings.[ch]: New files with a simple
409         framework for saving/loading settings from the file chooser in
410         $XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser.
411
412         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_unmap):
413         Save the current settings.
414         (settings_save): New helper function.  We save the location_mode
415         and show_hidden flags.
416         (gtk_file_chooser_default_map): Load the settings.
417         (settings_load): New helper function.
418
419         * gtk/gtkfilechooserentry.c
420         (_gtk_file_chooser_entry_set_file_part): Oops, don't modify
421         in_change.  Our handlers are what set the file_part, so they
422         *must* be run when we modify the text.
423
424         2006-03-27  Federico Mena Quintero  <federico@novell.com>
425
426         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
427         Removed the save_file_name_entry.  We'll make this be the same as
428         the location_entry widget.
429         (struct _GtkFileChooserDefault): Leave only location_button,
430         location_entry_box, location_label, location_entry.  We'll use a
431         single toggle button for the location entry, which will appear
432         below the path bar.
433         (struct _GtkFileChooserDefault): Added a
434         processing_pending_selections flag.
435
436         * gtk/gtkfilechooserdefault.c (save_widgets_create): Destroy the
437         old location_entry if necessary, and hide the location toggle
438         widgets.
439         (update_chooser_entry): In multiple selection mode, just clear the
440         location_entry.
441         (check_save_entry): Allow running in OPEN or SELECT_FOLDER modes
442         if we are in LOCATION_MODE_FILENAME_ENTRY.
443         (gtk_file_chooser_default_should_respond): Switch to a folder if
444         the location_entry contains a folder name in OPEN and SAVE mode,
445         not just SAVE mode.  If the entry doesn't contain a folder name,
446         but is otherwise well-formed, and we are in OPEN mode, return that
447         we should respond with that filename.
448         (gtk_file_chooser_default_initial_focus): Focus the location_entry
449         if appropriate.
450         (browse_widgets_create): Create the location_entry_box and the
451         location_label here.
452         (update_appearance): Call location_mode_set() when switching back
453         to OPEN/SELECT_FOLDER mode.  Hide the location_button when
454         switching to SAVE/CREATE_FOLDER mode.
455         (pending_select_paths_process): Turn the
456         processing_pending_selections flag on and off around changes to
457         the current selection.  Don't special-case OPEN mode anymore,
458         since the new flag will take care of things in
459         update_chooser_entry().
460         (update_chooser_entry): Don't do anything if
461         processing_pending_selections is TRUE.  This keeps the entry from
462         being polluted when changing folders.
463         (location_popup_handler): In OPEN/SELECT_FOLDER modes, toggle
464         between the path bar and the entry.  In SAVE/CREATE_FOLDER modes, simply focus the
465         location_entry.
466         (update_from_entry): Removed.
467         (location_entry_create): Removed.
468         (open_location_cb): Removed.
469         (file_list_build_popup_menu): Don't add an "Open _Location" menu item.
470         (location_entry_set_initial_text): Don't do anything if
471         current_folder is NULL.
472
473         * gtk/gtkfilechooserentry.c
474         (_gtk_file_chooser_entry_set_file_part): Turn in_change on and off
475         around the call to gtk_entry_set_text().  This makes completion
476         not happen when the caller has explicitly set a name.
477
478         2006-03-24  Federico Mena Quintero  <federico@novell.com>
479
480         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
481         Added fields location_mode_box, location_pathbar_radio,
482         location_filename_radio, location_widget_box, location_label,
483         location_entry.  The radio buttons will switch between the pathbar
484         and the location entry; the other boxes are for layout purposes.
485         (enum LocationMode): New enum.
486         (struct _GtkFileChooserDefault): Added a location_mode field.
487
488         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Create the
489         location radio buttons to switch between the pathbar and the
490         location entry.  Pack the browse_path_bar in the new
491         location_widget_box instead of a generic hbox.
492         (location_buttons_create): New function.
493         (gtk_file_chooser_default_init): Initialize impl->location_mode.
494         (location_switch_to_path_bar): New function.
495         (location_switch_to_filename_entry): New function.
496
497         * gtk/gtkfilechooserbutton.c (model_add_special): The display_name
498         should not be const.
499
500 2006-05-03  Matthias Clasen  <mclasen@redhat.com>
501
502         * gtk/gtkprintunixdialog.c: Replace the xpm collate icons
503         by cairo drawing that respects themes.
504
505         * gdk/quartz/Makefile.am (libgdk_quartz_la_SOURCES): Add
506         missing files.  (#340533, Ludovic Rousseau)
507
508         * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the
509         cairo context here.  (#340522, Christian Persch)
510
511         * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't
512         use gtk_dialog_run for the error dialog, and improve the
513         dialog in other ways.  (#340510, Christian Persch)
514
515         * gtk/gtkpagesetupunixdialog.c: Beautify the custom
516         paper size dialog.  (#339590, patch by Christian Persch)
517         
518         * gtk/gtkaccessible.c:
519         * gtk/gtkclipboard.c:
520         * gtk/gtkfilefilter.c:
521         * gtk/gtkimmodule.c:
522         * gtk/gtkmenubar.c: More G_DEFINE_TYPE conversion.
523
524         * gtk/gtkwidget.c: Make GtkWidget abstract again.
525
526 2006-05-02  Matthias Clasen  <mclasen@redhat.com>
527
528         * gtk/*.c: Use G_DEFINE_TYPE and g_type_register_static_simple()
529         where applicable, for ~5000 lines of code reduction. This also
530         reduces the size of the data section by ~9k. The overall library
531         sizes shrinks a bit less, since the text section gets a bit
532         larger.
533
534 2006-05-02  Kristian Rietveld  <kris@imendio.com>
535
536         * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set tmpnode to
537         the return value of the _gtk_rbtree_insert* functions, since that
538         is the node we really want to check for visibilty.
539
540 2006-05-02  Matthias Clasen  <mclasen@redhat.com>
541
542         * gtk/gtkprinter.[hc]: Don't use virtual as a parameter name.
543         (#340394, Christian Persch)
544
545 2006-05-02  Christian Persch  <chpe@cvs.gnome.org>
546
547         * gtk/gtkpagesetupunixdialog.c:
548         * gtk/gtkprintcontext.c: 
549         * gtk/gtkprinter.c:
550         * gtk/gtkprinteroptionwidget.c:
551         * gtk/gtkprintjob.c:
552         * gtk/gtkprintoperation-unix.c:
553         * gtk/gtkprintoperation.c:
554         * gtk/gtkprintunixdialog.c: Use a priv variable when accessing priv
555           multiple times in the same function. Bug #340288.
556
557 2006-05-02  Michael Natterer  <mitch@imendio.com>
558
559         * gtk/gtklabel.c (gtk_label_set_line_wrap): added note about the
560         inablity to do height-for-width text layout and suggest to use
561         gtk_widget_set_size_request() for getting a label that wraps at
562         some specific position.
563
564 2006-05-02  Kristian Rietveld  <kris@imendio.com>
565
566         * ChangeLog.gtk-async-file-chooser: added ChangeLog entries from
567         the kris-async-branch.
568
569         * Makefile.am: updated EXTRA_DIST
570
571 2006-05-02  Alexander Larsson  <alexl@redhat.com>
572
573         * ChangeLog.gtk-printing: 
574         * Makefile.am (EXTRA_DIST):
575         Add ChangeLog.gtk-printing
576
577 2006-05-01  Matthias Clasen  <mclasen@localhost.localdomain>
578
579         * NEWS: Updates
580
581 2006-05-02  Kristian Rietveld  <kris@imendio.com>
582
583
584         * configure.in: Up ABI version to 2.10.0 (by Matthias' request).
585
586 2006-05-01  Kristian Rietveld  <kris@imendio.com>
587
588         Merge of the GTK+ asynchronous file chooser branch.  Please see
589         the kris-asynch-branch for more detailed ChangeLog entries.
590
591         * configure.in: increase binary version to 2.9.0.
592
593         * gtk/gtk.symbols:
594         * gtk/gtkfilechooser.c:
595         * gtk/gtkfilechooserbutton.c:
596         * gtk/gtkfilechooserdefault.c:
597         * gtk/gtkfilechooserdialog.c:
598         * gtk/gtkfilechooserembed.c:
599         * gtk/gtkfilechooserembed.h:
600         * gtk/gtkfilechooserentry.c:
601         * gtk/gtkfilechooserentry.h:
602         * gtk/gtkfilechooserprivate.h:
603         * gtk/gtkfilesystem.c:
604         * gtk/gtkfilesystem.h:
605         * gtk/gtkfilesystemmodel.c:
606         * gtk/gtkfilesystemmodel.h:
607         * gtk/gtkfilesystemunix.c:
608         * gtk/gtkpathbar.c:
609         * gtk/gtkpathbar.h:
610         Merge from kris-async-branch.
611
612 2006-05-01  Matthias Clasen  <mclasen@redhat.com>
613
614         * NEWS: Updates
615
616 2006-04-30  Matthias Clasen  <mclasen@redhat.com>
617
618         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Document
619         GtkTreeModel signals.
620
621 2006-04-19  Michael Emmel  <mike.emmel@gmail.com>
622
623         * gdk/directfb/gdkdrawable-directfb.c: removed all subtracting one on
624         clipping
625
626 2006-04-30  Kristian Rietveld  <kris@imendio.com>
627
628         Fix for #340200, spotted by Torsten Schoenfeld.
629
630         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): fix up logic
631         calculating the level indentation,
632         (gtk_tree_view_start_editing): remove code calculating the
633         level indentation, since _get_cell_area() takes care of this for us.
634
635 2006-04-30  Matthias Clasen  <mclasen@redhat.com>
636
637         Fix problems with setting symbolic colors from rc files.
638         (#338345, Benjamin Berg)
639         
640         * gtk/gtkrc.c (gtk_rc_settings_changed, gtk_rc_font_name_changed) 
641         (gtk_rc_color_hash_changed, gtk_rc_reparse_all_for_settings): Don't
642         freeze notification for settings changes while parsing; instead
643         manually avoid recursion, and update the color hashes.
644
645 2006-04-30  Matthias Clasen  <mclasen@redhat.com>
646
647         * gtk/gtksettings.c (gtk_settings_class_init): Change the default
648         value of the gtk-color-scheme setting to "".
649
650         * gtk/gtkprinteroption.c: 
651         * gtk/gtkprinteroptionwidget.c: 
652         * gtk/gtkprintunixdialog.c: Improve the print dialog layout,
653         mark some more strings for translation.  (#340139, Christian Persch)
654
655         * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition
656         of the ::size-changed signal, and improve its documentation.
657         (#340112, Christian Persch)
658
659 2006-04-29  Behdad Esfahbod  <behdad@gnome.org>
660
661         * gtk/gtkwidget.c (gtk_widget_create_pango_layout)
662         (gtk_widget_get/create_pango_context): Change colormap to font map in
663         docs. (#340093)
664
665 2006-04-29  Matthias Clasen  <mclasen@redhat.com>
666
667         * gtk/gtk.symbols: 
668         * gtk/gtkstatusicon.h: 
669         * gtk/gtkstatusicon.c (gtk_status_icon_position_menu): Add a menu
670         position function for use with popups on status icons.  (#334573, 
671         Christian Persch)
672
673         * gtk/gtkwidget.c (gtk_widget_is_composited): Fix a C99ism.  (#340055,
674         Kazuki Iwamoto)
675
676 2006-04-28  Matthias Clasen  <mclasen@redhat.com>
677
678         * gtk/gtkcellrenderertext.c (get_size): Use _static variants when
679         copying and merging short-lived Pango layouts. (#340033, Morten Welinder)
680
681 2006-04-28  Behdad Esfahbod  <behdad@gnome.org>
682
683         * gtk/gtkwidget.c (gtk_widget_create_pango_layout): Fix typo in
684         docs. (#340063)
685
686 2006-04-28  Matthias Clasen  <mclasen@redhat.com>
687
688         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): Don't force
689         the standard DND icon if the user has a custom DND source.  
690         (#339522, Joe Wreschnig)
691
692 2006-04-28  Michael Natterer  <mitch@imendio.com>
693
694         * gtk/gtktextbuffer.c (create_clipboard_contents_buffer): keep a
695         reference to the source buffer while the clipboard contents buffer
696         exists, because it is needed for serializing the contents buffer.
697         Makes copying from the contents buffer possible even after the
698         resp. text view is destroyed (for example when there is a
699         clipboard manager running on app exit) (bug #339195).
700
701 2006-04-27  Behdad Esfahbod  <behdad@gnome.org>
702
703         * gdk/gdkpango.c (gdk_pango_renderer_draw_glyphs): Cast to double
704         before dividing by PANGO_SCALE. (#334582)
705
706 2006-04-27  Matthias Clasen  <mclasen@redhat.com>
707
708         * gtk/gtkentry.c (popup_position_func): Improve positioning
709         of the menu when popped up by keynav.  (#334987, Christian
710         Persch)
711
712         * gtk/gtkdnd.c (gtk_drag_set_icon_window): Handle the case
713         of being called after the drag is cancelled.  (#339224, 
714         Benjamin Otte)
715
716         * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
717         Use XFixes only if it is available.  (#339839, Marko Anastasov)
718
719 2006-04-26  Federico Mena Quintero  <federico@novell.com>
720
721         * gtk/gtkdialog.c (gtk_dialog_close): Don't make this conditional
722         on having a GTK_RESPONSE_CANCEL button -> end the idiocy.  Fixes
723         bug #101293.
724
725 2006-04-26  Kristian Rietveld  <kris@imendio.com>
726
727         * gtk/gtktreeview.c (node_is_visible): new function,
728         (validate_visible_area): when a node is validated, only queue a
729         redraw for that node, not for the entire widget (a redraw for the
730         entire widget is only needed when the sizes change, and
731         _queue_resize() will take care of that),
732         (do_validate_rows): do not queue a redraw, redraws are only needed
733         for changes in the visible area and validate_visible_area() takes
734         care of that,
735         (gtk_tree_view_row_inserted): for fixed height mode, only queue
736         a resize and redraw if the node is visible, else no redraw is needed.
737
738 2006-04-26  Kristian Rietveld  <kris@imendio.com>
739
740         If this new "row-ending-details" property is turned on, more
741         detailed "details" will be passed to the theme engine for drawing
742         the background, drop indicator and focus rectangle.  Requirement is
743         that the theme engine supports these details. (#333760).
744
745         * gtk/gtktreeview.c (gtk_tree_view_class_init): add row-ending-details
746         style property,
747         (gtk_tree_view_bin_expose): pass more detailed detail to
748         gtk_paint_flat_box() if the property is turned on,
749         (gtk_tree_view_bin_expose): likewise for the drop indicator,
750         (gtk_tree_view_bin_expose): likewise for the focus rectangle.
751
752 2006-04-26  Kristian Rietveld  <kris@imendio.com>
753
754         New "show-expanders" and "level-indentation" properties, which can
755         be used for customizing the tree view.  (For example to do
756         grouping as demonstrated in the test application).
757         Discussion in #80869.
758
759         * gtk/gtktreeprivate.h: add level_indentation field.
760
761         * gtk/gtktreeview.c (gtk_tree_view_class_init),
762         (gtk_tree_view_init), (gtk_tree_view_set_property),
763         (gtk_tree_view_get_property): add the properties to the object,
764         (gtk_tree_view_button_press), (do_prelight),
765         (gtk_tree_view_bin_expose), (validate_row),
766         (gtk_tree_view_discover_dirty_iter), (gtk_tree_view_get_cell_area),
767         (gtk_tree_view_create_row_drag_icon): take the new properties
768         into account,
769         (gtk_tree_view_start_editing): fix cell placement code.
770
771         * tests/testgrouping.c: new test application, showing how to
772         implement grouping.
773
774         * tests/Makefile.am: updated.
775
776 2006-04-25  Matthias Clasen  <mclasen@redhat.com>
777
778         * gdk/gdk.symbols: Add gdk_screen_is_composited
779
780         * gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add docs.
781
782         * gtk/gtkprintoperation.c: Add docs.
783
784 Tue Apr 25 10:25:28 2006  Søren Sandmann  <sandmann@redhat.com>
785
786         * tests/testgtk.c (create_alpha_window): Create 'composited' label.
787
788         * tests/testgtk.c (on_composited_changed): New function, change
789         the label to say whether the screen is composited or not.
790
791         * gtk/gtkwindow.c (gtk_window_on_composited_changed): When
792         composited status change, invalidate the window and propagate the signal;.
793
794         * gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint
795         if reset_type_hint is TRUE.
796
797         * gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of
798         the old hints, store a shadow copy in the public window->type_hint
799         bitfield, otherwise set this field to normal. Set the private
800         field to the type hint.
801
802         * gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint. 
803
804         * gtk/gtkwindow.c (struct _GtkWindowPrivate): New field
805         "reset_type_hint" indicating whether the type hint needs to be
806         reset. New field type_hint containing a GdkWindowTypeHint.
807
808         * gtk/gtkwidget.c (propagate_composited_changed): New function to
809         propagate changes in composited status.
810         (gtk_widget_class_init): Add composited_changed signal.
811         
812         * gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed.
813
814         * gtk/gtkwidget.c (gtk_widget_is_composited): New function.
815
816         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for.
817
818         * gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint
819
820         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether
821         the item belongs to a menubar. Set the type_hint appropriately
822         depending on the outcome.
823
824         * gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here.
825
826         * gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy
827         changed on the attach widget.
828
829         * gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to
830         set the transient_for property for menus.
831
832         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint.
833
834         * gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window
835         transient for the toplevel.
836
837         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set
838         transient-for, for the popup window.
839
840         * gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for
841         new window types.
842
843         * gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support
844         for new window types.
845
846         * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
847         New function called whenever the compositing manager comes and goes.
848
849         * gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function.
850
851         * gdk/x11/gdkscreen-x11.c
852         (_gdk_x11_screen_request_cm_notification, make_cm_atom,
853         check_is_composited): New functions
854
855         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
856         _gdk_x11_screen_process_owner_change when an
857         XFixesSelectionNotifyEvent is received.
858
859         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call
860         _gdk_x11_screen_request_cm_notification() on all screens.
861
862         * gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy
863         implementation. 
864
865         * gdk/gdkscreen.c (gdk_screen_class_init): New signal,
866         'composited-changed'.
867
868         * gdk/gdkwindow.h: Add new EWMH window types.
869
870         * gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited) 
871
872 2006-04-25  Matthias Clasen  <mclasen@redhat.com>
873         
874         * modules/printbackends/cups/gtkprintbackendcups.c: 
875         Add some more translatable PPD option names.
876
877 2006-04-24  Matthias Clasen  <mclasen@redhat.com>
878
879         * po/POTFILES.in:
880         * po-properties/POTFILES.in: Updates
881
882         * gtk/paper_names.c: Declare PaperInfo here.
883
884         * gtk/gen-paper-names.c: Add a prefix to gettext msgids.
885
886         * gtk/paper_names_offsets.c: Regenerated.
887         
888         * gtk/gtkpapersize.c (gtk_paper_size_get_display_name):
889         Use g_strip_context() to strip the prefix.
890
891 2006-04-24  Matthias Clasen  <mclasen@redhat.com>
892         
893         * gtk/gtkfontbutton.c: Small doc fixes.
894
895         * gtk/gtkprintunixdialog.h: 
896         * gtk/gtkpagesetupunixdialog.h: Fix includes (#338665)
897
898         * gtk/gtkprintsettings.h (GtkPageRange): Declare in a way grokked by gtk-doc.
899
900         * gdk/gdkregion-generic.c: Documentation fixes.
901
902         * gdk/directfb/gdkmain-directfb.c: Make the comment not look like
903         a doc comment.
904
905         * gtk/gtkprintunixdialog.c: Add docs.
906
907         * gtk/gtkstatusicon.c (gtk_status_icon_get_visible): Typo fix.
908
909 2006-04-24  Alexander Larsson  <alexl@redhat.com>
910
911         * gtk/gtkprinter.c:
912         Don't ref the backend since the backend owns the printer.
913
914 2006-04-24  Alexander Larsson  <alexl@redhat.com>
915
916         * gtk/gtkpagesetupunixdialog.c (update_combo_sensitivity_from_printers):
917         Remove spew.
918
919 2006-04-24  Alexander Larsson  <alexl@redhat.com>
920
921         * gtk/gtkprintunixdialog.c (create_page_setup_page):
922         Even/Odd Pages -> Even/Odd Sheets
923
924 2006-04-24  Matthias Clasen  <mclasen@redhat.com>
925
926         * gtk/gtk.symbols:
927         * gtk/gtkprintoperation.c (gtk_print_operation_run_async): Refactor the
928         gtk_print_operation_run() code and add an _async version.
929
930         * gtk/gtkprintoperation-private.h:
931         * gtk/gtkprintoperation-unix.c
932         (_gtk_print_operation_platform_backend_run_dialog_async)
933         (gtk_print_run_page_setup_dialog_async): Variants of the run functions
934         which don't call gtk_dialog_run(), but only show the dialog and return,
935         and handle the response in a signal handler.
936
937         * gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog_async) 
938         (_gtk_print_operation_platform_backend_run_dialog_async): Implement these 
939         by calling the sync versions.
940
941         * gtk/gtkprintoperation-unix.c: Cleanups.
942
943         * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_get_page_setup):
944         Remove redundant code.
945
946         * gtk/Makefile.am: Install gtkprintjob.h as Unix-specific print API.
947
948         * gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog): 
949         Return a copy of the original page setup if the dialog was canceled.
950
951 2006-04-24  Alexander Larsson  <alexl@redhat.com>
952
953         * gtk/gtkprintjob.h:
954         Declare GtkPrintJob.
955         
956         * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_settings):
957         Change g_return_if_fail to g_return_val_if_fail.
958
959 2006-04-24  Alexander Larsson  <alexl@redhat.com>
960
961         * configure.in:
962         Check for cairo-pdf.h.
963         Check for cairo-ps.h on non-win32.
964
965 2006-04-24  Matthias Clasen  <mclasen@redhat.com>
966
967         * gtk/gtkclipboard.h: 
968         * gtk/gtkprinter.c: 
969         * gtk/gtkprintsettings.h: 
970         * gtk/gtkprintsettings.c: Match parameter names with the headers.
971
972         * gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog): 
973         Add docs.
974
975         * gtk/gtktextbufferrichtext.c (gtk_text_buffer_deserialize): 
976         * gtk/gtkstatusicon.c (gtk_status_icon_get_storage_type): 
977         * gtk/gtktreeview.c (gtk_tree_view_set_search_position_func): 
978         * gtk/gtktreeview.c (gtk_tree_view_get_headers_clickable): 
979         * gtk/gtkcellrendererspin.c (gtk_cell_renderer_spin_new): 
980         * gtk/gtkmenu.c (gtk_menu_get_for_attach_widget): Fix the docs.
981
982         * gtk/gtkprinter.h: Don't declare GtkPrintJob here.
983         * gtk/gtkprinter-private.h: Instead include gtkprintjob.h.
984
985 2006-04-23  Matthias Clasen  <mclasen@redhat.com>
986
987         * gtk/gtkprinter-private.h: 
988         * gtk/gtkprintbackend.h: 
989         * gtk/gtkprinter.[hc]: 
990         * gtk/gtkprintjob.[hc]: Use g types, add documentation, and some
991         stylistic fixups.
992
993         * gtk/gtkaboutdialog.c (activate_url): Avoid a compiler warning.
994
995         * gtk/gtkpapersize.[hc]: Use g types, add documentation.
996
997         * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_get_settings): 
998         Use g_return_val_if_fail in non-void functions.
999
1000         * gtk/Makefile.am: Add gtkprintutils.[hc]
1001
1002         * gtk/gtkprintutils.[hc]: New files, move the unit conversion
1003         functions here.
1004
1005         * gtk/gtkpagesetupunixdialog.c: 
1006         * gtk/gtkprintsettings.c: 
1007         * gtk/gtkpagesetup.c: 
1008         * gtk/gtkpapersize.c: Replace all static copies of to_mm/from_mm
1009         by the copies in gtkprintutils.c.
1010
1011         * gtk/gtkpagesetup.[hc]: Use g types, add documentation.
1012
1013         * gtk/gtkprintsettings.c: More documentation
1014
1015 2006-04-22  Tor Lillqvist  <tml@novell.com>
1016
1017         * gtk/Makefile.am (gtk_private_h_sources): Small workaround for
1018         weird bug in some versions of Automake at least on Windows.
1019
1020 2006-04-21  Alexander Larsson  <alexl@redhat.com>
1021
1022         Merge the gtk-printing branch.
1023         For more detailed ChangeLog entries, see the ChangeLog.gtk-printing.
1024         
1025         * .cvsignore:
1026         * Makefile.am:
1027         * configure.in:
1028         * docs/tools/widgets.c:
1029         * gtk+-unix-print-2.0.pc.in:
1030         * gtk/Makefile.am:
1031         * gtk/gen-paper-names.c:
1032         * gtk/gtk.h:
1033         * gtk/gtk.symbols:
1034         * gtk/gtkenums.h:
1035         * gtk/gtkiconfactory.c:
1036         * gtk/gtkmarshalers.list:
1037         * gtk/gtkpagesetup.[ch]:
1038         * gtk/gtkpagesetupunixdialog.[ch]:
1039         * gtk/gtkpapersize.[ch]:
1040         * gtk/gtkprint-win32.[ch]:
1041         * gtk/gtkprintbackend.[ch]:
1042         * gtk/gtkprintcontext.[ch]:
1043         * gtk/gtkprinter-private.h:
1044         * gtk/gtkprinter.[ch]:
1045         * gtk/gtkprinteroption.[ch]:
1046         * gtk/gtkprinteroptionset.[ch]:
1047         * gtk/gtkprinteroptionwidget.[ch]:
1048         * gtk/gtkprintjob.[ch]:
1049         * gtk/gtkprintoperation-private.h:
1050         * gtk/gtkprintoperation-unix.c:
1051         * gtk/gtkprintoperation-win32.c:
1052         * gtk/gtkprintoperation.[ch]:
1053         * gtk/gtkprintsettings.[ch]:
1054         * gtk/gtkprintunixdialog.[ch]:
1055         * gtk/paper_names.c:
1056         * gtk/paper_names_offsets.c:
1057         Platform independent printing API and implementations
1058         for unix and windows.
1059
1060         * gtk/gtkstock.h:
1061         * gtk/stock-icons/24/gtk-orientation-landscape.png:
1062         * gtk/stock-icons/24/gtk-orientation-portrait.png:
1063         * gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
1064         Add stock icons for page orientation.
1065         
1066         * modules/Makefile.am:
1067         * modules/printbackends/Makefile.am:
1068         * modules/printbackends/cups/Makefile.am:
1069         * modules/printbackends/cups/gtkcupsutils.[ch]:
1070         * modules/printbackends/cups/gtkprintbackendcups.[ch]:
1071         * modules/printbackends/cups/gtkprintercups.[ch]:
1072
1073         Cups printing backend for unix.
1074         
1075         * modules/printbackends/lpr/Makefile.am:
1076         * modules/printbackends/lpr/gtkprintbackendlpr.[ch]:
1077         lpr printing backend for unix.
1078         
1079         * modules/printbackends/pdf/Makefile.am:
1080         * modules/printbackends/pdf/gtkprintbackendpdf.[ch]:
1081         print-to-pdf printing backend for unix.
1082         
1083         * tests/.cvsignore:
1084         * tests/Makefile.am:
1085         * tests/print-editor.c:
1086         Test application for printing.
1087
1088         * gdk/gdk.symbols:
1089         * gdk/win32/gdkevents-win32.c:
1090         * gdk/win32/gdkwin32.h:
1091         Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the
1092         mainloop while displaying a win32 common dialog.
1093
1094         * gdk/directfb/Makefile.am:
1095         Whitespace cleanup.
1096         
1097 2006-04-20  Paolo Borelli  <pborelli@katamail.com>
1098
1099         * gtk/gtkcombobox.c: plug small leak (#339132)
1100         * tests/testcombo.c: ditto
1101
1102 2006-04-19  Michael Emmel  <mike.emmel@gmail.com>
1103
1104         * gdk/directfb/gdkdrawable-directfb.c: fixed off by one error in
1105         clip patch from (#330824)
1106
1107 2006-04-19  Murray Cumming  <murrayc@murrayc.com>
1108
1109         * gtk/gtkfilechooserbutton.c: _GtkFileChooserButtonPrivate:
1110         Added has_title flag so we can remember whether a title has 
1111         been set.
1112         (gtk_file_chooser_button_constructor): If no title has been
1113         set then set it to the default title. This means that the 
1114         default title will be used if the dialog was instantiated with 
1115         g_object_new(), without using the gtk_file_chooser_button_new() 
1116         convenience function. This helps language bindings.
1117         (gtk_file_chooser_button_set_property): Set has_title when 
1118         setting the title.
1119
1120 2006-04-19  Tor Lillqvist  <tml@novell.com>
1121
1122         * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_NUMPAD[0-9]
1123         to GDK_KP_[0-9]. (#337562)
1124
1125 2006-04-18  Matthias Clasen  <mclasen@redhat.com>
1126
1127         * gtk/gtkrc.c: Allocate pixmap_path dynamically, rather than
1128         using a fixed array of size 128.
1129
1130         * gtk/gtkiconcache.c: Apply a patch by Paolo Borelli to factor
1131         out a strip_suffix() function and save some memory.  (#338307)
1132
1133 2006-04-18  Carlos Garnacho  <carlosg@gnome.org>
1134
1135         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): removed wrong
1136         condition check that caused tab labels not to be drawn under certain
1137         circumstances. Bug #338734.
1138
1139 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
1140
1141         * configure.in: Remove obsolete entry for no_NO
1142         * po-properties/no.po: And the translation
1143         * po/no.po: And the translation.
1144
1145 2006-04-17  Matthias Clasen  <mclasen@redhat.com>
1146
1147         * demos/gtk-demo/colorsel.c (expose_event_callback): Small formatting
1148         fix.
1149
1150 2006-04-17  Christian Persch  <chpe@cvs.gnome.org>
1151
1152         * gtk/gtkdnd.c: (gtk_drag_dest_set), (gtk_drag_dest_set_proxy): Fix
1153         UMR in gtk_drag_dest_motion. Bug #338725.
1154
1155 2006-04-17  Matthias Clasen  <mclasen@redhat.com>
1156
1157         * gtk/gtksettings.c (gtk_settings_class_init): 
1158         * gtk/gtkentry.c (gtk_entry_class_init): Fix typos
1159         in property blurbs.  (#338772, Clytie Siddall)
1160
1161 2006-04-16  Richard Hult  <richard@imendio.com>
1162
1163         * gdk/quartz/gdkdrawable-quartz.c: (gdk_quartz_draw_drawable): Add check 
1164         for source being a window.
1165
1166         * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_get_pointer):
1167         Don't assert on window not being the root window.
1168
1169 2006-04-16  Richard Hult  <richard@imendio.com>
1170
1171         * gdk/quartz/gdkdrawable-quartz.c: Remove leading cairo/ in include.
1172
1173 2006-04-16  Matthias Clasen <mclasen@redhat.com>
1174
1175         * gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
1176         possible array overrun.  (Coverity)
1177
1178         * gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
1179         possible array overrun.  (Coverity)
1180
1181         * gtk/gtktextbuffer.c (_gtk_text_buffer_remove_all_tags):
1182         Avoid a NULL dereference.  (Coverity)
1183
1184 2006-04-15  Matthias Clasen <mclasen@redhat.com>
1185
1186         * gtk/gtkrecentmanager.c: Make filename_warning() static,
1187         and use caseless matching when looking for file:/.  
1188         (#336772, Morten Welinder)
1189
1190 2006-04-13  Anders Carlsson  <andersca@imendio.com>
1191
1192         * gdk/quartz/gdkevents-quartz.c:
1193         (synthesize_enter_event):
1194         (synthesize_leave_event):
1195         (synthesize_crossing_events):
1196         Take grabs into account.
1197
1198         (find_window_for_event):
1199         Only return grabbed window when owner_events is FALSE.
1200
1201 2006-04-13  Matthias Clasen  <mclasen@redhat.com>
1202
1203         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Reorganize slightly
1204         to avoid a possible NULL dereference.  (Coverity)
1205
1206 2006-04-12  Matthias Clasen  <mclasen@redhat.com>
1207
1208         * gtk/gtktreeview.c (gtk_tree_view_get_arrow_xrange): Don't
1209         allow passing NULL for x1 or x2, adjust callers.
1210
1211         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes): 
1212         Reorganize to avoid a possible NULL pointer dereference.  (Coverity)
1213
1214         * gtk/gtknotebook.c (gtk_notebook_page_allocate): Reorganize
1215         to avoid a possible NULL dereference.  (Coverity)
1216
1217         * gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Handle
1218         closed displays correctly.  (Coverity)
1219
1220         * contrib/gdk-pixbuf-xlib/Makefile.am:
1221         * modules/engines/pixbuf/Makefile.am
1222         * gdk-pixbuf/Makefile.am: Build fixes for Cygwin.  (#338262)
1223
1224         * gdk/x11/gdkselection-x11.c (make_list): Make this work
1225         for list == NULL.  (Coverity)
1226
1227         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_entries_for_keycode): 
1228         Rearrange the code a bit.
1229
1230         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange): 
1231         Handle _gtk_text_line_get_data() returning NULL in all
1232         cases.  (Coverity)
1233
1234         * gtk/gtkuimanager.c: Make find_menu_position and
1235         find_toolbar_position void.  (#338100)
1236
1237 2006-04-12  Anders Carlsson  <andersca@imendio.com>
1238
1239         * gdk/quartz/gdkkeys-quartz.c:
1240         Handle page up and page down.
1241
1242 2006-04-12  Anders Carlsson  <andersca@imendio.com>
1243
1244         * gdk/quartz/gdkdrawable-quartz.c:
1245         (_gdk_quartz_drawable_release_context):
1246         Don't flush if we're inside a begin_paint/end_paint pair.
1247         
1248         * gdk/quartz/gdkwindow-quartz.c:
1249         (gdk_window_impl_quartz_end_paint):
1250         Free clip region here.
1251
1252 2006-04-12  Matthias Clasen  <mclasen@redhat.com>
1253
1254         * gtk/gtkuimanager.c (start_element_handler): Don't pass
1255         a negative value as string length to get_child_node().  (Coverity)
1256
1257         * gtk/gtkicontheme.c (insert_theme): Handle dirs == NULL
1258         gracefully.  (Coverity)
1259
1260         * gtk/gtknotebook.c (gtk_notebook_remove): Silently do nothing
1261         if the widget is not a child.  (Coverity)
1262
1263 2006-04-11  Matthias Clasen  <mclasen@redhat.com>
1264
1265         * gdk/x11/gdkkeys-x11.c (get_xkb): Return early in error
1266         cases.  (Coverity)
1267
1268         * gtk/gtktextview.c (selection_motion_event_handler): Remove
1269         some unused variables.
1270
1271         * gtk/gtktreeview.c ((gtk_tree_view_search_position_func): Apply
1272         a patch from David Trowbridge to improve the positioning of the
1273         search popup.  (#338047)
1274
1275 2006-04-11  Emmanuele Bassi  <ebassi@cvs.gnome.org>
1276
1277         * gtk/gtkrecentmanager.c (gtk_recent_manager_init)
1278         (gtk_recent_manager_new): Remove the unneeded setting of the
1279         storage file inside the constructor. (Murray Cumming)
1280         (build_recent_items_list): Reset the dirty bit when done rebuilding
1281         the list from the storage file.
1282
1283 2006-04-11  Matthias Clasen  <mclasen@redhat.com>
1284
1285         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Silence
1286         compiler warnings.
1287
1288         * gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't
1289         dereference info before checking it for NULL.  (Coverity)
1290
1291 2006-04-11  Anders Carlsson  <andersca@mac.imendio.com>
1292
1293         * gdk/quartz/GdkQuartzView.c:
1294         (-[GdkQuartzView drawRect:]):
1295         * gdk/quartz/gdkdrawable-quartz.c:
1296         (gdk_quartz_ref_cairo_surface):
1297         (_gdk_quartz_drawable_get_context):
1298         (_gdk_quartz_drawable_release_context):
1299         * gdk/quartz/gdkwindow-quartz.c:
1300         (gdk_window_impl_quartz_finalize):
1301         (gdk_window_impl_quartz_class_init):
1302         (gdk_window_impl_quartz_begin_paint_region):
1303         (gdk_window_impl_quartz_end_paint):
1304         (gdk_window_impl_quartz_invalidate_maybe_recurse):
1305         (gdk_window_impl_quartz_process_updates):
1306         (gdk_window_impl_quartz_paintable_init):
1307         (_gdk_window_impl_quartz_get_type):
1308         * gdk/quartz/gdkwindow-quartz.h:
1309         Have GdkWindowImplQuartz implement GdkPaintable.
1310
1311 2006-04-10  Michael Natterer  <mitch@imendio.com>
1312
1313         * gtk/gtktextbufferrichtext.c (gtk_text_buffer_deserialize):
1314         pasted rich text should not be affected by tags that are active at
1315         the insertion point. Therefore, remove and remember all active
1316         tags, and re-apply them left and right of the inserted text after
1317         pasting. Fixes bug #337653.
1318
1319 2006-04-11  Anders Carlsson  <andersca@imendio.com>
1320
1321         * gdk/gdkinternals.h:
1322         * gdk/gdkwindow.c:
1323         (_gdk_paintable_get_type):
1324         (gdk_window_begin_paint_region):
1325         (gdk_window_end_paint):
1326         (gdk_window_process_updates):
1327         (gdk_window_invalidate_maybe_recurse):
1328         Add new GdkPaintable interface which implementation objects can 
1329         implement in order to override gdk painting functions.
1330
1331 2006-04-10 Vladimer Sichinava  <vlsichinava@gmail.com>
1332
1333         * configure.in: Added "ka" (Georgian) to ALL_LINGUAS
1334
1335 2006-04-07  Hans Breuer  <hans@breuer.org>
1336
1337         * gtk/makefile.msc.in tests/makefile.msc : updated
1338
1339 2006-04-06  Tor Lillqvist  <tml@novell.com>
1340
1341         Correct the appearance of non-square icons and cursors: pad them
1342         to square so that Windows won't stretch them.
1343
1344         * gdk/win32/gdkcursor-win32.c (create_alpha_bitmap)
1345         (create_color_bitmap): Always create square bitmaps, take only
1346         side length as argument.
1347         (pixbuf_to_hbitmaps_alpha_winxp, pixbuf_to_hbitmaps_normal):
1348         Corresponding changes.
1349
1350 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
1351
1352         * gtk/gtktextview.c (text_window_realize): Lower the window, to
1353         prevent late-constructed text windows from covering child 
1354         widgets.  (#336796, Yevgen Muntyan)
1355
1356         * gtk/gtkmain.c (gtk_grab_add, gtk_grab_remove, gtk_grab_notify) 
1357         (gtk_grab_notify_foreach): Rework the code which emits ::grab-notify
1358         signals to ensure that we emit enough signals. Also optimize the
1359         code to not do unnecessary tree walking.
1360
1361         * gtk/gtkwidget.c (gtk_widget_class_init): Document ::grab-notify.
1362
1363 2006-04-05  Paolo Borelli  <pborelli@katamail.com>
1364
1365         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle the case of \r
1366         and \n split across lines. Bug #337022.
1367         * tests/testtextbuffer.c: add unit test.
1368
1369 Tue Apr  4 12:25:36 2006  Søren Sandmann  <sandmann@redhat.com>
1370
1371         * gdk/x11/gdkimage-x11.c (gdk_image_class_init): Add "_private" to
1372         make it build.
1373
1374 2006-04-04  Matthias Clasen  <mclasen@redhat.com>
1375
1376         * gdk/gdkdisplay.c: 
1377         * gdk/gdkdisplaymanager.c:
1378         * gdk/gdkdraw.c:
1379         * gdk/gdkkeys.c:
1380         * gdk/gdkpixmap.c:
1381         * gdk/gdkscreen.c:
1382         * gdk/gdkwindow.c:
1383         * gdk/x11/gdkcolor-x11.c:
1384         * gdk/x11/gdkdisplay-x11.c:
1385         * gdk/x11/gdkdnd-x11.c:
1386         * gdk/x11/gdkdrawable-x11.c:
1387         * gdk/x11/gdkgc-x11.c:
1388         * gdk/x11/gdkimage-x11.c:
1389         * gdk/x11/gdkinput.c:
1390         * gdk/x11/gdkpixmap-x11.c:
1391         * gdk/x11/gdkscreen-x11.c:
1392         * gdk/x11/gdkwindow-x11.c: Use G_DEFINE_TYPE.
1393
1394         * gdk/x11/gdkcolor-x11.c: 
1395         * gdk/x11/gdkdnd-x11.c:
1396         * gdk/x11/gdkimage-x11.c: Use instance private data.
1397
1398 2006-04-03  Matthias Clasen  <mclasen@redhat.com>
1399
1400         * gdk/gdkrgb.c: Get rid of a duplicate copy of the visual names.
1401
1402         * gtk/gtkmain.c: Make gtk_args const.
1403
1404         * gtk/gtkicontheme.c (pixbuf_supports_svg): Save one static.
1405
1406         * gtk/gtkrecentchooser.c (gtk_recent_chooser_error_quark):
1407         * gtk/gtkrecentmanager.c (gtk_recent_manager_error_quark):
1408         * gtk/gtkfilechooser.c (gtk_file_chooser_error_quark):
1409         * gtk/gtkfilesystem.c (gtk_file_system_error_quark):
1410         * gtk/gtkicontheme.c (gtk_icon_theme_error_quark): No point
1411         in making the error path fast by caching quarks. 
1412
1413         * gtk/gtkfilesel.c (no_stat_dirs): Avoid relocation.
1414
1415         * gdk/gdk.c: Here too.
1416
1417         * gdk/gdkinternals.h: 
1418         * gdk/x11/gdkmain-x11.c: 
1419         * gdk/win32/gdkmain-win32.c: 
1420         * gdk/directfb/gdkdisplay-directfb.c: 
1421         * gdk/quartz/gdkmain-quartz.c: Make _gdk_windowing_args const.
1422
1423         * gdk/win32/gdkpixmap-win32.c: Include gdkscreen.h  (#337032,
1424          Kazuki IWAMOTO)
1425
1426         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Mention
1427         that %NULL is allowed.  (#336937, Christian Neumair)
1428
1429         * gtk/gtkmain.c: Get rid of an unnecessary static variable.
1430
1431         * gtk/gtktextlayout.c: Fix a warning.
1432         
1433         * gtk/gtktextsegment.h: 
1434         * gtk/gtktextsegment.c: 
1435         * gtk/gtktextchild.c:
1436         * gtk/gtktextbtree.c:
1437         * gtk/gtktextmark.c: 
1438         * gtk/gtktexttypes.h: Make the segment class pointers const.
1439
1440         * gtk/gtktextbufferserialize.c: Make parser struct const.
1441         
1442         * gtk/gtkuimanager.c: Make parser struct const.
1443
1444         * gtk/gtklinkbutton.c: Make the default colors const.
1445
1446         * gtk/gtkuimanager.c: Avoid relocations. 
1447
1448         * gtk/gtkxembed.c (_gtk_xembed_message_name): Reduce size of static
1449         buffer.
1450
1451         * gtk/gtktext.c (gtk_text_key_press): Avoid relocations.
1452
1453         * gtk/gtkrc.c (gtk_rc_add_initial_default_files) 
1454         (gtk_rc_add_default_file): Allocate the gtk_rc_default_files array
1455         dynamically.
1456
1457 2006-04-02  Matthias Clasen  <mclasen@redhat.com>
1458
1459         * gtk/gtkrc.c: Avoid relocations for the array of symbol names. 
1460
1461         * gtk/gtkruler.c: Remove unused strings from the ruler_metrics 
1462         structs, to avoid relocations.  (#336917, Stephane Chauveau)
1463
1464 2006-04-02  Emmanuele Bassi  <ebassi@cvs.gnome.org>
1465
1466         * gtk/gtkrecentmanager.c (gtk_recent_manager_set_filename): Build
1467         the items list after setting the storage file.
1468
1469         * gtk/gtkrecentmanager.c (display_closed): Use the right string
1470         for unsetting the default manager object from the screen.       
1471
1472 2006-04-01  Behdad Esfahbod  <behdad@gnome.org>
1473
1474         * gtk/gtkfilesel.c (gtk_file_selection_get_filename): Oops. (#336784)
1475
1476 2006-04-01  Behdad Esfahbod  <behdad@gnome.org>
1477
1478         * gtk/gtkfilesel.c (gtk_file_selection_get_filename): Use a GString
1479         instead of static buffer to reduce .bss by 8kb. (#336784)
1480
1481 2006-04-01  Dom Lachowicz <cinamod@hotmail.com>
1482
1483         * modules/engines/ms-windows/msw_style.c (draw_hline): Emulate WinXP's
1484         drawing of menu separators
1485         
1486 2006-03-31  Behdad Esfahbod  <behdad@gnome.org>
1487
1488         * gtk/gtkrecentmanager.c: Convert filenames to UTF-8 before printing
1489         them out in warning messages. (#336770, Morten Welinder)
1490
1491 2006-03-31  Behdad Esfahbod  <behdad@gnome.org>
1492
1493         * gtk/gtkrecentmanager.c (gtk_recent_info_last_application): Update
1494         last_stamp inside the look. (#336771, Morten Welinder)
1495
1496 2006-03-31  Behdad Esfahbod  <behdad@gnome.org>
1497
1498         * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_get_property):
1499         Add missing break. (#336769, Morten Welinder)
1500
1501 2006-03-31  Behdad Esfahbod  <behdad@gnome.org>
1502
1503         * gtk/gtkfilesystem.c (gtk_file_system_get_bookmark_label):
1504         * gtk/gtklinkbutton.c (gtk_link_button_new_with_label): Return NULL
1505         instead of FALSE in g_return_val_if_fail in a pointer-returning
1506         function. (#336764, Morten Welinder)
1507
1508 2006-04-01  Gora Mohanty  <gmohanty@cvs.gnome.org>
1509
1510         * configure.in: Added 'or' (Oriya) to ALL_LINGUAS.
1511
1512 2006-03-31  Matthias Clasen  <mclasen@redhat.com>
1513
1514         * gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't
1515         assert that the age is positive.  (#336773, Morten Welinder)
1516
1517 2006-03-31  Matthias Clasen  <mclasen@redhat.com>
1518
1519         * gtk/gtkicontheme.c (load_icon_data): Don't leak the keyfile 
1520         parser in the error case. 
1521         
1522         * gtk/gtkicontheme.c (load_icon_data, free_unthemed_icon) 
1523         (icon_data_free, load_themes):
1524         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon_data): Use the slice
1525         allocator for GtkIconData and UnthemedIcon structs.
1526
1527 2006-03-30  Behdad Esfahbod  <behdad@gnome.org>
1528
1529         * gtk/gtkcalendar.c: Fix translation comments for localizable
1530         digit formats. (fixes bug #336650)
1531
1532 2006-03-30  Matthias Clasen  <mclasen@redhat.com>
1533
1534         * gtk/gtkrecentmanager.h (struct _GtkRecentData): Fix the doc
1535         comment format.
1536
1537         * gtk/gtkrecentmanager.c (gtk_recent_manager_has_item) 
1538         (gtk_recent_manager_purge_items, gtk_recent_manager_lookup_item) 
1539         (gtk_recent_manager_get_limit, gtk_recent_manager_add_full) 
1540         (gtk_recent_manager_get_items, gtk_recent_manager_remove_item): 
1541
1542         * gtk/gtkrecentfilter.c (gtk_recent_filter_add_age): 
1543         * gtk/gtkrecentchooser.c (gtk_recent_chooser_set_show_numbers) 
1544         (gtk_recent_chooser_set_sort_func): 
1545         * gtk/gtknotebook.h (gtk_notebook_set_tab_detachable): Sync
1546         parameter names between .c and .h files to help gtk-doc.
1547
1548         * gdk/gdkregion-generic.c (gdk_region_get_clipbox): Reword
1549         docs to help gtk-doc.
1550
1551         * docs/tools/widgets.c (get_all_widgets): Add 
1552         GtkRecentChooserDialog.
1553
1554         * gtk/gtkdnd.c (gtk_drag_get_icon): Make sure to get an
1555         icon window when constructing the fallback_icon. This
1556         fixes a crash when dragging icons between screens in
1557         nautilus.  (#325751, Hylke van der Schaaf)
1558
1559 2006-03-30  Michael Emmel  <mike.emmel@gmail.com>
1560
1561         * gdk/directfb/gdkpixmap-directfb.c implement
1562             (gdk_pixmap_foreign_new_for_screen)
1563
1564 2006-03-30  Emmanuele Bassi  <ebassi@cvs.gnome.org>
1565
1566         Add documentation for the GtkLinkButton (#336592)
1567
1568         * docs/reference/tmpl/gtklinkbutton.sgml: Add description
1569         of the GtkLinkButton.
1570
1571         * docs/reference/gtk/migrating-GtkLinkButton.sgml: Guidelines
1572         for migrating code from GnomeHRef to the GtkLinkButton.
1573
1574         * docs/reference/gtk/gtk-docs.sgml:
1575         * docs/reference/gtk/Makefile.am: Build glue for the porting
1576         guide.
1577
1578 2006-03-29  Matthias Clasen <mclasen@redhat.com>
1579
1580         * gdk/gdk.symbols:
1581         * gdk/gdkpixmap.h:
1582         * gdk/win32/gdkpixmap-win32.c:
1583         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_screen):
1584         New function to allow wrapping a native pixmap without
1585         a server roundtrip.  (#334954, David Baron) 
1586
1587         * gtk/gtk.symbols:
1588         * gtk/gtkrecent*.c: Fix some symbol aliasing glitches.
1589
1590 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
1591
1592         * gtk/gtkrecentchoosermenu.c: Make gtkalias.h the last included file.
1593
1594 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
1595
1596         * gtk/gtk.symbols: Fix a typo that broke aliasing rules.
1597
1598 2006-03-29  Richard Hult  <richard@imendio.com>
1599
1600         * gdk/quartz/gdkproperty-quartz.c: Add missing CLIPBOARD atom.
1601
1602 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
1603
1604         * docs/reference/gtk/migrating-GtkRecentChooser.sgml: Add a migration
1605         guide for porting to the new GtkRecent stuff from the old EggRecent
1606         code.
1607
1608         * docs/reference/gtk/tmpl/gtkrecentchooser.sgml:
1609         * docs/reference/gtk/tmpl/gtkrecentchooserdialog.sgml:
1610         * docs/reference/gtk/tmpl/gtkrecentchoosermenu.sgml:
1611         * docs/reference/gtk/tmpl/gtkrecentchooserwidget.sgml:
1612         * docs/reference/gtk/tmpl/gtkrecentfilter.sgml:
1613         * docs/reference/gtk/tmpl/gtkrecentmanager.sgml: Add template files
1614         for the reference guide.
1615
1616         * docs/reference/gtk/gtk-docs.sgml:
1617         * docs/reference/gtk/gtk-sections.txt:
1618         * docs/reference/gtk/Makefile.am: Build glue for add GtkRecent to
1619         the reference guide.
1620
1621 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
1622
1623         * tests/Makefile.am:
1624         * tests/testrecentchooser.c: Add a test suite for GtkRecentChooser.
1625
1626 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
1627
1628         Import GtkRecent* from libegg.
1629
1630         * gtk/gtkrecentmanager.[ch]: Add GtkRecentManager, an object
1631         for managing a list of recently used resources.
1632
1633         * gtk/gtkrecentchooser.[ch]:
1634         * gtk/gtkrecentchooserdefault.[ch]:
1635         * gtk/gtkrecentchooserdialog.[ch]:
1636         * gtk/gtkrecentchoosermenu.[ch]:
1637         * gtk/gtkrecentchooserprivate.h:
1638         * gtk/gtkrecentchooserutils.[ch]:
1639         * gtk/gtkrecentchooserwidget.[ch]: Add GtkRecentChooser, a
1640         GTypeInterface for widgets implementing viewers for recently
1641         used resources.
1642
1643         * gtk/gtkrecentfilter.[ch]: GtkRecentFilter, a filter object
1644         for GtkRecentChooser implementations.
1645
1646         * gtk/gtk.h:
1647         * gtk/gtk.symbols:
1648         * gtk/Makefile.am: Build glue for GtkRecent*.
1649
1650 2006-03-29  Matthias Clasen  <mclasen@redhat.com>
1651
1652         * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Emit
1653         page-added before switch-page.  (#335691, Christian Persch)
1654
1655 2006-03-29  Matthias Clasen  <mclasen@redhat.com>
1656
1657         * gtk/gtkfilechooserdefault.c (queue_edited_idle): Handle
1658         double queuing, rather than asserting that it does not 
1659         happen.  (#330617)
1660
1661 2006-03-28  Matthias Clasen  <mclasen@redhat.com>       
1662
1663         * gtk/gtknotebook.c (gtk_notebook_set_tab_detachable): Fix
1664         docs syntax, also commit a patch from #335707 to improve
1665         notebook DND with window widgets.
1666
1667         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): 
1668         (selection_motion_event_handler): Fix drag-selection after
1669         double-click.  (#323862, Benjamin Berg)
1670
1671         * gtk/gtktextview.c (get_iter_at_pointer): Factor this out
1672         into a function and use it in move_mark_to_pointer_and_scroll,
1673         drag_scan_timeout and selection_motion_event_handler.
1674         (Paolo Borelli)
1675
1676 2006-03-28  Matthias Clasen  <mclasen@redhat.com>
1677
1678         * gtk/gtktextview.c (gtk_text_view_do_popup) 
1679         (gtk_text_view_grab_notify): Move the call to 
1680         gtk_text_view_end_selection_drag() from gtk_text_view_do_popup
1681         to gtk_text_view_grab_notify, so that it works not only
1682         for the text views own popup, but also for other ways in which
1683         we might become grab-shadowed during a selection drag.
1684         (#74620, Li Yuan)
1685
1686 2006-03-28  Sven Herzberg  <herzi@gnome-de.org>
1687
1688         reviewed by: Tim Janik
1689         
1690         * gtk/gtkpixmap.c: (gtk_pixmap_set): only check for equal colormaps if
1691         the new pixmap is not NULL; fixes a warning when gtk_pixmap_set is
1692         called from gtk_pixmap_finalize (bug 336254)
1693
1694 2006-03-27  Anders Carlsson  <andersca@imendio.com>
1695
1696         * gdk/quartz/gdkevents-quartz.c:
1697         (select_thread_func):
1698         (got_fd_activity):
1699         (poll_func):
1700         (gdk_event_translate):
1701         Make the poll func work with real file descriptors.
1702         We do this by creating a thread which calls poll and then
1703         signals the main thread using a run loop source.
1704         
1705         * gtk/gtkclipboard-quartz.c:        
1706         (-[GtkClipboardOwner pasteboard:provideDataForType:]):
1707         Remove debugging output
1708
1709 2006-03-27  Matthias Clasen  <mclasen@redhat.com>
1710
1711         * gtk/gtkmnemonichash.c (_gtk_mnemonic_hash_activate): Check that 
1712         the widget is viewable.  (#336200, Bastian Nocera)
1713
1714 2006-03-27  Michael Natterer  <mitch@imendio.com>
1715
1716         * gtk/gtkmenu.c (gtk_menu_scroll_by): bail out if there is no need
1717         for scrolling (more obvious than adding additional conditions to
1718         the scroll offset calculation). Fixes bug #335912.
1719
1720 2006-03-27  Anders Carlsson  <andersca@imendio.com>
1721
1722         * gtk/Makefile.am:
1723         Add -xobjective-c to cflags.
1724         (#335956, Lllian Angel)
1725         
1726         * gtk/gtkdnd-quartz.c:
1727         (gtk_drag_dest_set_track_motion):
1728         (gtk_drag_dest_get_track_motion):
1729         Add stubs for new functions.
1730         (#335955, Lillian Angel)
1731         
1732 2006-03-27  Richard Hult  <richard@imendio.com>
1733
1734         * gdk/quartz: Add more stubs.
1735
1736 2006-03-27  Michael Natterer  <mitch@imendio.com>
1737
1738         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
1739         add missing ')'.
1740
1741 2006-03-26  Matthias Clasen  <mclasen@redhat.com>
1742
1743         * gtk/Makefile.am: Fix a srcdir != builddir build problem.
1744         (#335915, Yevgen Muntyan)
1745
1746         * gtk/gtktextbuffer.c (gtk_text_buffer_get_property):
1747         * gtk/gtksettings.c (gtk_settings_get_property):
1748         * gtk/gtkuimanager.c (gtk_ui_manager_get_property): Fix leaks.
1749
1750         * gtk/gtktexttag.c (gtk_text_tag_get_property):
1751         * gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
1752         Avoid an unnecessary strdup.  (#336013)
1753
1754 2006-03-24  Matthias Clasen  <mclasen@redhat.com>
1755
1756         * gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
1757         gdk_window_invalidate_rect() on unrealized widgets.  (#335717,
1758         Nicolas Setton)
1759
1760 Fri Mar 24 14:53:20 2006  Tim Janik  <timj@imendio.com>
1761
1762         * gtk/gtktreemodel.h: 
1763         * gtk/gtktextbtree.h: back out G_GNUC_WARN_UNUSED_RESULT on iterator
1764         functions which turned out to cause too much trouble.
1765
1766 2006-03-23  Matthias Clasen  <mclasen@redhat.com>
1767
1768         * AUTHORS: small update
1769
1770 2006-03-23  Matthias Clasen  <mclasen@redhat.com>
1771
1772         Support subclasses in RC files.  (#142417, Todd Berman, patch
1773         based on a patch by Benjamin Berg)
1774         
1775         * gtk/gtkrc.h: 
1776         * gtk/gtkrc.c: Support <classname> elements in widget_class paths 
1777         in rc files which match any classes derived from named class.
1778
1779         (_gtk_rc_init): Use the new syntax in the default rc string.
1780
1781         * gtk/gtkbindings.c: Support the new syntax for bindings too.
1782         
1783         * tests/testrc.c: Tests for widget_class path matching
1784
1785 2006-03-23  Carlos Garnacho  <carlosg@gnome.org>
1786
1787         * gtk/gtkdnd.c (gtk_drag_dest_motion): make sure that gdk_drag_event()
1788         is called when track_motion is TRUE to receive drag_motion and
1789         drag_leave events properly.
1790
1791 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
1792
1793         * gtk/gtknotebook.c (gtk_notebook_remove): Emit the ::page-removed
1794         signal after removing the page.  (#335238, Christian Persch)
1795
1796 2006-03-22  Carlos Garnacho  <carlosg@gnome.org>
1797
1798         * gtk/gtkexpander.c: Make it to expand when hovering during DnD
1799
1800 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
1801
1802         Improved DND support for GtkNotebook  (#332991, Carlos Garnacho)
1803         
1804         * gtk/gtk.symbols: 
1805         * gtk/gtkdnd.h: 
1806         * gtk/gtkdnd.c: Add a track_motion flag on GtkDragDest
1807         with getter and setter, for cases where the drag destination
1808         is interested in drag motion events independent of targets.
1809
1810         * gtk/gtksettings.c (gtk_settings_class_init): Add a setting
1811         for the timeout used when expanding during DND.
1812
1813         * gtk/gtknotebook.c: Use the track_motion flag to switch
1814         notebook tabs when hovering over tabs during DND.
1815         
1816 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
1817
1818         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Use fg_gc to
1819         draw the inter-row drop highlight. Also draw the line all the 
1820         way across, and flip it in RTL mode. (#334906, Ian McDonald)
1821
1822 2006-03-22  Johan Dahlin  <jdahlin@async.com.br>
1823
1824         * tests/testtreeview.c: Add a column that demonstrates how to use
1825         the new spinbutton cellrenderer.
1826
1827 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
1828
1829         * tests/prop-editor.c: 
1830         * tests/testtreeview.c: Remove pointless includes of config.h,
1831         to make it easier compilable against system GTK+.
1832
1833 2006-03-22  Michael Natterer  <mitch@imendio.com>
1834
1835         * gtk/gtkentry.c: renamed last-char-timeout to
1836         password-hint-timeout and store all its data in a struct attached
1837         as QData.
1838
1839         * gtk/gtkcellrendererspin.c: fix typo in #include.
1840
1841 2006-03-22  Carlos Garnacho  <carlosg@gnome.org>
1842
1843         * gtk/gtknotebook.c: send a GtkWidget** instead of a GtkNotebookPage*
1844         when doing tabs DnD, this allows DnD interaction with other widgets,
1845         added some docs for this too.
1846         * tests/testnotebookdnd.c: add some code to test it.
1847
1848 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
1849
1850         * gtk/gtk.symbols: 
1851         * gtk/gtkcellrendererspin.h:
1852         * gtk/gtkcellrendererspin.c: Add a cell renderer which 
1853         uses a spinbutton to edit the value of a cell. (#156023,
1854         Daniel Kasak, Lorenzo Gil Sanchez, Carlos Garnacho)
1855
1856         * gtk/gtk.h: 
1857         * gtk/Makefile.am: Glue it in.
1858
1859 2006-03-21  Matthias Clasen  <mclasen@redhat.com>
1860
1861         * tests/testtreeview.c (drag_begin_cb): Test setting up
1862         drag icons for tree dnd.
1863
1864 2006-03-22  Michael Natterer  <mitch@imendio.com>
1865
1866         * gtk/gtkentry.c: applied modified patch from maemo-gtk which
1867         allows the most recently entered character in a hidden entry to be
1868         shown for a configurable period of time. Fixes bug #334560.
1869
1870 2006-03-22  Michael Natterer  <mitch@imendio.com>
1871
1872         * gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): count down
1873         from G_MAXUINT to avoid clashes with application-added DND
1874         targets.
1875
1876         * gtk/gtktextview.c (gtk_text_view_init): set an empty
1877         GtkTargetList on the drag_dest so it is not NULL when a derived
1878         class' init() function is called.
1879
1880         (gtk_text_view_target_list_notify): copy the text buffer's paste
1881         targets into the view's destinstion target list (preserving
1882         application-added DND targets), instead of replacing the view's
1883         target list. Fixes bug #334399.
1884
1885 2006-03-21  Anders Carlsson  <andersca@imendio.com>
1886
1887         * gtk/Makefile.am:
1888         Add new files.
1889         
1890         * gtk/gtkclipboard-quartz.c: Added.
1891         * gtk/gtkdnd-quartz.c: Added.
1892         * gtk/gtkquartz.c: Added.
1893         * gtk/gtkquartz.h: Added.
1894         Add dnd and clipboard implementations.
1895
1896 2006-03-21  Michael Natterer  <mitch@imendio.com>
1897
1898         * gdk/quartz/Makefile.am: removing trailing \ fixes the build.
1899
1900 2006-03-21  Anders Carlsson  <andersca@imendio.com>
1901
1902         * gdk/quartz/gdkgeometry-quartz.c:
1903         (gdk_window_scroll):
1904         Implement gdk_window_scroll.
1905
1906 2006-03-21  Anders Carlsson  <andersca@imendio.com>
1907
1908         * gdk/quartz/GdkQuartzWindow.c:
1909         (drag_operation_to_drag_action):
1910         (drag_action_to_drag_operation):
1911         (update_context_from_dragging_info):
1912         (-[GdkQuartzWindow draggingEntered:]):
1913         (-[GdkQuartzWindow draggingEnded:]):
1914         (-[GdkQuartzWindow draggingExited:]):
1915         (-[GdkQuartzWindow draggingUpdated:]):
1916         (-[GdkQuartzWindow performDragOperation:]):
1917         (-[GdkQuartzWindow wantsPeriodicDraggingUpdates]):
1918         (-[GdkQuartzWindow draggedImage:endedAt:operation:]):
1919         * gdk/quartz/gdkdnd-quartz.c:
1920         (gdk_drag_context_finalize):
1921         (gdk_drag_context_init):
1922         (gdk_drag_context_class_init):
1923         (gdk_drag_begin):
1924         (gdk_drag_status):
1925         Add the GDK part of the DND implementation.
1926
1927         * gdk/quartz/Makefile.am:
1928         Add some missing headers.
1929         
1930         * gdk/quartz/gdkdrawable-quartz.h:
1931         * gdk/quartz/gdkprivate-quartz.h:
1932         * gdk/quartz/gdkquartz.h:
1933         * gdk/quartz/gdkwindow-quartz.c:
1934         (gdk_quartz_window_get_nsview):
1935         New function, for use by the GTK part of the DND implementation
1936
1937 2006-03-21  Anders Carlsson  <andersca@imendio.com>
1938
1939         * gdk/quartz/gdkdrawable-quartz.c:
1940         (gdk_quartz_ref_cairo_surface):
1941         (gdk_quartz_draw_rectangle):
1942         (gdk_quartz_draw_arc):
1943         (gdk_quartz_draw_polygon):
1944         (gdk_quartz_draw_drawable):
1945         (gdk_quartz_draw_segments):
1946         (gdk_quartz_draw_lines):
1947         (gdk_quartz_draw_pixbuf):
1948         (gdk_quartz_draw_image):
1949         (_gdk_quartz_drawable_get_context):
1950         * gdk/quartz/gdkdrawable-quartz.h:
1951         Offset coordinates by 0.5 pixels to get consistant results for both
1952         image contexts and screen contexts.
1953
1954 2006-03-21  Anders Carlsson  <andersca@imendio.com>
1955
1956         * gdk/quartz/GdkQuartzWindow.c 
1957         ([GdkQuartzWindow -windowDidMove:]): Synthesize GDK_CONFIGURE events
1958         when the window position changes.
1959
1960 2006-03-20  Matthias Clasen  <mclasen@redhat.com>
1961
1962         * gtk/gtkdnd.c (gtk_drag_get_cursor): Remove an unused variable.
1963
1964         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): Don't leave
1965         page->tab_label dangling.
1966         (gtk_notebook_real_remove): Use GTK_IN_DESTRUCTION to determine
1967         if we are being called during destruction of the notebook, rather
1968         than maintaining that information as a passed-in parameter.
1969         (gtk_notebook_destroy): Leave the removal of the children
1970         to the container destroy method.  (#319032, Yevgen Muntyan)
1971
1972 2006-03-20  Matthias Clasen  <mclasen@redhat.com>
1973
1974         * gtk/gtkcombobox.c (gtk_combo_box_remove): Use the existing
1975         GTK_IN_DESTRUCTION flag, rather than roll our own.
1976
1977 2006-03-20  Matthias Clasen  <mclasen@redhat.com>
1978         
1979         * gtk/gtk.symbols: 
1980         * gtk/gtkscrolledwindow.h: 
1981         * gtk/gtkscrolledwindow.c: Add a window-placement-set property
1982         and a gtk-scrolled-window-placement setting.  (#157025, Christian
1983         Neumair)
1984
1985 2006-03-20  Matthias Clasen  <mclasen@redhat.com>
1986
1987         * gtk/gtkmain.c (gtk_get_option_group): Make sure gettext
1988         is initialized before using it.  (#335129, Christian Persch)
1989
1990 2006-03-19  Matthias Clasen  <mclasen@redhat.com>
1991
1992         * MAINTAINERS: Add this, at the request of the GNOME sysadmin team.
1993
1994         * AUTHORS: Updates, typo fix
1995
1996         * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Document that
1997         @cell must be one of the renderers of the icon view, warn if 
1998         it is not, and ignore @start_editing if @cell is not set.
1999         (#335001, Emmanuel Rodriguez)
2000
2001 2006-03-16  Matthias Clasen  <mclasen@redhat.com>
2002
2003         * configure.in: Add a missing comma.  (#334774, Peter Breitenlohner)
2004
2005         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) 
2006         (gtk_action_group_add_toggle_actions_full) 
2007         (gtk_action_group_add_radio_actions_full): Check for a stock 
2008         icon, not a stock item, when deciding whether to use stock-id 
2009         or icon-name.  (#334760, Jody Goldberg)
2010
2011         * gtk/gtkimage.c (gtk_image_clear): Update the size of the image, 
2012         by swapping the implementations of gtk_image_clear and
2013         gtk_image_reset.  (#334657)
2014
2015         * README.in: Add a note about GtkNotebook signals.
2016
2017 2006-03-15  Matthias Clasen  <mclasen@redhat.com>
2018
2019         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released) 
2020         (gtk_combo_box_list_key_press): Popdown the list before changing
2021         the active iter, otherwise people will be surprised by the
2022         grabs that are still in place when their ::changed handler
2023         runs. 
2024
2025 2006-03-15  Dom Lachowicz <cinamod@hotmail.com>
2026
2027         * modules/engines/ms-windows/msw_style.c: Override style->realize/
2028         style->unrealize, so that GTK+ doesn't automatically attempt to apply
2029         shading to the GC colors, causing a mismatch with the Win32 native
2030         colors. Problem found by (and suggested solution by) "Cosmic Integer"
2031
2032         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Make expander-size
2033         a bit closer to Microsoft's values (bug 325699, Brad Taylor)
2034         
2035 2006-03-14  Matthias Clasen  <mclasen@redhat.com>
2036
2037         * tests/testcellrenderertext.c: Add test cases for alignment.
2038
2039         * gtk/gtkcellrenderertext.c: Add an alignment property,
2040         and fix some cases where ellipsize_set was being used to
2041         mean "we're ellipsizing" even when ellipsize was set to NONE.  
2042         (#318761, Ross Burton)
2043
2044         * gtk/gtkimcontextsimple.c: Make return and release work again
2045         to commit a hex sequence. Additionally, make escape reset the
2046         im context when in a hex sequence.  (#334423, Behdad Esfahbod)
2047
2048 2006-03-13  Matthias Clasen  <mclasen@redhat.com>
2049
2050         Make actions work with named icons.  (#323484, Jorn Baayen)
2051         
2052         * gtk/gtkactiongroup.c: If the stock-id field of a GtkActionEntry
2053         does not contain a registered stock id, interpret it as an
2054         icon name.
2055
2056         * gtk/gtkaction.c: Add an icon-name property to actions and
2057         use it for icons if a stock-id is not specified.
2058
2059 2006-03-12  Matthias Clasen  <mclasen@redhat.com>
2060
2061         * gtk/gtkwindow.c (gtk_window_compute_configure_request): Don't
2062         for the creation of geometry info here.  (#114533)
2063
2064 2006-03-11  Tor Lillqvist  <tml@novell.com>
2065
2066         * gdk/win32/gdkdrawable-win32.c (draw_polygon): Use Polygon() for
2067         outlined polygons, too. Same idea as in draw_rectangle(): Set pen
2068         to NULL_PEN if drawing a filled polygon, set brush to HOLLOW_BRUSH
2069         if drawing a polygon outline. (#332662)
2070         (gdk_win32_draw_polygon): Corresponding simplification: no need to
2071         add an extra final copy of the starting point.
2072
2073 2006-03-11  Dom Lachowicz <cinamod@hotmail.com>
2074
2075         * modules/engines/ms-windows: Speed up the Windows theme
2076         considerably (#163724, John Ehresman)
2077         Be more careful about setting Pango font descriptions (#333372)
2078         
2079 2006-03-11  Matthias Clasen  <mclasen@redhat.com>
2080
2081         * gtk/gtkrange.c (gtk_range_key_press): Allow to cancel 
2082         a drag with ESC.  (#58389, Søren Sandmann)
2083
2084 2006-03-10  Matthias Clasen  <mclasen@redhat.com>
2085
2086         * gtk/gtkrange.c: Add a style property ::activate_slider that
2087         allows themes to draw the slider active while dragged.  (#311992,
2088         Benjamin Berg)
2089
2090         * gtk/gtkcolorsel.c (gtk_color_selection_init): Fix two labels.
2091
2092         * gtk-engine-check-abi.sh: Add a script to check that theme
2093         engines don't export any extra functions. 
2094
2095 2006-03-10  Matthias Clasen  <mclasen@redhat.com>
2096
2097         * gtk/gtkcolorsel.c (gtk_color_selection_init): Avoid a mnemonic
2098         conflict.  (#163850, Dennis Cranston)
2099
2100         * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Make the behaviour
2101         of the about dialog consistent with other dialogs in gtk. If the
2102         dialog is constructed with gtk_about_dialog_new(), the creator
2103         is reponsible for handling the response by hiding or closing the
2104         dialog. gtk_show_about_dialog() handles it by hiding the dialog.
2105         (#333360, Daniel Drake)
2106
2107         * README.in: Mention this change.
2108
2109 2006-03-10  Matthias Clasen  <mclasen@redhat.com>
2110
2111         Apply a patch from Dennis Cranston to make dialogs more
2112         consistent  (#163850)
2113         
2114         * gtk/gtkcolorsel.c (make_label_spinbutton): Left-align labels.
2115         
2116         * gtk/gtkfontsel.c (gtk_font_selection_init): 
2117         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): 
2118         * gtk/gtkcolorsel.c (gtk_color_selection_init): 
2119         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
2120         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Update the layout
2121         of the dialog to follow HIG recommendations. Also update labels.
2122
2123         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): HIG-compatible 
2124         spacing.
2125         (gtk_message_dialog_font_size_change): Merged into 
2126          gtk_message_dialog_style_set.
2127
2128 2006-03-10  Matthias Clasen  <mclasen@redhat.com>
2129
2130         * gtk/gtkstyle.c: Remove g_return_if_fail() checks
2131         from static functions.
2132
2133 2006-03-10  Federico Mena Quintero  <federico@novell.com>
2134
2135         Make Shift-P and Shift-N activate typeahead in GtkTreeView
2136         (i.e. they are just normal capital letters).  Fixes bug #334098.
2137
2138         * gtk/gtktreeview.c (gtk_tree_view_add_move_binding): Add an
2139         "add_shifted_binding" argument which determines whether we'll add
2140         the same binding with GDK_SHIFT_MASK.
2141         (gtk_tree_view_class_init): Use add_shifted_binding=FALSE for GDK_p
2142         and GDK_n; use TRUE for all the rest.
2143
2144 2006-03-10  Michael Natterer  <mitch@imendio.com>
2145
2146         * gtk/gtkentry.[ch]: applied refactored patch from maemo-gtk that
2147         replaces the INNER_BORDER define by an "inner-border" style
2148         property of type GtkBorder. Additionally, add an "inner-border"
2149         object property plus API which allows to override any theme
2150         border, to allow pixel-perfect positioning of entries for inline
2151         editing. Fixes bug #333922.
2152
2153         * gtk/gtk.symbols: add the new public functions.
2154
2155 2006-03-09  Matthias Clasen  <mclasen@redhat.com>
2156
2157         * gtk/gtkcombobox.c (gtk_combo_box_class_init): Replace the
2158         popup-show and popup-hide signals with a readonly popup-shown
2159         property.  (#162531, Christian Persch)
2160
2161 2006-03-09  Ross Burton  <ross@openedhand.com>
2162
2163         * gtk/gtkwidget.c:
2164         * gtk/gtkrange.c:
2165         * gtk/gtktogglebutton.c:
2166         Turn off prelighting when gtk-touchscreen-mode is enabled (#135666)
2167
2168 Thu Mar  9 14:29:43 2006  Tim Janik  <timj@gtk.org>
2169
2170         * gtk/gtkobject.c (gtk_object_init): move the floating flag from
2171         the GInitiallyUnowned bit to GTK_FLOATING. fixes tests/floatingcheck.
2172         kudos to mitch for debugging this.
2173
2174 2006-03-09  Matthias Clasen <mclasen@redhat.com>
2175
2176         * Makefile.am: Add ChangeLog.pre-2.8 to EXTRA_DIST.
2177
2178 2006-03-09  Tor Lillqvist  <tml@novell.com>
2179
2180         * gtk/gtk.symbols: No gtk_tray_icon_get_type on Win32.
2181
2182 2006-03-08  Carlos Garnacho  <carlosg@gnome.org>
2183
2184         Rename ::tab-added and ::tab-removed signals to ::page-added and
2185         ::page-removed for not conflicting with other tab reordering
2186         implementations. Fixes bug #333743.
2187
2188         Also rename ::tab-reordered to ::page-reordered, and emit it in
2189         gtk_notebook_reorder_child () to make it behave consistently with the
2190         other two signals.
2191
2192         * gtk/gtknotebook.c (gtk_notebook_class_init): rename signals.
2193         (gtk_notebook_reorder_tab)
2194         (gtk_notebook_button_release)
2195         (gtk_notebook_remove)
2196         (gtk_notebook_real_insert_page): emit respectively renamed signals
2197         (gtk_notebook_reorder_child): also emit ::page-reordered here
2198
2199         * tests/testnotebookdnd.c: use renamed signals
2200
2201 2006-03-08  Michael Natterer  <mitch@imendio.com>
2202
2203         * gdk/gdkscreen.h
2204         * gdk/x11/gdkscreen-x11.c
2205         * gdk/gdk.symbols: added gdk_screen_get_active_window() and
2206         gdk_screen_get_window_stack() (patch from maemo-gtk).
2207         Fixes bug #320881.
2208
2209         * gdk/directfb/gdkscreen-directfb.c
2210         * gdk/quartz/gdkscreen-quartz.c
2211         * gdk/win32/gdkscreen-win32.c: added the functions as stubs.
2212
2213 2006-03-08  Michael Natterer  <mitch@imendio.com>
2214
2215         * tests/prop-editor.c (unichar_changed): zero-initialize the
2216         GValue before calling g_value_init().
2217
2218 2006-03-08  Michael Natterer  <mitch@imendio.com>
2219
2220         * gtk/gtkentry.c (gtk_entry_adjust_scroll): make sure that the
2221         text_area_width is always >= 0. Fixes bug #316712 (Dan Winship).
2222
2223 2006-03-07  Federico Mena Quintero  <federico@novell.com>
2224
2225         Cancel drags when the grabs get broken.  Fixes bug #333056:
2226
2227         * gtk/gtkdnd.c (gtk_drag_selection_received): The time argument is
2228         a guint, not guint32.
2229         (gtk_drag_source_event_cb): Return gboolean, not gint.
2230         (gtk_drag_anim_timeout): Likewise.
2231         (gtk_drag_motion_cb): Likewise.
2232         (gtk_drag_key_cb): Likewise.
2233         (gtk_drag_button_release_cb): Likewise.
2234         (gtk_drag_abort_timeout): Likewise.
2235         (gtk_drag_begin_internal): Connect to "grab-broken-event" on the
2236         ipc_widget.
2237         (gtk_drag_source_info_destroy): Disconnect from the
2238         "grab-broken-event" callback.
2239         (gtk_drag_end): Likewise.
2240         (gtk_drag_grab_broken_event_cb): New callback.  We cancel the drag
2241         if the grab was broken and not regrabbed by the DnD code.
2242
2243 2006-03-07  Federico Mena Quintero  <federico@novell.com>
2244
2245         * gtk/gtkfilechooserdefault.c (shortcuts_button_press_event_cb):
2246         Hack to let the treeview's button-press-event handler run before
2247         ours.  This lets the selection be updated before we pop up a
2248         context menu.
2249
2250 Tue Mar  7 17:16:34 2006  Tim Janik  <timj@gtk.org>
2251
2252         * configure.in: depend on glib-2.10.1.
2253
2254         * gtk/gtkobject.c: fixed up messing with non-GtkObject floating flags.
2255         this requires glib-2.10.1.
2256
2257 2006-03-07  Michael Natterer  <mitch@imendio.com>
2258
2259         Add infrastructure for copy/paste and DND of rich text for
2260         GtkTextBuffer. Fixes bug #324177.
2261
2262         * gtk/gtktextbufferrichtext.[ch]: new files implementing a
2263         per-buffer registry of rich text formats.
2264
2265         * gtk/gtk.h: #include gtktextbufferrichtext.h
2266
2267         * gtk/gtktextbufferserialize.[ch]: new files implementing an
2268         internal serialization format that can handle all of a text
2269         buffer's tags and pixbufs. It's not useful for anything except
2270         tranfer between instances of GtkTextBuffer (Anders Carlsson).
2271
2272         * gtk/Makefile.am: build the new files.
2273
2274         * gtk/gtkclipboard.[ch]: added convenience APIs for rich text,
2275         just as they exist for plain text and pixbufs.
2276
2277         * gtk/gtkselection.[ch]: added rich text convenience APIs here
2278         too.  Return the target list from gtk_target_list_ref(). Register
2279         GtkTargetList as boxed type. Added
2280         gtk_target_table_new_from_list() and gtk_target_table_free(),
2281         which make converting between GtkTargetList and arrays of
2282         GtkTargetEntry considerably easier.
2283
2284         * gtk/gtktextutil.[ch]: added _gtk_text_util_create_rich_drag_icon()
2285         which creates a fancy rich text icon (Matthias Clasen).
2286
2287         * gtk/gtktextbuffer.[ch]: use all the new stuff above and
2288         implement copy and paste of rich text. Added APIs for getting the
2289         target lists used for copy and paste. Added public enum
2290         GtkTextBufferTargetInfo which contains the "info" IDs associated
2291         with the entries of the target lists.
2292
2293         * gtk/gtktextview.c: use the new rich text APIs and
2294         GtkTextBuffer's new target list API to enable DND of rich text
2295         chunks.
2296
2297         * gtk/gtk.symbols: export all the new symbols added.
2298
2299         * tests/testtext.c: added rich text testing stuff.
2300
2301 2006-03-06  Matthias Clasen  <mclasen@redhat.com>
2302
2303         * gtk/gtktextview.c (text_window_invalidate_cursors): Take
2304         cursor width into account when calculating the area to 
2305         be invalidated.  (#333377, #323401 Steve Frécinaux)
2306
2307         * gtk/gtkmain.c (post_parse_hook): Set error when returning
2308         FALSE.  (#333268, Paolo Maggi, Christian Persch)
2309         
2310         * gtk/gtkpixmap.c (gtk_pixmap_set): Check that the pixmap
2311         has the right depth.  (#333363, Ed Catmur)
2312
2313 2006-03-05  Matthias Clasen  <mclasen@redhat.com>
2314
2315         * gtk/gtkiconview.c (adjust_wrap_width): Apply some
2316         arbitrary lower limit for the guessed wrap width. (#332466,
2317         Donald Straney)
2318
2319 2006-03-05  Matthias Clasen  <mclasen@redhat.com>
2320
2321         Fix handling of image-only buttons.  (#332985, Kalle 
2322         Vahlmann, #333555)
2323         
2324         * gtk/gtkbutton.c (gtk_button_construct_child): Don't
2325         return early if there an image to show.
2326         (show_image): Always return TRUE if there is no text.
2327
2328 2006-03-04  Matthias Clasen  <mclasen@redhat.com>
2329
2330         * gdk/x11/gdkinput-x11 (gdk_input_translate_coordinates):
2331         Adjust the handling of min values for the x and y axes of 
2332         extended input devices  (#324562, #142536, Denis Auroux and 
2333         Robert Ã–gren)
2334
2335         * gtk/gtkexpander.c (gtk_expander_paint_focus): Position
2336         the focus rectangle correctly in RTL mode.  (#333291,
2337         Benjamin Berg)
2338
2339 2006-03-03  Tor Lillqvist  <tml@novell.com>
2340
2341         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_commit_char)
2342         (gtk_im_context_simple_reset): Avoid emitting superfluous
2343         preedit_changed signals. Thanks to Matthias. (#319407)
2344
2345 2006-03-03  Michael Natterer  <mitch@imendio.com>
2346
2347         Applied modified patch from maemo-gtk which makes separators more
2348         themeable. Fixes bug #332022.
2349
2350         * gtk/gtkwidget.c: added style properties "wide-separators",
2351         "separator-width" and "separator-height".
2352
2353         * gtk/gtkhseparator.c
2354         * gtk/gtkvseparator.c
2355         * gtk/gtkmenuitem.c
2356         * gtk/gtktoolbar.c: honor the new settings and paint separators
2357         using gtk_paint_box() if wide-separators is true.
2358
2359 2006-03-02  Dom Lachowicz <cinamod@hotmail.com>
2360
2361         * modules/engines/ms-windows/msw_style.c: Fix combobox theming
2362         regression noted in bug 321301
2363         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
2364         
2365 2006-03-02  Matthias Clasen  <mclasen@redhat.com>
2366
2367         * gtk/gtkiconview.c (gtk_icon_view_layout) 
2368         (gtk_icon_view_row_inserted, gtk_icon_view_scroll_to_path): 
2369         Make scroll_to_path work for newly inserted items, by delaying
2370         the scroll until layout is done.  (#332923, Cory Dodt)
2371
2372         * gtk/gtkcolorbutton.c (render): Use GTK_WIDGET_IS_SENSITIVE,
2373         not GTK_WIDGET_SENSITIVE.  (#333133, Christian Persch)
2374
2375 2006-03-02  Ross Burton  <ross@openedhand.com>
2376
2377         * gtk/gtktooltips.c:
2378         Disable tooltips if gtk-touchscreen-mode is activated (#315112).
2379
2380 2006-03-01  Kristian Rietveld  <kris@imendio.com>
2381
2382         * gtk/gtktreeselection.c (row_is_selectable): rename to
2383         _gtk_tree_selection_row_is_selectable and export internally,
2384         (gtk_tree_selection_real_select_node): changed so it is always
2385         possible to unselect insensitive nodes, changed the logic a bit to
2386         be more clear.
2387
2388         * gtk/gtktreeprivate.h: add _gtk_tree_selection_row_is_selectable.
2389
2390         * gtk/gtktreeview.c (gtk_tree_view_row_changed): Unselect a row if
2391         it became insensitive.
2392
2393 2006-02-27  Federico Mena Quintero  <federico@novell.com>
2394
2395         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Check that
2396         the fontsel has a screen assigned before doing anything.  This
2397         will at least warn the caller of what is wrong, since we only
2398         populate the family_list until we get a screen.  Also, put the
2399         reference docs here.  Fixes bug #332756.
2400         (gtk_font_selection_dialog_get_font_name): Document this here.
2401         (gtk_font_selection_get_font_name): Document this here; mention
2402         that the font names get normalized, so the result of this function
2403         may not be the same as what you set with
2404         gtk_font_selection_set_font_name().
2405
2406 2006-02-27  Matthias Clasen  <mclasen@redhat.com>
2407
2408         * gtk/gtk.symbols:
2409         * gtk/gtktrayicon-x11.c: Fix symbol lists for make check.
2410
2411 2006-02-27  Michael Natterer  <mitch@imendio.com>
2412
2413         * gdk/x11/gdksettings.c: map "gtk-touchscreen-mode" to the
2414         "Gtk/TouchscreenMode" XSettings property, remove trailing
2415         whitespace.
2416
2417         * gdk/x11/checksettings.c: #include <string.h> and sprinkled some
2418         newlines.
2419
2420 Mon Feb 27 14:52:50 2006  Tim Janik  <timj@imendio.com>
2421
2422         * gdkevents-x11.c:
2423         * gdksettings.c: moved and renamed the gdk_settings_names and 
2424         gdk_settings_map.
2425
2426         * gdk/x11/checksettings.c: test program for the gdk_settings_map array.
2427
2428         * gdk/x11/Makefile.am: run checksettings as part of make check.
2429
2430 2006-02-27  Matthias Clasen  <mclasen@redhat.com>
2431
2432         * gtk/gtkdnd.c (gtk_drag_get_cursor): Comment out some unused
2433         code, and fix the reference point of composited drag cursors.
2434         (#320132, Christian Neumair)
2435
2436 Sun Feb 26 10:24:10 PST 2006  Michael Emmel  <mike.emmel@gmail.com>
2437         
2438         *gdk/directfb/README
2439         Updated README to remove old build instructions
2440
2441 Sat Feb 25 10:35:23 PST 2006  Michael Emmel  <mike.emmel@gmail.com>
2442         
2443         *gdk/directfb/gdkdisplay-directfb.c
2444         *gdk/directfb/gdkwindow-directfb.c
2445         Added stubs for shape window functions to fix compile problems
2446
2447 2006-02-24  Federico Mena Quintero  <federico@novell.com>
2448
2449         * gtk/gtkfilechooserdefault.c (shortcuts_list_create): Make the
2450         column header visible, and make it be "_Places".  Changed the
2451         accessible object name to Places as well.  Fixes bug #331306.
2452         (file_pane_create): Do not create the path bar and "create folder"
2453         button here...
2454         (browse_widgets_create): ... but create them here instead.  This
2455         moves the path bar to be above both the hpaned, giving it the full
2456         width of the dialog.  Fixes bug #327733.
2457
2458 Thu Feb 23 13:28:21 2006  Tim Janik  <timj@imendio.com>
2459
2460         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): remove unconditional
2461         warnings about missing X locale support. Gdk properly handles this
2462         situation anyway.
2463
2464 Fri Feb 17 14:20:29 2006  Tim Janik  <timj@imendio.com>
2465
2466         * gtk/gtktreemodel.h: 
2467         * gtk/gtktextbtree.h: added G_GNUC_WARN_UNUSED_RESULT warnings for
2468         iterator functions, to avoid invalid iterators go unnoticed,
2469         suggested by Markku Vire <markku.vire@movial.fi>.
2470
2471 2006-02-23  Matthias Clasen  <mclasen@redhat.com>
2472
2473         * tests/Makefile.am: 
2474         * tests/testnotebookdnd.c: Add notebook DND tests.
2475
2476         * gtk/gtknotebook.h: Add a reorder_tab keynav signal and an
2477         insert_page vfunc to GtkNotebook.
2478
2479         * gtk/gtk.symbols:
2480         * gtk/gtknotebook.c: Support notebook DND. New API includes
2481         gtk_notebook_set_window_creation_hook, 
2482         gtk_notebook_[gs]et_group_id,
2483         gtk_notebook_[gs]et_tab_reorderable, 
2484         gtk_notebook_[gs]et_tab_detachable (#73240, Carlos Garnacho)
2485
2486 2006-02-23  Matthias Clasen  <mclasen@redhat.com>
2487
2488         * gtk/gtktextiter.c: Fix macro declaration
2489
2490         * gtk/gtkaboutdialog.c: Remove an accidentally included function.
2491
2492 2006-02-22  Matthias Clasen  <mclasen@redhat.com>
2493
2494         * gtk/gtktextbtree.c: 
2495         * gtk/gtktextiter.c: Minor optimizations.  (#332059, Arnaud Charlet)
2496
2497         * gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
2498         here, when changing the value of this property.  (#331651)
2499
2500         * gtk/gtknotebook.c: Apply a patch by Paolo Borelli to
2501         make the tab menu keynavigatable.  (#331440)
2502
2503 2006-02-22  Matthias Clasen  <mclasen@redhat.com>
2504
2505         * gtk/gtkaboutdialog.c: Change Close buttons to GTK_RESPONSE_CANCEL
2506         so Escape works. (#331940, Daniel Drake)
2507
2508 2006-02-22  Michael Natterer  <mitch@imendio.com>
2509
2510         * gtk/gtksettings.c: added boolean property gtk-touchscreen-mode,
2511         which essentially means "there are no motion notify events", so
2512         widgets can't use the pointer hovering them for anything.
2513
2514         * gtk/gtkmenu.c: if gtk-touchscreen-mode is TRUE, scroll menus
2515         when clicking the scroll arrows, since hovering goes undetected.
2516         Fixes bug #323028.
2517
2518         Added boolean style property "double-arrows" which always makes
2519         both scroll arrows visible when the menu is too long.
2520         For pushed-in popup menus, both arrows are always shown
2521         (regardless of double-arrows), in order to fix user confusion
2522         about the blank area. Fixes bug #129463.
2523
2524 2006-02-21  Kristian Rietveld  <kris@imendio.com>
2525
2526         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
2527         Make sure we always update the virtual root, also when ->priv->root
2528         is still NULL.  (Markku Vire)
2529
2530 2006-02-21  Anders Carlsson  <andersca@imendio.com>
2531
2532         * gdk/quartz/gdkselection-quartz.c:
2533         (make_list):
2534         (gdk_text_property_to_utf8_list_for_display):
2535         Add these from the win32 backend.
2536
2537 2006-02-20  Matthias Clasen  <mclasen@redhat.com>
2538
2539         * gtk/gtknotebook.c: Properly update internal state
2540         when child visibility changes.  (#331785, Sebastien Bacher)
2541
2542         * gdk/gdkgc.c (_gdk_gc_update_context): Obtain the
2543         background color from the gc when it is needed.  (#331820)
2544
2545 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
2546
2547         * gdk/gdkgc.c (_gdk_gc_update_context): Add a gc_changed
2548         argument, and avoid setting the clip region if the gc
2549         has not changed. 
2550
2551         * gdk/gdkgc.c: Update all callers.
2552
2553         * gdk/gdkpango.c (get_cairo_context): Avoid updating the
2554         context if nothing changed.
2555
2556 2006-02-20  Anders Carlsson  <andersca@imendio.com>
2557
2558         * gdk/quartz/gdkdisplay-quartz.c:
2559         (gdk_display_supports_shapes):
2560         (gdk_display_supports_input_shapes):
2561         * gdk/quartz/gdkwindow-quartz.c:
2562         (gdk_display_warp_pointer):
2563         (gdk_window_input_shape_combine_mask):
2564         (gdk_window_input_shape_combine_region):
2565         (gdk_window_set_child_input_shapes):
2566         (gdk_window_set_accept_focus):
2567         (gdk_window_merge_child_input_shapes):
2568         Add stubs for input shape functions.
2569
2570 2006-02-20  Anders Carlsson  <andersca@imendio.com>
2571
2572         * gdk/quartz/gdkevents-quartz.c:
2573         (get_keyboard_modifiers_from_nsevent):
2574         Fix typo so ctrl gets passed on to the gdk event.
2575         
2576         * gdk/quartz/gdkproperty-quartz.c:
2577         (gdk_atom_name):
2578         g_strdup the atom name.
2579
2580 2006-02-20  Tor Lillqvist  <tml@novell.com>
2581
2582         * gdk/win32/gdkdisplay-win32.c (gdk_display_supports_shapes):
2583         New function, return TRUE.
2584         (gdk_display_supports_input_shapes): New function, return FALSE.
2585
2586         * gdk/win32/gdkwindow-win32.c (do_shape_combine_region): New
2587         function. Factor out code from gdk_window_shape_combine_mask().
2588         (gdk_window_shape_combine_region): Actually do something. Convert
2589         region to a HRGN and call do_shape_combine_region().
2590         (gdk_window_input_shape_combine_mask)
2591         (gdk_window_input_shape_combine_region)
2592         (gdk_window_set_child_input_shapes)
2593         (gdk_window_merge_child_input_shapes): New functions, dummy
2594         implementations.
2595
2596 2006-02-20  Michael Natterer  <mitch@imendio.com>
2597
2598         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): adding boolean
2599         have_shapes and have_input_shapes members fixes the build.
2600
2601 2006-02-20  Tor Lillqvist  <tml@novell.com>
2602
2603         * gdk/win32/gdkfont-win32.c: Replace all calls to g_strcasecmp()
2604         with g_ascii_strcasecmp().
2605
2606 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
2607
2608         Support input shapes:  (#331070)
2609         
2610         * gdk/gdk.symbols: 
2611         * gdk/gdkdisplay.h: 
2612         * gdk/gdkwindow.h: 
2613         * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_shapes) 
2614         (gdk_display_supports_input_shapes): Functions to determine
2615         if a display supports shaped windows or input shapes.
2616
2617         * gdk/x11/gdkwindow-x11.c (gdk_window_input_shape_combine_region): 
2618         (gdk_window_input_shape_combine_mask): 
2619         (gdk_window_set_child_input_shapes): 
2620         (gdk_window_merge_child_input_shapes): Input shape versions
2621         of the window shape API.
2622
2623         * gtk/gtk.symbols: 
2624         * gtk/gtkwidget.h: 
2625         * gtk/gtkwidget.c (gtk_widget_input_shape_combine_mask): 
2626         New function to set an input shape on a widget.
2627
2628 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
2629
2630         * gtk/gtklinkbutton.c (gtk_link_button_class_init): Fix
2631         a cast.
2632
2633 2006-02-17  Matthias Clasen  <mclasen@redhat.com>
2634
2635         DND keynav support:
2636         
2637         * gtk/gtkdnd.c (gtk_drag_update_idle): Protect against 
2638         info->last_event being NULL.
2639         (gtk_drag_key_cb): Handle arrow keys to move the drag icon
2640         and space or enter to drop.
2641
2642 2006-02-17  Matthias Clasen  <mclasen@redhat.com>
2643
2644         * gdk/gdkregion-generic.c (gdk_region_union_with_rect):
2645         Be robust and reject rectangles with negative width or
2646         height.  (#331467, Benjamin Berg)
2647
2648
2649 2006-02-17  Kristian Rietveld  <kris@imendio.com>
2650
2651         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
2652         Only update the virtual root if the child path is an ancestor
2653         of the virtual root.  (Patch from Markku Vire).
2654
2655 2006-02-16  Federico Mena Quintero  <federico@novell.com>
2656
2657         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_map): Call
2658         ::initial_focus() on the child before calling ::map() on our
2659         parent class.  This will prevent the shortcuts treeview from
2660         highlighting its first row as a result of getting assigned focus
2661         by gtk_dialog_map().
2662
2663 2006-02-14  Matthias Clasen  <mclasen@redhat.com>
2664
2665         * gtk/gtkwidget.c (gtk_widget_send_expose): Remove redundant
2666         check.  Pointed out by Bodo-Merle Sandor.
2667
2668         * gtk/gtkcolorbutton.c (gtk_color_button_[un]realize):
2669         Remove unnecessary checks.  
2670
2671 2006-02-12  Matthias Clasen  <mclasen@redhat.com>
2672
2673         * gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working
2674         examples in the docs.  (#330944, John Spray)
2675
2676 2006-02-10  Matthias Clasen  <mclasen@redhat.com>
2677         
2678         * gtk/gtkiconview.c (gtk_icon_view_get_item_at_coords): Fix
2679         row_spacing/column_spacing confusion.  (#330732, Donald Straney)
2680
2681 2006-02-10  Matthias Clasen  <mclasen@redhat.com>
2682
2683         * gtk/gtkstyle.c: Add some docs. (#330073, Mart Raudsepp)
2684
2685         * gtk/gtkentrycompletion.c (gtk_entry_completion_match_selected): 
2686         Guard against NULL.  (#330177, Raphael Slinckx)
2687
2688 2006-02-10  Murray Cumming  <murrayc@murrayc.com>
2689
2690         * docs/reference/gtk/tmpl/gtkcomboboxentry.sgml: Mention that 
2691         the changed signal is emitted when typing - not just when 
2692         selecting from the list. Suggest use of GtkEntry::action to 
2693         etect end of typing.
2694          gtk/gtkcombobox.c: (gtk_combo_box_class_init): changed signal 
2695         ocumentation: Mention that the GtkComboBoxEntry emits it when 
2696         he users types, not just when he selects from the list.
2697
2698 2006-02-10  Murray Cumming  <murrayc@murrayc.com
2699
2700         * gtk/gtkassistant.h: Correct the declaration of the prepare 
2701         default signal handler to match its registration and use.
2702
2703 2006-02-09  Ross Burton  <ross@burtonini.com>
2704
2705         * gtk/gtkfontbutton.c:
2706         Work out the font size in floating point, and display the font
2707         size with %g instead of %d (#317590)
2708
2709 2006-02-09  Tor Lillqvist  <tml@novell.com>
2710
2711         * gdk/win32/gdkevents-win32.c (gdk_event_translate)
2712         <WM_MOUSELEAVE>: If we don't know where we went, and have
2713         generated a leave event, set current_window to the root
2714         window. This assures we will generate proper enter and leave
2715         events for popup windows. (#325521)
2716
2717 2006-02-08  John Ehresman  <jpe@wingware.com>
2718
2719         * gdk/win32/gdkevents-win32.c (gdk_event_translate)
2720         <WM_MOUSEACTIVATE>
2721         * gdk/win32/gdkwindow-win32.c (show_window_internal)
2722         (gdk_window_raise): Call SetWindowPos() instead of
2723         SetForegroundWindow() or BringWindowToTop() if the window
2724         shouldn't accept focus. (#327375)
2725         
2726 2006-02-08  John Ehresman  <jpe@wingware.com>
2727
2728         * gdk/win32/gdkwindow-win32.c: Let gdk_window_set_decorations()
2729         take precedence over anything derived from hints. Restructure
2730         related code and logic, add some new helper functions. (#327217)
2731
2732 2006-02-08  Matthias Clasen  <mclasen@redhat.com>
2733
2734         * gtk/gtkfilechooserbutton.c: Don't put relevant callss
2735         in g_assert().  (#329876, Kristian Rietveld)
2736
2737 2006-02-08  Tor Lillqvist  <tml@novell.com>
2738
2739         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab)
2740         (gdk_display_pointer_ungrab, gdk_keyboard_grab)
2741         (gdk_display_keyboard_ungrab): Consistenly use assign_object()
2742         when assigning GdkWindow pointers so that the ref counting doesn't
2743         get off whack.
2744
2745         (handle_stuff_while_moving_or_resizing): Don't use deprecated API.
2746
2747         (gdk_event_translate) <WM_MOUSEMOVE>: When the pointer is grabbed
2748         with owner_events FALSE, generate enter and leave events only for
2749         the grab window. (#321054)
2750
2751 2006-02-08  Kristian Rietveld  <kris@imendio.com>
2752
2753         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_ref_path),
2754         (gtk_tree_model_filter_unref_path): free temporary paths after
2755         usage (patch from maemo-gtk),
2756         (gtk_tree_model_filter_clear_cache): fix little typo in the docs
2757         (patch from maemo-gtk).
2758
2759         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): remove
2760         stale FIXME.
2761
2762 2006-02-08  Matthias Clasen  <mclasen@redhat.com>
2763
2764         * gtk/gtkfilesystem.c (gtk_file_info_copy): Copy the display_key
2765         as well.  (#330389, Markku Vire)
2766
2767 2006-02-08  Tor Lillqvist  <tml@novell.com>
2768
2769         * gtk-zip.sh.in: Drop the timestamp from the zipfile names.
2770
2771 2006-02-07  Sven Neumann  <sven@gimp.org>
2772
2773         * gdk/directfb/AUTHORS: updated mine and Dok's email address.
2774
2775 2006-02-06  Kristian Rietveld  <kris@gtk.org>
2776
2777         * gtk/gtktreeview.c (gtk_tree_view_get_search_entry): fix compiler
2778         warning.
2779
2780 2006-02-05  Dom Lachowicz <cinamod@hotmail.com>
2781
2782         * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Bug #330022
2783         Wrong pixel values are computed when color = 0xFF and alpha = 0xFF
2784         
2785 2006-02-04  Michael Emmel  <mike.emmel@gmail.com>
2786         Added new directfb backend located in gdk/directfb
2787         plus patches to compile new backend
2788         compile with --with-gdktarget=directfb
2789
2790 2006-02-03  Federico Mena Quintero  <federico@ximian.com>
2791
2792         Work around https://bugs.freedesktop.org/show_bug.cgi?id=4320,
2793         which used to be our own
2794         http://bugzilla.gnome.org/show_bug.cgi?id=314616.  If one uses a
2795         pixmap for a pattern in Cairo, and sets the pattern to
2796         CAIRO_EXTEND_REPEAT; and if the destination surface is also a
2797         pixmap, Cairo does a slow copy instead of using XCopyArea().  So,
2798         we use the same code that we used in GTK+ 2.6 (pre-cairo), by
2799         filling the double-buffer pixmap with a tiled GC and
2800         XFillRectangle().
2801
2802         * gdk/gdkwindow.c (BackingRectMethod): New structure with a
2803         cairo_t and a GdkGC field.  Depending on which of these fields
2804         gets filled in, we'll use Cairo or GDK to clear the double-buffer
2805         pixmap when painting a window.
2806         (setup_backing_rect_method): Fill a BackingRectMethod as
2807         appropriate, depending on the window's configuration and our
2808         knowledge of whether Cairo is fast or slow when doing repeating
2809         patterns.
2810         (gdk_window_clear_backing_rect): Call
2811         setup_backing_rect_method().  Depending on what it returns, use
2812         Cairo to clear the double-buffer pixmap, or plain GDK.
2813
2814 2006-02-03  Matthias Clasen  <mclasen@redhat.com>
2815
2816         * gtk/gtklabel.c (get_layout_location): Fix handling
2817         of padding in RTL.  (#329099, Hooman Mesgary) 
2818
2819 2006-02-02  Matthias Clasen  <mclasen@redhat.com>
2820
2821         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display):
2822         Make drops on the root window work again.  (#145243, Andrew S. Dixon)
2823
2824 2006-02-01  Matthias Clasen  <mclasen@redhat.com>
2825
2826         * gtk/gtkwidget.c (gtk_widget_class_init): Wrap dnd signal
2827         docs to 80 columns.
2828
2829 2006-01-31  Matthias Clasen  <mclasen@redhat.com>
2830
2831         * autogen.sh: Touch README and INSTALL here to pacify 
2832         automake.  (#329124, Kjartan Maraas, Tim Janik)
2833
2834 2006-01-31  Matthias Clasen  <mclasen@redhat.com>
2835
2836         * gtk/gtk.symbols:
2837         * gtk/gtkassistant.h: 
2838         * gtk/gtkassistant.c: Actually implement visibility handling,
2839         and add gtk_assistant_update_buttons_state.
2840
2841         * tests/testassistant.c: Test visibility handling.
2842
2843 2006-01-31  Kristian Rietveld  <kris@imendio.com>
2844
2845         * gtk/gtkstyle.c (gtk_default_draw_flat_box): Add support for row
2846         hinting for the selected state.
2847
2848 2006-01-30  Matthias Clasen  <mclasen@redhat.com>
2849
2850         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
2851         Make sure the tree view is realized, since we grab the
2852         focus to it.  (#329144, Wouter Bolsterlee)
2853
2854         * gtk/gtkspinbutton.h: 
2855         * gtk/gtkspinbutton.c: Add a wrapped signal.  (#322933,
2856         Carlos Garnacho Parro)
2857
2858         * gtk/gtkassistant.c: More generous spacing. (#328082,
2859         Christian Persch, patch by Carlos Garnacho)
2860         
2861         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_set_property): 
2862         Use the setter for active.  (#329208, Guillaume Cottenceau)
2863
2864         * docs/tools/widgets.c (get_all_widgets): Add GtkLinkButton
2865
2866         * gtk/gtkassistant.c (gtk_assistant_init): Move the
2867         last button to the left where it does not affect
2868         the positioning of forward/back.
2869
2870 2006-01-29  Matthias Clasen  <mclasen@redhat.com>
2871
2872         More GtkAssistant work, by Carlos Garnacho.
2873         
2874         * tests/testassistant.c: Additions.
2875
2876         * gtk/gtkassistant.c: Handle page visibility, other 
2877         small fixes.
2878
2879         * docs/tools/widgets.c: Add GtkAssistant.
2880
2881 2006-01-28  Behdad Esfahbod  <behdad@gnome.org>
2882
2883         * configure.in: If major.minor of required and available glib versions
2884         are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617)
2885
2886         * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
2887
2888 2006-01-28  Dom Lachowicz <cinamod@hotmail.com>
2889
2890         * modules/engines/ms-windows/msw-style.c: Re-sync with gtk-wimp
2891         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
2892         
2893 2006-01-28  Matthias Clasen  <mclasen@redhat.com>
2894
2895         * gtk/gtk.symbols: 
2896         * gtk/gtklinkbutton.h: 
2897         * gtk/gtklinkbutton.c: Allow to set a global hook function
2898         thats called whenever a link button is clicked.
2899
2900         More work on GtkAssistant by Carlos Garnacho:
2901         
2902         * demos/gtk-demo/Makefile.am: 
2903         * demos/gtk-demo/assistant.c: Add a  GtkAssistant demo.
2904
2905         * gtk/gtkassistant.c: Handle focus, several small fixes to the
2906         flow computations.
2907
2908 2006-01-27  Federico Mena Quintero  <federico@ximian.com>
2909
2910         Fixes bug #328820:
2911
2912         * gtk/gtkfilechooserdefault.c
2913         (gtk_file_chooser_default_class_init): Make GDK_KP_Divide pop up
2914         the location dialog populated to "/".
2915         (tree_view_keybinding_cb): Likewise.
2916         (trap_activate_cb): Likewise.
2917
2918 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
2919
2920         * gtk/gtkcalendar.c (gtk_calendar_size_request): Use translated format
2921         strings for L10n in size calculation too.
2922
2923         * gtk/gtkcalendar.c (calendar_paint_week_numbers): Expand buffer to
2924         accomodate localized digits.
2925
2926 2006-01-26  Matthias Clasen  <mclasen@redhat.com>
2927
2928         * tests/prop-editor.c: Introspect child properties. too.
2929
2930 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
2931
2932         * gtk/gtkcalendar.c (calendar_paint_week_numbers, calendar_paint_day):
2933         Use contexed translated strings calendar:week:digits|%d and
2934         calendar:day:digits|%d to let translators choose localized digits for
2935         week and day numbers. (bug #317171, Hamed Malek)
2936
2937 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
2938
2939         * gtk/gtklabel.c (get_layout_location): Use logical extents of the
2940         layout instead of ink extents.  According to Pango docs, that's what
2941         should be used for placement.  Moreover, simply use
2942         pango_layout_get_pixel_size instead of getting the extents and
2943         dividing ourselves.
2944
2945 2006-01-25  Matthias Clasen  <mclasen@redhat.com>
2946
2947         * gtk/gtkentrycompletion.c: 
2948         * gtk/gtkentry.c: Be more careful when blocking signals. 
2949
2950         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): Only
2951         set the cursor size if it is != 0.
2952
2953         * gtk/gtksettings.c (gtk_settings_class_init): Change the default value
2954         of gtk-cursor-theme-size to 0, meaning "use default".
2955
2956 2006-01-24  Kristian Rietveld  <kris@gtk.org>
2957
2958         #322591, Jonathan Blandford.
2959
2960         * gtk/gtktreeview.[ch] (gtk_tree_view_get_search_entry),
2961         (gtk_tree_view_set_search_entry),
2962         (gtk_tree_view_get_search_position_func),
2963         (gtk_tree_view_set_search_position_func): New functions,
2964         and small adaptions to the tree view code to allow for setting
2965         the entry and search position function.
2966
2967         * gtk/gtktreeprivate.h: Removed GtkTreeViewSearchDialogPositionFunc
2968         typedef, which is now in gtktreeview.h as
2969         GtkTreeViewSearchPositionFunc.  Add/update fields.
2970
2971         * gtk/gtk.symbols: Add new functions.
2972
2973         * tests/testtreesort.c: Add a little test for _set_search_entry().
2974
2975 2006-01-23  Matthias Clasen  <mclasen@redhat.com>
2976
2977         Add GtkLinkButton, a port of GnomeHRef.  (#314808, Emmanuele Bassi)
2978         
2979         * gtk/gtklinkbutton.h: 
2980         * gtk/gtklinkbutton.c: New files.
2981
2982         * gtk/gtk.h:
2983         * gtk/gtk.symbols: 
2984         * gtk/Makefile.am: Glue.
2985
2986         * gtk/gtkaboutdialog.c: Use GtkLinkButton.
2987         
2988         * gtk/gtkwidget.c: Add link-color and visited-link-color style
2989         properties.  (#113649, Leena Gunda)
2990
2991         * gtk/gtkaboutdialog.c: Use the new style properties here instead
2992         of the about dialogs own link-color property. 
2993
2994 2006-01-23  Kristian Rietveld  <kris@gtk.org>
2995
2996         * gtk/gtktreemodel.c (gtk_tree_model_base_init): don't copy
2997         tree paths when emitting signals. (#325041, Matthias Clasen).
2998
2999 2006-01-23  Behdad Esfahbod  <behdad@gnome.org>
3000
3001         * gtk/gtklabel.c (get_layout_location): Fix misalignment of RTL
3002         text in ellipsized GtkLabel: use layout width if set, otherwise
3003         fallback to ink extents width. (#322042)
3004
3005 2006-01-23  Matthias Clasen  <mclasen@redhat.com>
3006
3007         * gtk/gtkassistant.c (compute_last_button_state): Only show the
3008         last button if we can jump to the end. 
3009         (gtk_assistant_init): Make the spacing and button order more
3010         HIG compliant.
3011
3012         Fix drawing issues in progress bars.  (#328081, Christian Persch)
3013         
3014         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Always
3015         request enough space. 
3016         (gtk_progress_bar_paint_activity) 
3017         (gtk_progress_bar_paint_continuous) 
3018         (gtk_progress_bar_paint_discrete): Clip when drawing the bar.
3019
3020 2006-01-23  Michael Natterer  <mitch@imendio.com>
3021
3022         * gtk/gtkcolorbutton.c: move destruction of the private GdkGC
3023         from finalize() to unrealize(). Fixes BadMatch on display change
3024         (bug #85715).
3025
3026 2006-01-22  Kristian Rietveld  <kris@gtk.org>
3027
3028         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Revert previous
3029         commit after more searching in the bugzilla archives (see #309221).
3030
3031 2006-01-22  Kristian Rietveld  <kris@gtk.org>
3032
3033         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Remove second call
3034         to gtk_tree_view_column_cell_set_cell_data, since we also set the
3035         cell data before iterating over the columns for exposure. (Fixes
3036         #322471, Duncan Coutts).
3037
3038 2006-01-21  Matthias Clasen  <mclasen@redhat.com>
3039
3040         * tests/testassistant.c: Add some tests for GtkAssistant
3041
3042         * tests/Makefile.am: Glue
3043
3044 2006-01-20  Matthias Clasen  <mclasen@redhat.com>
3045
3046         * gtk/gtkassistant.c: Fix the docs to reflect the actual signal
3047         signatures.
3048
3049         * gtk/gtktextview.c (gtk_text_view_set_virtual_cursor_pos): Don't
3050         crash if layout is NULL.  (#327934, Christian Kirbach)
3051
3052 2006-01-20  Dan Winship  <danw@novell.com>
3053
3054         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init,
3055         tree_view_keybinding_cb, trap_activate_cb): On "unix", pop up the
3056         "Open Location" window on "~" as well as "/". #153213
3057         (location_entry_create): Fix this so autocompletion still works
3058         correctly in that case.
3059
3060 2006-01-19  Matthias Clasen  <mclasen@redhat.com>
3061
3062         * configure.in: Explicitly link against Xrender.  
3063         (#327538, Christophe Belle)
3064         
3065         * gdk/x11/gdkprivate-x11.h (XID_FONT_BIT): 
3066         * gdk/x11/gdkfont-x11.c: 
3067         * gdk/x11/gdkxid.c: Use an unused high bit in the
3068         XID to mark fonts in the global xid hash table.
3069
3070         * gdk/x11/gdkcursor-x11.c (update_cursor): Skip fonts
3071         when iterating over the xid hash table, since calling
3072         GDK_IS_WINDOW () on an GdkFont can cause a segfault.
3073         (#327751, Ryan Lovett)
3074
3075 2006-01-19  Matthias Clasen  <mclasen@redhat.com>
3076         
3077         * gtk/gtkassistant.[hc]: Use a priv pointer for
3078         cheap access to the priv struct.  (#327725, Christian
3079         Persch)
3080
3081         * gtk/gtkassistant.h: Fix line endings.
3082
3083 2006-01-18  Matthias Clasen  <mclasen@redhat.com>
3084
3085         * gtk/gtkassistant.[hc]: Add GtkAssistant, a widget to
3086         construct multi-step wizards.  (#115348, Martyn Russell, 
3087         Matthias Clasen, Carlos Garnacho Parro)
3088
3089         * gtk/gtk.symbols:
3090         * gtk/Makefile.am: 
3091         * gtk/gtk.h: Necessary glue.
3092
3093 2006-01-18  Anders Carlsson  <andersca@imendio.com>
3094
3095         * gdk/quartz/gdkevents-quartz.c:
3096         (get_mm_from_pixels):
3097         (gdk_screen_get_width_mm):
3098         (gdk_screen_get_height_mm):
3099         Implement these functions.
3100         (#327228, Thomas Broyer).
3101
3102 2006-01-18  Anders Carlsson  <andersca@imendio.com>
3103
3104         * gdk/quartz/gdkdrawable-quartz.c:
3105         (gdk_quartz_draw_polygon):
3106         (gdk_quartz_draw_lines):
3107         Implement these functions.
3108         (#327226, Thomas Broyer)
3109         
3110 2006-01-18  Anders Carlsson  <andersca@imendio.com>
3111
3112         * gdk/quartz/gdkkeys-quartz.c:
3113         (maybe_update_keymap):
3114         Support non-MacRoman keyboard layouts.
3115         (#322585, Wolfgang Thaller)
3116         
3117 2006-01-18  Anders Carlsson  <andersca@imendio.com>
3118
3119         * gdk/quartz/gdkmain-quartz.c:
3120         (_gdk_windowing_init):
3121         Make the process a foreground application.
3122         (#322481, Wolfgang Thaller)
3123         
3124 2006-01-18  Matthias Clasen  <mclasen@redhat.com>
3125
3126         * gtk/gtkrbtree.c: 
3127         * gtk/gtktreemodel.c: Fix several g_new() calls which
3128         were using extra indirections or pointless casts.  
3129         (#327423, Morten Welinder)
3130
3131 Tue Jan 17 19:27:59 2006  Tim Janik  <timj@imendio.com>
3132
3133         * gtk/gtkprogress.c: fix adopted from maemo-gtk.
3134         gtk_progress_create_pixmap(): clear out the newly created offscreen 
3135         pixmap, so themes making use of transparency don't draw onto garbage.
3136
3137 2006-01-17  Michael Natterer  <mitch@imendio.com>
3138
3139         * gtk/gtkbutton.c: remove the "child-spacing" style property again
3140         and add "inner-border" instead. That's far more flexible and
3141         "child-spacing" was a bad name anyway.
3142
3143 2006-01-17  Michael Natterer  <mitch@imendio.com>
3144
3145         * configure.in (ALL_LINGUAS): remove "ang" again until all po
3146         files are there.
3147
3148 2006-01-16  Abel Cheung  <maddog@linuxhall.org>
3149
3150         * configure.in: Added "ang" "zh_HK" to ALL_LINGUAS.
3151
3152 2006-01-16  Matthias Clasen  <mclasen@redhat.com>
3153
3154         * README.in: Mention new pixbuf engine features.
3155
3156         * gtk/gtk.symbols: 
3157         * gtk/gtkradioaction.[hc]: Add a current-value property and a
3158         setter for it.  (#322735, Jorn Baayen)
3159         
3160 2006-01-16  Michael Natterer  <mitch@imendio.com>
3161
3162         * gtk/gtkbutton.c: applied patch from maemo-gtk which adds a
3163         child-spacing style property. Fixes bug #327202.
3164
3165 2006-01-16  Anders Carlsson  <andersca@imendio.com>
3166
3167         * gdk/quartz/gdkdisplay-quartz.c:
3168         * gdk/quartz/gdkevents-quartz.c:
3169         (gdk_keyboard_grab):
3170         (gdk_display_keyboard_ungrab):
3171         (gdk_keyboard_grab_info_libgtk_only):
3172         (find_window_for_event):
3173         Implement keyboard grabs.
3174         
3175         (_gdk_quartz_send_map_events):
3176         * gdk/quartz/gdkmain-quartz.c:
3177         * gdk/quartz/gdkprivate-quartz.h:
3178         New function that synthesizes map events.
3179         
3180         * gdk/quartz/gdkwindow-quartz.c:
3181         (_gdk_windowing_window_init):
3182         The root window is always visible.
3183         
3184         (all_parents_shown):
3185         (show_window_internal):
3186         Send map events.
3187         
3188         (gdk_window_hide):
3189         Ungrab keyboard and pointer
3190
3191 2006-01-15  Kristian Rietveld  <kris@gtk.org>
3192
3193         Fixes #324099, Tommi Komulainen.
3194
3195         * gtk/gtktreestore.[ch] (gtk_tree_store_insert_with_values),
3196         (gtk_tree_store_insert_with_valuesv): new functions, analog to
3197         those found in GtkListStore.
3198
3199         * gtk/gtktreestore.c (gtk_tree_store_real_set_value),
3200         (gtk_tree_store_set_valist), (gtk_tree_store_set_valist_internal),
3201         (gtk_tree_store_sort_iter_changed): refactored.
3202
3203         * gtk/gtk.symbols: updated.
3204
3205         * tests/treestoretest.c: added a test for this new functionality.
3206
3207 2006-01-14  Matthias Clasen  <mclasen@redhat.com>
3208
3209         * gtk/gtkentry.c (gtk_entry_drag_data_received): Remove 
3210         an unused variable.
3211
3212         * gtk/gtkiconfactory.c (get_default_icons): Register RTL 
3213         versions of the indent and unindent icons.  (#326857,
3214         Itai Bar-Haim)
3215
3216         * gtk/Makefile.am (STOCK_ICONS): And add them here.
3217
3218         Fix a crash with combo boxes in RESIZE_IMMEDIATE
3219         containers.  (#326806, Sebastian Bacher)
3220         
3221         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate) 
3222         (gtk_combo_box_size_request): Don't call 
3223         gtk_combo_box_check_appearance() from here, as that 
3224         can lead to recursion. 
3225         (gtk_combo_box_init): Instead, call it here.
3226
3227 2006-01-14  Kristian Rietveld  <kris@gtk.org>
3228
3229         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_iter_children): fix
3230         a typo which caused this whole thing to not function ...
3231
3232 2006-01-14  Kristian Rietveld  <kris@gtk.org>
3233
3234         * gtk/gtktreeview.c (gtk_tree_view_size_allocate),
3235         (validate_visible_area): fixup adjustments and top_row if the
3236         current dy + page_size exceeds the new tree view height. (Fixes
3237         #316689, reported by Chris Lord).
3238
3239 2006-01-13  Matthias Clasen  <mclasen@redhat.com>
3240
3241         * */abicheck.sh: Make this work on more platforms.
3242
3243 2006-01-13  Kristian Rietveld  <kris@imendio.com>
3244
3245         * tests/testtreefocus.c (set_indicator_size), (main): add a little
3246         test for the newly introduced indicator-size property.
3247
3248 2006-01-13  Kristian Rietveld  <kris@imendio.com>
3249
3250         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
3251         initialize the inconsistent field in the private structure,
3252         (gtk_cell_renderer_toggle_class_init),
3253         (gtk_cell_renderer_toggle_{set,get}_property),
3254         (gtk_cell_renderer_toggle_get_size): introduce a indicator-size
3255         property.
3256
3257 2006-01-13  Michael Natterer  <mitch@imendio.com>
3258
3259         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row)
3260         (gtk_tree_view_real_collapse_row): don't animate the expander
3261         arrows if gtk-enable-animations is FALSE (bug #142582).
3262
3263 2006-01-12  Matthias Clasen  <mclasen@redhat.com>
3264
3265         * gtk/gtknotebook.c: Replace hardcoded values for tab-overlap and
3266         tab-curvature with style properties.  (#325282, Alexander Nedotsukov)
3267
3268         * gtk/gtktextview.c (gtk_text_view_commit_text) 
3269         (gtk_text_view_delete_from_cursor, gtk_text_view_backspace): 
3270         Reset the virtual cursor position.  (#326003, Evert Verhellen)
3271
3272         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add some docs
3273         about RGBA windows. (#326486, Benjamin Otte)
3274
3275 2006-01-12  Michael Natterer  <mitch@imendio.com>
3276
3277         * gdk/gdkimage.c (scratch_image_info_for_depth): connect to the
3278         display's "closed" signal and free the cached scratch images upon
3279         display closing (bug #85715).
3280
3281 2006-01-12  Michael Natterer  <mitch@imendio.com>
3282
3283         * gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
3284         animation if the gtk-enable-animations setting is FALSE
3285         (bug #142582).
3286
3287 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
3288
3289         * gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
3290
3291 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
3292
3293         * gtk/gtklabel.c: Add some notify batching, always
3294         emit notify after setting the new value.
3295
3296         * gtk/gtkmessagedialog.c: Add properties.  (#311254,
3297         Johan Dahlin)
3298         (gtk_message_dialog_new): Remove some redundant code, pointed
3299         out by Gustavo Carneiro.
3300
3301         * gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
3302         up properly if the grab fails.
3303         (finish_drag): Don't leak a reference to moveresize_window
3304         here.
3305
3306 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
3307
3308         * gdk/x11/gdkevents-x11.c: Fix string offsets.
3309
3310         Allow falling back to another icon theme before 
3311         hicolor.   (#325546, Rodney Dawes)
3312         
3313         * gtk/gtksettings.c: Add a gtk-fallback-icon-theme setting.
3314
3315         * gdk/x11/gdkevents-x11.c: Map it to the XSetting Net/FallbackIconTheme.
3316         
3317         * gtk/gtkicontheme.c: Consult the fallback icon theme before
3318         looking in hicolor. 
3319
3320 2006-01-10  Matthias Clasen  <mclasen@redhat.com>
3321
3322         * tests/testgtk.c: Add an expander example.
3323
3324         * gtk/gtkcalendar.c (gtk_calendar_focus_out): Queue a draw
3325         when losing the focus.  (#326064, Andrew Conkling)
3326
3327         * gtk/gtkimmulticontext.c: 
3328         * gtk/gtkhsv.c: 
3329         * gtk/gtkhandlebox.c: Convert to use instance private data.
3330
3331         * gtk/gtk.h: Remove duplicate include.  (#326429, 
3332         Benoît Carpentier)
3333
3334         * gtk/gtkpaned.c: Convert to use instance private data.
3335
3336 2006-01-10  Michael Natterer  <mitch@imendio.com>
3337
3338         * gdk/gdkpango.c (on_renderer_display_closed): disconnect from the
3339         right object ("closed" is emitted by the display, not the screen).
3340         (bug #85715)
3341
3342 2006-01-10  Anders Carlsson  <andersca@imendio.com>
3343
3344         * gdk/quartz/gdkproperty-quartz.c:
3345         (ensure_atom_tables):
3346         (intern_atom_internal):
3347         (gdk_atom_intern):
3348         (gdk_atom_intern_static_string):
3349         (gdk_atom_name):
3350         Implement local-only atoms.
3351
3352 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
3353
3354         * gdk/gdkgc.c (gc_get_foreground): Correct a warning.
3355         (#326341, Benoît Carpentier)
3356
3357         * gtk/gtk.symbols:
3358         * gtk/gtkwindow.h:
3359         * gtk/gtkwindow.c (gtk_window_get_group): Make this function
3360         public API.  (#307099, Todd Berman)
3361
3362         * gtk/gtkmenu.c: 
3363         * gtk/gtkmain.c: 
3364         * gtk/gtkentrycompletion.c: 
3365         * gtk/gtkcombo.c: 
3366         * gtk/gtkcombobox.c: Update all callers.
3367
3368         * gtk/gtkentry.c (paste_received):  Make GtkEntryCompletion
3369         complete on pastes at the end.  (#165714, Christian Neumair)
3370
3371         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
3372         Prevent the first row being focused on map.  (#137351,
3373         Niklas Knutsson)
3374
3375 2006-01-09  Johan Dahlin  <jdahlin@async.com.br>
3376
3377         * gtk/gtk.symbols:
3378         * gtk/gtkeditable.h:
3379         * gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
3380         * gtk/gtksizegroup.h:
3381         (struct _GtkSizeGroup): 
3382
3383         Add gtk_size_group_get_widgets, fixes #326324.
3384         Also mark all fields of GtkSizeGroup as private
3385
3386 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
3387
3388         * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
3389         leak preedit_string and preedit_attrs.  (#322332, Paolo
3390         Borelli)
3391
3392         * gtk/gtk.symbols:
3393         * gtk/gtkaction.h: 
3394         * gtk/gtkaction.c (gtk_widget_get_action): New function to
3395         get the action for a proxy.  (#326288)
3396
3397         * gtk/gtkaction.c: Go back to the old key for attaching the
3398         action to the proxy.  (#326288, Diego González)
3399
3400 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
3401
3402         * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
3403         empty strings.  (#326200, Christian Stimming)
3404
3405 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
3406
3407         * gtk/gtkentry.[hc]: 
3408         * gtk/gtklabel.[hc]: Shrink the private structs of these a bit.
3409
3410         * gtk/gtklabel.c (get_layout_location): Fix label alignment 
3411         when width-chars is set.  (#326098, Benjamin Otte)
3412
3413         * gdk/gdkregion-generic.c (miRegionCopy): Fix this for the 
3414         single-rectangle case.  (#326127, Benjamin Berg)
3415         (gdk_region_copy): Use miRegionCopy() here.
3416
3417 2006-01-07  Matthias Clasen  <mclasen@redhat.com>
3418
3419         Fix actiongroup-action interaction that relied on 
3420         actions connecting to notify on themselves:
3421         
3422         * gtk/gtkaction.[hc]: Factor out the code updating the
3423         visibility/sensitivity of proxies into _gtk_action_sync_visible()
3424         and _gtk_action_sync_sensible().
3425
3426         * gtk/gtkactiongroup.c: Call the new functions when the
3427         group visibility/sensitivity changes. 
3428
3429 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
3430
3431         * gtk/gtkactiongroup.c (gtk_action_group_set_sensitive) 
3432         (gtk_action_group_set_visible): Add missing property change
3433         notification.
3434
3435 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
3436
3437         * gtk/gtkfilechooserbutton.c (model_add_special): Just use the
3438         directory name for the home dir.  (#325817, Federico Mena Quintero)
3439         
3440         * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable 
3441         to TRUE. 
3442         (gtk_text_tag_class_init): The default value for the direction 
3443         property is GTK_TEXT_DIR_NONE. Add notes about the initial values 
3444         of the font and language properties.
3445
3446         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
3447         an action signal.  (#325782, Martyn Russell)
3448
3449         * gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
3450         the old adjustments signals.  (#325869, Jorn Baayen)
3451
3452 2006-01-06  Hans Breuer  <hans@breuer.org>
3453
3454         * tests/makefile.msc : added a bunch of tests
3455         * tests/testcellrenderertext.c : use g_snprintf()
3456         * tests/testfilechooserbutton.c : don't include unistd.h twice.
3457         Removed the unconditional one and added direct.h for G_OS_WIN32
3458         
3459 2006-01-05  Hans Breuer  <hans@breuer.org>
3460
3461         * gdk/makefile.msc : also recurse into win32 for ::clean
3462         * gtk/makefile.msc.in : create gtkbuiltincache.h (most code
3463         to simulate links) and file renames
3464
3465 2006-01-05  Johan Dahlin  <jdahlin@async.com.br>
3466
3467         * gtk/gtkprogressbar.c: Set minimum for activity-step property to 0
3468         instead of -G_MAXUINT.
3469         
3470 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
3471
3472         * gtk/gtkwindow.c: Only connect to the event if we have
3473         a frame, since the handler is only relevant in that case.
3474
3475         * gtk/gtkaction.c (connect_proxy, disconnect_proxy): 
3476         Use a weak reference rather than the destroy signal to track 
3477         proxies going away.
3478
3479         * gtk/gtkbindings.c (binding_signal_new): Revert the last change.
3480
3481         * gtk/gtkaction.c (gtk_action_sync_property): 
3482         (gtk_action_sync_stock_id): Removed.
3483
3484 2006-01-05  Rodrigo Moya <rodrigo@novell.com>
3485
3486         * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
3487         signal and arguments.
3488
3489 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
3490
3491         * gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
3492         a void function.
3493
3494 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
3495
3496         * gtk/gtkbindings.h (struct _GtkBindingSignal): Revert questionable
3497         changes.
3498         
3499         * gtk/gtkbindings.c: Use the slice allocator and allocate signal
3500         and arguments in one block.
3501
3502         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Don't return
3503         a list of NULLs.  (#325723, Steve Chaplin)
3504
3505 2006-01-04  Rodrigo Moya <rodrigo@novell.com>
3506
3507         * gtk/gtkbindings.c (binding_signal_new): guard against multiplying
3508         by -1 (when n_args is 0).
3509
3510 2006-01-04  Michael Natterer  <mitch@imendio.com>
3511
3512         * gtk/gtkmenutoolbutton.c
3513         (gtk_menu_tool_button_set_menu)
3514         (gtk_menu_tool_button_destroy): use gtk_menu_attach_to_widget()
3515         and gtk_menu_detach() instead of reffing/unreffing the menu
3516         manually. Also fixes brokenness on screen change (bug #85715).
3517
3518 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
3519
3520         * gtk/gtkaccelmap.c: 
3521         * gtk/gtkactiongroup.c: 
3522         * gtk/gtkdialog.c: 
3523         * gtk/gtkfilesystemunix.c: 
3524         * gtk/gtkgc.c: 
3525         * gtk/gtkkeyhash.c: 
3526         * gtk/gtkplug.c: 
3527         * gtk/gtktextiter.c: 
3528         * gtk/gtktextlayout.c: 
3529         * gtk/gtkuimanager.c: 
3530         * gtk/gtkwidget.c: 
3531         * gtk/gtkwindow.c: 
3532         * gtk/gtkxembed.c: Use the slice allocator for many small 
3533         allocations.
3534
3535         * gtk/gtkcolorsel.c: 
3536         * gtk/gtktreeview.c: Use IPN.
3537
3538         * gtk/gtkwidget.c: Remove an unused field from the AccelPath 
3539         struct.
3540
3541 2006-01-04  Tor Lillqvist  <tml@novell.com>
3542
3543         * gtk-zip.sh.in: Include also the gtk20-properties message catalogs.
3544
3545 2006-01-03  Matthias Clasen  <mclasen@redhat.com>
3546         
3547         * gtk/gtkdnd.c: Make it compile
3548
3549         * gtk/gtkdnd.c (gtk_drag_begin_internal): Call gtk_drag_update
3550         for non-motion events.  (#325443, Peter Harvey)
3551
3552         * gtk/gtkaction.c: Avoid connecting to notify on our own
3553         properties. 
3554
3555 2006-01-02  Matthias Clasen  <mclasen@redhat.com>
3556
3557         * gtk/gtkentry.c (gtk_entry_delete_from_cursor): When deleting
3558         words, delete preceding whitespace as well.  (#325358,  Akkana Peck)
3559
3560 2006-01-02  Anders Carlsson  <andersca@imendio.com>
3561
3562         * gdk/quartz/GdkQuartzWindow.c:
3563         (-[GdkQuartzWindow canBecomeMainWindow]):
3564         (-[GdkQuartzWindow canBecomeKeyWindow]):
3565         Have these return TRUE
3566         
3567         * gdk/quartz/gdkevents-quartz.c:
3568         (pointer_grab_internal):
3569         Remove FIXME
3570         
3571         (find_child_window_by_point_helper):
3572         Fix bug in offset calculation
3573         
3574         (find_window_for_event):
3575         Use grab window toplevel when a grab is in effect
3576         
3577         (gdk_event_translate):
3578         Don't call _gdk_event_button_generate on mouse up
3579         
3580         * gdk/quartz/gdkgc-quartz.c:
3581         (_gdk_quartz_gc_new):
3582         Fix indentation
3583         
3584         * gdk/quartz/gdkwindow-quartz.c:
3585         (gdk_window_new):
3586         Make TEMP windows borderless
3587         
3588         (gdk_window_hide):
3589         Hide window
3590         
3591         (gdk_window_get_origin):
3592         Implement
3593         
3594 2006-01-02  Tor Lillqvist  <tml@novell.com>
3595
3596         * gdk/win32/gdkwindow-win32.c
3597         (gdk_window_impl_win32_get_visible_region): Make identical to the
3598         X11 implementation. (#322264, John Ehresman)
3599
3600         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): Get the
3601         invalidated region from ScrollWindowEx() instead of an incorrect
3602         attempt to calculate it ourselves. Fix by John Ehresman. (#323666)
3603
3604         * gdkevents-win32.c: Make _gdk_win32_hrgn_to_region() non-static.
3605
3606         * gdkprivate-win32.h: Declare it.
3607
3608 2005-12-31  Matthias Clasen  <mclasen@redhat.com>
3609
3610         * gtk/gtkaction.c: 
3611         * gtk/gtkentry.c: Connect to notify instead of multiple
3612         detailed signals.
3613
3614 2005-12-30  Matthias Clasen  <mclasen@redhat.com>
3615
3616         * gdk/gdk.symbols: 
3617         * gdk/gdkcairo.h: 
3618         * gdk/gdkcairo.c: Add gdk_cairo_set_source_pixmap.  (#318805,
3619         Alexander Larsson)
3620
3621         * gdk/gdkdisplaymanager.c (gdk_display_manager_set_property): Call
3622         gdk_display_manager_set_default_display() to change the default
3623         display.  (#153623, Stefan Kost)
3624
3625         * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
3626          (setup_type): Alert dialogs should not have titles and should 
3627         not be displayed in the taskbar.  (#310443, Carlos Garnacho Parro,
3628         Dennis Cranston)
3629
3630 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
3631
3632         * gtk/gtkliststore.c: 
3633         * gtk/gtktreestore.c: Always call the get_path and get_iter
3634         implementations directly, rather than the current mixture whith
3635         some calls going through the GtkTreeModel interface.
3636
3637         * gtk/gtktreemodelsort.c: 
3638         * gtk/gtkliststore.c: 
3639         * gtk/gtktreestore.c: Remove excessive g_return_if_fail() checks
3640         in static functions.
3641         
3642         * gtk/gtktreedatalist.c: Use the slice allocater for 
3643         GtkTreeDataSortHeader.
3644
3645         * gtk/gtktreedatalist.h: 
3646         * gtk/gtktreedatalist.c (_gtk_tree_data_list_set_header): New function.
3647
3648         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): 
3649         * gtk/gtkliststore.c (gtk_list_store_set_sort_func): 
3650         * gtk/gtktreestore.c (gtk_tree_store_set_sort_func): Use it here.
3651
3652 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
3653
3654         * gtk/gtkbindings.h (GtkBindingSignal): 
3655         * gtk/gtkbindings.c (binding_signal_new): Make the
3656         args a flexible array inside the struct, and allocate them
3657         together.
3658
3659 Wed Dec 28 00:45:46 2005  Tim Janik  <timj@gtk.org>
3660
3661         * gtk/gtkctree.c (row_delete): delete GtkCTreeRow as GtkCTreeRow, not
3662         clist rows which crashes in gslice later on.
3663
3664 2005-12-27  Federico Mena Quintero  <federico@ximian.com>
3665
3666         * gtk/gtkfilefilter.c (gtk_file_filter_filter): In the case for
3667         FILTER_RULE_PIXBUF_FORMATS, check that filter_info->mime_type is
3668         not NULL.  Fixes bug #317687.
3669
3670 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
3671
3672         * gdk/x11/gdkevents-x11.c (check_transform): Fix a typo.
3673         (gdk_screen_get_setting): Avoid relocations for the settings
3674         map.
3675
3676         * gdk/x11/gdkproperty-x11.c: Avoid relocations for the list
3677         of standard atoms.
3678
3679         * gtk/gtkbindings.c (gtk_binding_set_new): Avoid copying
3680         the set_name by interning it.
3681
3682 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
3683
3684         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
3685         before calling gdk_window_new().
3686
3687         * gtk/gtktextbtree.c: Use the slice allocator for some other small
3688         auxiliary structures as well.
3689
3690         * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
3691         docs.  (#324996)
3692
3693         * gtk/gtktextbtree.c (gtk_text_btree_get_tag_info) 
3694         (gtk_text_btree_remove_tag_info): Use the slice allocator for 
3695         tag info.
3696
3697         * README.in: Mention the stripping of (_F) suffixes.
3698
3699         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Strip a suffix of 
3700         the form "(_<single character>)", since this is the preferred way
3701         for some languages to indicate accelerators.  (#323956, Yang Hong)
3702
3703         * gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus
3704         setting.
3705         (gtk_label_grab_focus): And use it here to select the contents of
3706         the label when appropriate.
3707         (gtk_label_class_init): Use the same keybindings for select all/
3708         unselect all as GtkEntry and GtkTextView.
3709
3710         * gtk/gtkdialog.c (gtk_dialog_map): When looking for the initial
3711         focus, avoid leaving a selection in a label.
3712
3713 2005-12-25  Matthias Clasen  <mclasen@redhat.com>
3714
3715         * gtk/gtkwindow.c: Documentation fixes.  (#324815, 
3716         Ross Burton)
3717
3718         * configure.in: Require GLib 2.9.2
3719
3720 2005-12-24  Matthias Clasen  <mclasen@redhat.com>
3721
3722         * gdk/gdkregion-generic.c: 
3723         * gdk/gdkpolyreg-generic.c: 
3724         * gdk/gdkregion.h: 
3725         * gdk/gdkrectangle.c: Inline docs, use g_assert(), avoid 
3726         extra allocation for rectangular regions.
3727
3728 Thu Dec 22 18:53:14 2005  Tim Janik  <timj@gtk.org>
3729
3730         * gtk/gtkobject.[hc]: renamed GUnowned to GInitiallyUnowned.
3731
3732 Thu Dec 22 17:55:11 2005  Tim Janik  <timj@gtk.org>
3733
3734         * gtk/gtkobject.h: parent type fixups in structure declarations.
3735
3736 Thu Dec 22 16:01:27 2005  Tim Janik  <timj@imendio.com>
3737
3738         * gtk/gtkobject.c: derive GtkObject from GUnowned,
3739         so it initially has a floating reference count.
3740         gtk_object_class_init(): installa floating flag handler with
3741         libgobject, so for GtkObjects the flag is stored as GTK_FLOATING
3742         in the ->flags member.
3743
3744         * tests/floatingtest.c: test floating flag uses.
3745
3746 2005-12-21  Matthias Clasen  <mclasen@redhat.com>
3747
3748         * gdk/gdkregion-generic.c: Use the slice allocator
3749         for regions. Still todo: avoid extra allocations for
3750         the single-rectangle case.
3751
3752         * gtk/gtksettings.c (gtk_settings_class_init): Update
3753         class_n_properties after installing color-hash, since
3754         other classes install settings, too.
3755
3756         * gtk/gtkctree.c: 
3757         * gtk/gtkclist.c: Fix some mistakes in the conversion
3758         from mem chunks to slice allocator.
3759
3760         * gtk/gtkiconview.c (adjust_wrap_width): Adjust the 
3761         wrap-width also if an explicit item width is set.  
3762         (#322475, Alex Graveley)
3763         
3764 2005-12-20  Matthias Clasen  <mclasen@redhat.com>
3765
3766         * gtk/gtkiconview.c (gtk_icon_view_button_press): Reset 
3767         pressed_button to -1 after handling a double click, so that
3768         motion events occurring between here and the release event
3769         don't trigger DND.  (#324588, Dave Andreoli)
3770
3771 2005-12-19  Matthias Clasen  <mclasen@redhat.com>
3772
3773         * gtk/gtkcellrenderer.c: 
3774         * gtk/gtkselection.c: 
3775         * gtk/gtkcalendar.c: 
3776         * gtk/gtkitemfactory.c: 
3777         * gdk/gtkcombo.c: 
3778         * gdk/gdkpixbuf-render.c: Documentation updates
3779
3780         * gtk/gtktreemodel.c: 
3781         * gtk/gtkplug.c: 
3782         * gtk/gtkwindow.c: Documentation fixes.
3783
3784 2005-12-19  Michael Natterer  <mitch@imendio.com>
3785
3786         * gtk/gtkentry.c: implement boolean property "truncate-multiline"
3787         which, when enabled, truncates multi-line pastes or drops to their
3788         first line. Fixes bug #322252.
3789
3790         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): enable
3791         truncate-multiline here.
3792
3793 2005-12-17  Matthias Clasen  <mclasen@redhat.com>
3794
3795         * gtk/gtksettings.c (get_color_hash): Don't crash if
3796         there is no color scheme.  (#324429, Diego Gonzalez)
3797
3798 2005-12-16  Matthias Clasen  <mclasen@redhat.com>
3799
3800         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
3801         * gtk/gtkimmodule.c (gtk_im_module_load): 
3802         * gtk/gtkthemes.c (gtk_theme_engine_load): 
3803         * gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
3804         opening modules.
3805
3806         * gtk/gtksettings.[hc]: Rework the way the color scheme setting
3807         is inherited. Now the overriding is done on a per-color basis,
3808         rather than for the setting as a whole. This has the effect
3809         that themes can declare defaults for all the symbolic colors they
3810         use by specifying a value for the gtk-color-scheme setting in 
3811         their rc file, while still allowing the XSetting to override
3812         "standard" symbolic colors. The hash table is now available
3813         through the color-hash property.
3814         
3815         * gtk/gtkrc.c: Use the new color-hash property.
3816         
3817 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
3818
3819         * gtk/gtkcontainer.c (_gtk_container_focus_sort): Skip unrealized
3820         children when doing focus sorting.  (#323995, Dan Winship)
3821
3822 2005-12-14  Rodney Dawes  <dobey@novell.com>
3823
3824         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
3825         Default to "drive-harddisk" and then fall back to gnome-dev-harddisk
3826         (get_icon_for_mime_type): Look up the mime type icons according to the
3827         Icon Naming Specification and then fall back to the gnome-mime- prefix
3828         for the mime type icons
3829
3830         Fixes #323655
3831         
3832 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
3833
3834         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
3835         cannot be loaded.  (#323504, Kjartan Maraas)
3836
3837         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add docs 
3838         for the row-activated signal.  (#324044, Davyd Madeley)
3839
3840 2005-12-14  Michael Natterer  <mitch@imendio.com>
3841
3842         * tests/test-images/valid_jpeg_progressive_test: new test image.
3843
3844 Tue Dec 13 09:47:20 2005  Tim Janik  <timj@gtk.org>
3845
3846         * README.in: added a link to the floating reference docs in the
3847         2.10 release NEWS section.
3848
3849 2005-12-12  Matthias Clasen  <mclasen@redhat.com>
3850
3851         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_index): 
3852         Speed this function up, using the fact that visibility is 
3853         constant across segments. (#321548, Paolo Borelli)
3854
3855         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
3856         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Speed up
3857         stepping backwards.  (#320638, Larry Ewing, Paolo Borelli)
3858
3859         * gtk/gtkicontheme.c (ensure_valid_themes): Only broadcast
3860         _GTK_LOAD_ICONTHEMES if we detect a real theme change, not
3861         upon initial theme load.  (#323876, Peter Lund)
3862
3863         * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Register
3864         the size-changed signal correctly.  (#323848, Murray Cumming)
3865
3866         * gtk/gtkmarshalers.list: Add necessary marshaller.
3867
3868         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): Don't
3869         fall thru to the wrong window types.  (#323843)
3870
3871         Make the gtk-color-scheme setting work.
3872         
3873         * gtk/gtksettings.h: 
3874         * gtk/gtksettings.c (_gtk_settings_get_color_hash): Add a getter
3875         that takes care of initializing the color hash if it is not 
3876         already there.  
3877
3878         * gtk/gtkrc.c (gtk_rc_color_scheme_changed, gtk_rc_context_get): 
3879         And use it here.        
3880
3881 2005-12-10  Matthias Clasen  <mclasen@redhat.com>
3882
3883         * gdk/gdk.c (gdk_parse_args): Warn if parsing fails,
3884         not if it succeeds. 
3885
3886 2005-12-09  Matthias Clasen  <mclasen@redhat.com>
3887
3888         * gtk/gtkselection.c (gtk_selection_data_get_uris): Don't
3889         leak list[0].  (#323629, Markku Vire)
3890
3891         * gtk/gtktextbuffer.c (paste_from_buffer): Unref the buffer
3892         when freeing the RequestData.  (#323577)
3893
3894 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
3895
3896         * demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
3897         leak text.
3898
3899         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
3900         variable name clash.  (#323475, Ross Burton)
3901
3902 2005-12-07  Ross Burton  <ross@burtonini.com>
3903
3904         * docs/reference/gtk/tmpl/gtkenums.sgml:
3905         * gtk/gtktoolbutton.c:
3906         If the toolbar mode is ICONS and there is no icon set then show
3907         the label, and vice versa (#322019)
3908
3909 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
3910
3911         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
3912         variable name clash.  (#323475, Ross Burton)
3913
3914         * gtk/gtktreeview.c (gtk_tree_view_key_press): Use the correct
3915         window when synthesizing the key event.  (#323077,
3916         Sadrul Habib Chowdhury)
3917         
3918         (gtk_tree_view_search_key_press_event): Also listen for
3919         GDK_ISO_Left_Tab.  (#323077, Sadrul Habib Chowdhury)
3920
3921         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler): 
3922         Only scroll if we have focus.  (#316310, Paolo Borelli)
3923
3924         * gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism,
3925         spotted by Crispin Flowerday.
3926
3927 2005-12-06  Behdad Esfahbod  <behdad@gnome.org>
3928
3929         * gtk/gtksettings.c (settings_update_font_options): Turn metrics
3930         hinting on (part of #307196)
3931
3932 2005-12-06  Matthias Clasen  <mclasen@redhat.com>
3933
3934         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_reset): Don't
3935         commit from reset, it upstets GtkTextView.
3936
3937         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Be more
3938         careful when turning blinking on and off.
3939         (gtk_text_view_focus_out_event): Make the cursor really invisible
3940         when the focus goes away.  (#323087, Sadrul Habib Chowdhury)
3941         (cursor_blinks): Check the gtk-cursor-blink setting first.
3942
3943         * gtk/gtktreeview.c (gtk_tree_view_key_press): Fix refcounting
3944         issues with new_event and its window.
3945
3946         * gtk/gtkmenu.c (gtk_menu_attach_to_widget): Accept NULL
3947         as a detach func.  (#323386, Jorn Baayen)
3948
3949         * gtk/gtkcalendar.c: Avoid conflict with win32 headers in
3950         the libdate routines.  (#323045, Kazuki Iwamoto)
3951
3952         * gdk/gdk.c (gdk_parse_args): 
3953         * gtk/gtkmain.c (gtk_parse_args): Don't ignore errors
3954         from g_option_context_parse(). 
3955
3956 Tue Dec  6 11:37:59 2005  Tim Janik  <timj@gtk.org>
3957
3958         * gdk/gdkevents.c (gdk_event_new): fix missing hash table 
3959         initialization.
3960
3961 Tue Dec  6 10:32:17 2005  Tim Janik  <timj@gtk.org>
3962
3963         * gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code
3964         compiles again.
3965
3966 2005-12-05  Federico Mena Quintero  <federico@ximian.com>
3967
3968         * gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
3969         modifiers", not "event->state && modifiers".  Patch by Sadrul
3970         Habib Chowdhury <imadil@gmail.com>.  Fixes bug #323073.
3971
3972 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
3973
3974         * gtk/gtkwidget.c: 
3975         * gtk/gtkuimanager.c: 
3976         * gtk/gtktreedatalist.c: 
3977         * gtk/gtktext.c: 
3978         * gtk/gtkmain.c: 
3979         * gtk/gtkitemfactory.c: 
3980         * gtk/gtkseparator.[hc]:
3981         * gtk/gtkclist.[hc]: 
3982         * gtk/gtkctree.c:
3983         * gtk/gtkgc.c: Use g_slice instead of mem chunks.
3984
3985 2005-12-05  Michael Natterer  <mitch@imendio.com>
3986
3987         * gdk/x11/gdkevents-x11.c: map the new GtkSettings properties
3988         "timeout-initial", "timeout-repeat", "color-scheme" and
3989         "enable-animations" to X settings.
3990
3991 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
3992
3993         * gdk/gdkevents.c: 
3994         * gdk/gdkcolor.c: Use g_slice instead of mem chunks.
3995
3996         * gtk/gtktreeview.c (gtk_tree_view_key_press): Free new_event
3997         after sending it to the search entry.  (#323209, Crispin Flowerday)
3998
3999         * README.in: Add a note about GTK_FLOATING.
4000
4001         * gtk/gtkobject.h (GTK_OBJECT_FLOATING): Use g_object_is_floating.
4002
4003 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
4004
4005         * gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
4006         a pixbuf.  (#323024, Paolo Borelli)
4007
4008 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
4009
4010         * gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
4011         if mime_type is NULL.  (#322998, Sadrul Habib Chowdhury)
4012
4013 2005-12-02  Michael Natterer  <mitch@imendio.com>
4014
4015         * gtk/gtkmenu.c: applied modified patch from maemo-gtk which
4016         adds a "horizontal-padding" style property. Fixes bug #323036.
4017
4018 2005-12-01  Michael Natterer  <mitch@imendio.com>
4019
4020         Merged modified patch from maemo-gtk that allows to disable
4021         toolbar animations. Addresses bug #142582.
4022
4023         * gtk/gtksettings.c: added boolean property "gtk-enable-animations".
4024         (patch from Christian Neumair)
4025
4026         * gtk/gtktoolbar.c: don't animate toolbar changes if the settings
4027         property is FALSE. Replaced the individual "notify::foo"
4028         connections to GtkSettings by a single "notify" callback and
4029         dispatch internally.
4030
4031 2005-12-01  Michael Natterer  <mitch@imendio.com>
4032
4033         * gtk/gtkmenu.c (gtk_menu_class_init): removed redundant
4034         assignment of widget_class->motion_notify_event
4035
4036 2005-11-29  Matthias Clasen  <mclasen@redhat.com>
4037
4038         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): Add 
4039         an active property.  (#322673, Jorn Baayen)
4040
4041         Properly handle model changes in GtkTreeSelection: (#322569,
4042         Milosz Derezynski)
4043         
4044         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): 
4045         Get a reference to the model, and stop the iteration if the model
4046         of the treeview is changed on the way.
4047
4048         * gtk/gtktreeprivate.h: 
4049         * gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New 
4050         private function to emit the GtkTreeSelection::changed signal.
4051
4052         * gtk/gtktreeview.c (gtk_tree_view_set_model): Call 
4053         _gtk_tree_selection_emit_changed() when the model changes.
4054
4055 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
4056
4057         Fixes the critical warnings from bug #317999, thus fixing the bug
4058         completely:
4059
4060         * gtk/gtkfilechooserdefault.c
4061         (gtk_file_chooser_default_get_paths): In SELECT_FOLDER mode,
4062         use _gtk_file_chooser_get_current_folder_path() instead of fetching the
4063         impl->current_folder directly.  The latter may be null if we are
4064         in RELOAD_NONE state.
4065
4066 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
4067
4068         Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
4069
4070         * gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the
4071         current_folder to the pending select paths here; the path bar will
4072         give it to us now.
4073         (path_bar_clicked): Add the child_path to the pending select paths
4074         here.
4075         (show_and_select_paths): Don't filter out folders.
4076         (show_and_select_paths): Don't take separate arguments for
4077         only_one_path and multiple paths.
4078
4079         * tests/autotestfilechooser.c (test_folder_switch_and_filters):
4080         New test about preserving the filters when we change folders.
4081
4082 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
4083
4084         * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
4085         -20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)
4086
4087         * gtk/gtkaction.c (gtk_action_sync_button_stock_id) 
4088         (connect_proxy): Buttons use the label property for stock ids.  (#322565,
4089         Milosz Derezynski)
4090
4091         * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
4092         handle the cell list and indices into it.  (#321856)
4093
4094 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
4095
4096         * gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
4097         the timeout is done.  (#322291, Jean-Yves Lefort)
4098
4099 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
4100
4101         * gtk/gtkfilechooserdefault.c (shortcuts_key_press_event_cb): Make
4102         F2 work for renaming bookmarks.  (#320822, Jaap A. Haitsma, patch
4103         by Paolo Borelli)
4104
4105 2005-11-28  Tor Lillqvist  <tml@novell.com>
4106
4107         * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
4108         Implement the conditional use of FlashWindowEx() properly for MSVC
4109         compilations. The code was confusingly assuming that if compiled
4110         with a "new" compiler, it will only be run on "new" Windows
4111         versions. We want it to run on "old" versions, too, even if
4112         compiled with a "new" compiler. There are two orthogonal issues:
4113         whether the compiler defines the necessary API in its headers, and
4114         whether it is present at run-time. (#318077)
4115
4116         * gtk/gtkcalendar.c (gtk_calendar_init): Use GetLocaleInfo() on
4117         Windows to get the localized weekday and month names. strftime()
4118         in the Microsoft C library returns strings in the default codepage
4119         for the locale of the process, not the system codepage. Thus
4120         g_locale_to_utf8() isn't useable on the return value from
4121         strftime(). (#322603)
4122
4123 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
4124
4125         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup): 
4126         Fix an example.  (#322493, Elie De Brauwer)
4127         
4128         Fix two memory handling problems in GtkTreeView: (#322350, 
4129         Søren Sandmann)
4130         
4131         * gtk/gtktreeview.c (gtk_tree_view_destroy) 
4132         (gtk_tree_view_set_model): Remove all references to nodes in
4133         the old model.
4134         (gtk_tree_view_real_collapse_row): Unmark expanded_collapsed_node
4135         before removing the children.
4136
4137         * gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a 
4138         PangoLayout here.  (#322505, Paolo Borelli)
4139
4140 2005-11-27  Tor Lillqvist  <tml@novell.com>
4141
4142         Once again rework Win32 window decoration code. Doesn't break
4143         #104514. The dialogs in gtk-demo now have the same decorations and
4144         behaviour as on X11. Tried to fix #322516 but it seems very hard
4145         to make the trivial sample program there behave as expected. OTOH,
4146         simply moving the gtk_window_decorate() call in the #322516 sample
4147         program after the call to gtk_widget_show() helps...
4148             
4149         * gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
4150         the correct semantics. Each call to gdk_window_set_decorations()
4151         which calls this function is supposed to affect all decorations.
4152
4153         (decorate_based_on_hints): New function, looks at both geometry
4154         hints and type hint and sets window decorations based on
4155         that. Consolidate code from gdk_window_set_geometry_hints() and
4156         gdk_window_set_type_hint() here.
4157
4158         (gdk_window_set_geometry_hints, gdk_window_set_type_hint): Call
4159         decorate_based_on_hints().
4160
4161 2005-11-25  Dom Lachowicz <cinamod@hotmail.com>
4162
4163         * modules/engines/ms-windows/*.[ch]: Merge with gtk-wimp's CVS.
4164         Includes improved menu icon spacing, [+]/[-] expander drawing,
4165         status-bar gippie drawing, and notebook tab drawing.
4166         
4167 2005-11-24  Michael Natterer  <mitch@imendio.com>
4168
4169         * gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint
4170         that used to hold signal handler IDs to two guint of padding.
4171
4172         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as
4173         gulong here.
4174
4175         (gtk_toolbar_screen_changed): changed accordingly.
4176
4177 Wed Nov 23 18:55:47 2005  Tim Janik  <timj@imendio.com>
4178
4179         * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
4180         in terms of the GObject floating/sink API.
4181
4182         * gtk/gtkaboutdialog.c:
4183         * gtk/gtkaction.c:
4184         * gtk/gtkcellview.c:
4185         * gtk/gtkclist.c:
4186         * gtk/gtkcolorsel.c:
4187         * gtk/gtkcombobox.c:
4188         * gtk/gtkfilechooserdefault.c:
4189         * gtk/gtkiconview.c:
4190         * gtk/gtkinvisible.c:
4191         * gtk/gtkitemfactory.c:
4192         * gtk/gtklayout.c:
4193         * gtk/gtkmenu.c:
4194         * gtk/gtkmenutoolbutton.c:
4195         * gtk/gtknotebook.c:
4196         * gtk/gtkprogress.c:
4197         * gtk/gtkrange.c:
4198         * gtk/gtkspinbutton.c:
4199         * gtk/gtkstatusicon.c:
4200         * gtk/gtktext.c:
4201         * gtk/gtktextview.c:
4202         * gtk/gtktoolbar.c:
4203         * gtk/gtktoolbutton.c:
4204         * gtk/gtktoolitem.c:
4205         * gtk/gtktreeitem.c:
4206         * gtk/gtktreeview.c:
4207         * gtk/gtktreeviewcolumn.c:
4208         * gtk/gtkuimanager.c:
4209         * gtk/gtkviewport.c:
4210         * gtk/gtkwidget.c:
4211         * gtk/gtkwindow.c:
4212         ported to use GObject's g_object_ref_sink().
4213
4214         * gtk/gtkcolorsel.c:
4215         * gtk/gtkfilechooserdefault.c:
4216         * gtk/gtkaboutdialog.c:
4217         fixed compiler warnings.
4218
4219 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
4220
4221         * gtk/gtksettings.c (gtk_settings_class_init): Add some docs
4222         about gtk-color-scheme.
4223
4224 2005-11-23  Behdad Esfahbod  <behdad@gnome.org>
4225
4226         * configure.in (enable_explicit_deps): Fix typo when checking
4227         libtool config deplibs_check_method. Moreover, enable explicit
4228         deps if we get anything other than pass_all from libtool. (part of
4229         #318750)
4230
4231 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
4232
4233         * gtk/updateiconcache.c (write_csource): Don't create a big
4234         string, since Visual C++ doesn't like strings longer than 64k. 
4235         (#322238, Kazuki IWAMOTO
4236
4237         * gtk/gtkentry.c: Include gtkimcontextsimple.h  (#322235,
4238         Kazuki IWAMOTO)
4239
4240 2005-11-23  Michael Natterer  <mitch@imendio.com>
4241
4242         * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel
4243         windows on other screens (correctly remove all temporary
4244         references).
4245
4246 2005-11-23  Michael Natterer  <mitch@imendio.com>
4247
4248         Added symbolic themable colors. Patch is a merged version of
4249         proposals from Matthias and maemo-gtk. Fixes bug #114355.
4250
4251         * configure.in: require glib >= 2.9.1 for refcountable hashtables.
4252
4253         * gtk/gtksettings.c: added property "color-scheme" which is a
4254         string defining colors like "foreground:black\nbackground:grey".
4255         Automatically provide a name->GdkColor hash table mapping for the
4256         color scheme.
4257
4258         * gtk/gtkrc.[ch]: added list of color hashes that works like the
4259         list of icon factories. Append the color scheme hash from
4260         GtkSettings if it exists. Extended gtkrc syntax to allow defining
4261         and referencing of logical colors. Also allow to modulate colors
4262         in gtkrc by using arbitrary expressions of mix(), shade(),
4263         lighter() and darker(). Added internal function
4264         _gtk_rc_style_get_color_hashes().
4265
4266         * gtk/gtkstyle.[ch]: keep a private list of color hashes around.
4267         Get the list from _gtk_rc_style_get_color_hashes(). Export
4268         internal function _gtk_style_shade() (used by above color
4269         expressions). Added public API gtk_style_lookup_color() which
4270         looks up a logical color by name.
4271
4272         * gtk/gtk.symbols: add gtk_style_lookup_color
4273
4274         * tests/testgtkrc: use symbolic colors for making
4275         the scrollbars red.
4276
4277 2005-11-22  Michael Natterer  <mitch@imendio.com>
4278
4279         Made button-press timeouts which work like key repeat timeouts
4280         configurable. Addresses bug #142582:
4281
4282         * gtk/gtksettings.c: added properties "gtk-timeout-initial" and
4283         "gtk-timeout-repeat" which defalt to 200/20 (ms).
4284
4285         Use the values from GtkSettings instead of hardcoding them
4286         (the repeat value is either taken as-is for fast repeat or
4287         multiplied by 5 for slow repeat). Changed all places to use these
4288         two standard initial/repeat timings:
4289
4290         * gtk/gtkcalendar.c (unchanged 200/20)
4291         * gtk/gtknotebook.c (unchanged 200/100)
4292         * gtk/gtkpathbar.c (changed from 300/150 to 200/100)
4293         * gtk/gtkrange.c (changed from 250/100 to 200/100)
4294         * gtk/gtkspinbutton.c (unchanged 200/20)
4295
4296 2005-11-21  Anders Carlsson  <andersca@imendio.com>
4297
4298         * configure.in:
4299         * gtk/Makefile.am:
4300         * gdk/Makefile.am:
4301         * gdk/quartz/*:
4302         Add quartz backend.
4303         
4304         * docs/tools/Makefile.am:
4305         Only build docshooter when the X11 backend is used.
4306         
4307         * gtk/gtkplug-stub.c:
4308         Include gtkplug.h here.
4309         
4310         * gtk/gtksocket-stub.c:
4311         Include gtksocket.h here.
4312         
4313 2005-11-21  Matthias Clasen  <mclasen@redhat.com>
4314
4315         * gtk/gtkinputdialog.c: Convert GtkInputDialog to 
4316         g_type_class_add_private.
4317
4318         * gtk/gtksocket.c: Convert GtkSocket to g_type_class_add_private.
4319
4320         * gtk/gtkmenu.c: Convert GtkMenu to g_type_class_add_private.
4321
4322         * gtk/gtk.symbols:
4323         * gtk/gtkcombobox.[hc]: Add a tearoff-title property,
4324         with getter and setter.  (#316482, Olexiy Avramchenko)
4325
4326         * tests/testcombo.c (main): Test gtk_combo_box_set_title
4327
4328         * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
4329         pointed out by Michael Natterer.
4330
4331         Fix for bug #321542, Benedikt Meurer:
4332         
4333         * gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
4334         Emit notify::active.
4335         
4336         (gtk_combo_box_child_show, gtk_combo_box_child_hide): Use
4337         g_signal_emit, not g_signal_emit_by_name.
4338
4339 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
4340
4341         Fix crashes in connection with pathbar scrolling (#321560,
4342         Bogdan Nicula)
4343         
4344         * gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons): 
4345         Stop scrolling when desensitising slider buttons.
4346         (gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press): 
4347         And use it here.  
4348
4349         * gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate
4350         scrolling_down flag.
4351
4352 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
4353
4354         * gtk/gtkpathbar.c (button_clicked_cb): Fix a C99ism.
4355         (#321777, Jens Granseuer)
4356
4357         * gtk/gtkaction.c (disconnect_proxy): Disconnect the
4358         sync callback for the visibility property.  (#321761,
4359         Philip Langdale)
4360
4361         Turn off input methods in invisible entries, since
4362         they are confusing.  (#317002, James Su)
4363         
4364         * gtk/gtkentry.c (gtk_entry_set_visibility): Toggle input
4365         methods if visibility changes.
4366         (popup_targets_received): Don't show the input method
4367         menu if the entry is invisible.  
4368
4369 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
4370
4371         * README.in: Add a note about range arrow sensitivity.
4372
4373         * perf/treeview.c: const correctness fixes
4374         found by Arjan van de Ven and gcc.
4375
4376 2005-11-16  Michael Natterer  <mitch@imendio.com>
4377
4378         * gtk/gtkimage.c (animation_timeout): call
4379         gtk_window_process_updates() so the animation keeps running even
4380         if the main loop is busy with sources that eat a lot of cpu with
4381         high priority. Fixes bug #321444.
4382
4383         (gtk_image_new_from_animation): document the fact that the
4384         animation will stop running if the main loop is busy with sources
4385         that have priorities higher than G_PRIORITY_DEFAULT.
4386
4387         * tests/testimage.c: added test case that shows an animation even
4388         though a cpu-eating idle function is running.
4389
4390 2005-11-16  Michael Natterer  <mitch@imendio.com>
4391
4392         * gdk/x11/gdkevents-x11.c (_gdk_events_uninit): new internal
4393         function which destroys the display's event source. Also removes
4394         the source from the global display_sources list and unrefs it.
4395
4396         * gdk/x11/gdkprivate-x11.h: declare the function.
4397
4398         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): call it
4399         instead of half-destroying the source here.
4400
4401 2005-11-15  Matthias Clasen  <mclasen@redhat.com>
4402
4403         * gtk/gtktreestore.c (gtk_tree_store_move): Fix a memory
4404         leak.  (#321032, Peter Zelezny)
4405
4406 2005-11-15  Michael Natterer  <mitch@imendio.com>
4407
4408         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): destroy
4409         display->xid_ht as late as possible (right before XCloseDisplay)
4410         because it still needs to be around when the display's screens are
4411         finalized. (#85715)
4412
4413 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
4414
4415         * gtk/gtkselection.c (gtk_selection_data_set_uris): Don't
4416         leak result.  (#321441, Tommi Komulainen)
4417
4418 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
4419
4420         * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes):
4421         Don't crash if there is no builtin icon.
4422
4423 2005-11-14  Michael Natterer  <mitch@imendio.com>
4424
4425         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
4426         removed redundant calls to g_object_notify().
4427
4428 2005-11-13  Matthias Clasen  <mclasen@redhat.com>
4429
4430         * gdk/gdkcolor.c (gdk_color_parse): Documentation 
4431         improvements.  (#321338)
4432
4433         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Make
4434         limit an inclusive boundary.  (#321299)
4435
4436 2005-11-12  Michael Natterer  <mitch@imendio.com>
4437
4438         * gtk/Makefile.am: fixed icon rules so gtkbuiltincache.h is only
4439         rebuilt if needed.
4440
4441 2005-11-12  Dom Lachowicz <cinamod@hotmail.com>
4442
4443         * modules/engines/ms-windows/msw_style.c: Bug #313627. Make win32 
4444         theme's handling of toolbars, handleboxes, and menubars more in-line
4445         with Microsoft's IE style.
4446         * modules/engines/ms-windows/*.c: Indentation cleanups
4447         
4448 2005-11-12  Matthias Clasen  <mclasen@redhat.com>
4449
4450         Make builtin icons work in gtk_window_set_icon_name() 
4451         (#321046, Maxim Udushlivy)
4452
4453         * gtk/gtkicontheme.c (insert_theme): Always insert the default
4454         theme.
4455         (ensure_valid_themes): Call _gtk_icon_theme_ensure_builtin_cache()
4456         from here.
4457         (theme_lookup_icon, find_builtin_icon): ...and not from here.
4458         (gtk_icon_theme_lookup_icon): Remove an unncessary assert.
4459         (gtk_icon_theme_get_icon_sizes): Also check builtin icons.
4460
4461 2005-11-12  Tor Lillqvist  <tml@novell.com>
4462
4463         * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
4464         dotfiles, no such convention on Win32. Just hide files with the
4465         hidden attribute. (#314627)
4466
4467 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
4468
4469         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not
4470         check whether the path is a folder.  It is useful to bookmark
4471         files as well (e.g. todo.txt), and this will also help
4472         performance.
4473         (shortcuts_add_bookmark_from_path): Likewise.
4474         (shortcuts_activate_iter): Change folders or select files, as
4475         appropriate.
4476
4477 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
4478
4479         * tests/autotestfilechooser.c (main): Use
4480         g_log_set_default_handler() instead of explicitly setting a
4481         handler for each domain.
4482
4483         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Only get
4484         the base path of the volume if it is mounted.
4485
4486 2005-11-11  Michael Natterer  <mitch@imendio.com>
4487
4488         Added per-stepper API for GtkRange's stepper sensitivity as
4489         discussed in bug #321056:
4490
4491         * gtk/gtkenums.h: added GtkSensitivityType which can be
4492         { AUTO, ON, OFF }.
4493
4494         * gtk/gtkrange.[ch]: added properties "lower-stepper-sensitivity"
4495         and "upper-stepper-sensitivity" and public getters/setters for
4496         them. Changed stepper drawing to honor the new properties.
4497
4498         * gtk/gtk.symbols: added the new symbols.
4499
4500 2005-11-10  Matthias Clasen  <mclasen@redhat.com>
4501
4502         * gtk/gtkcombobox.c: Add show-popup and hide-popup signals and
4503         emit them when the popup is shown or hidden.  (#162531, Tommi
4504         Komulainen)
4505
4506         * tests/testcombo.c: Add an example of popuplating a combobox
4507         on click.
4508
4509         * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column): Another
4510         erroneous semicolon.
4511
4512         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get): Remove an erroneous
4513         semicolon. 
4514
4515         Don't corrupt odd keymaps (#316638, Kean Johnston)
4516         
4517         * gdk/x11/gdkkeys-x11.c (set_symbol): Auxiliary function to
4518         handle frobbing keymaps with odd numbers of syms/code.
4519         
4520         * gdk/x11/gdkkeys-x11.c (update_keymaps): Use set_symbol() to 
4521         frob the keymap.
4522
4523         Improve navigation to parent folders.  (#318444, Andrei Yurkevich)
4524         
4525         * gtk/gtkpathbar.[hc]: Add a child_path argument to
4526         the path_clicked signal.
4527         * gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the
4528         child_path, if it is provided.
4529         * gtk/marshalers.list (path_bar_clicked): Add the necessary
4530         glue.
4531
4532         * gtk/gtkmenu.c: Fix some compiler warnings. (#321141,
4533         Kjartan Maraas)
4534         
4535         * gtk/gtk.symbols: 
4536         * gtk/gtktreeview.h: 
4537         * gtk/gtktreeview.c: Implement a getter for headers-clickable.
4538         (#163851, Richard Hult)
4539
4540 2005-11-10  Michael Natterer  <mitch@imendio.com>
4541
4542         Applied patch from maemo-gtk that addresses many issues wrt
4543         display migration and display closing (bug #85715).
4544
4545         * gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
4546         default display to NULL when it's closed. Instead set the most
4547         recently opened display as new default (if one exists).
4548
4549         * gdk/gdkpango.c (on_renderer_display_closed): fixed signature
4550         of this callback.
4551
4552         * gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
4553         exist before unrefing them.
4554
4555         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
4556         is closed, allow destruction of the root window.
4557
4558         * gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
4559         dispose(), free stuff that was leaked before.
4560
4561         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
4562         the xsettings_client still exists before destroying it.
4563
4564         * gdk/x11/gdkkeys-x11.c: added finalization and free the allocated
4565         X resources.
4566
4567         * gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new
4568         dispose() implementation.
4569
4570         * gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to
4571         dispose() and check if it still exists before unrefing it. Set
4572         their pointers to NULL/None *after* upchaining in dispose(),
4573         because X11 implementations of members of the parent class still
4574         need them for their own destruction.
4575
4576         * gdk/x11/gdkvisual-x11.c: removed finalize() implementation which
4577         was g_error()ing when finalizing a visual.
4578
4579         * gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use
4580         get_clipboard_widget() because it would create the widget if it
4581         doesn't exist. Use g_object_get_data() directly instead.
4582
4583         * gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature
4584         of this callback.
4585
4586 2005-11-10  Simos Xenitellis  <simos@gnome.org>
4587
4588         * configure.in: Added Tatar (tt) to ALL_LINGUAS.
4589
4590 Wed Nov  9 16:29:42 2005  Tim Janik  <timj@imendio.com>
4591
4592         * gtk/gtkrange.c: patch from maemo-gtk that changes GtkRange
4593         to render its arrows insensitive when the adjustment is in
4594         its min or max position. this makes range arrow behaviour 
4595         consistent with spin button behaviour. (#321056)
4596
4597 2005-11-09  Tor Lillqvist  <tml@novell.com>
4598
4599         * gdk/gdkinternals.h
4600         * gdk/gdk.c (gdk_debug_keys[]): Add new GDK_DEBUG_DRAW flag to
4601         the GdkDebugFlag enum.
4602
4603         * gdk/win32/gdkdrawable-win32.c: Use DRAW to trigger GDK_NOTEs in
4604         this file instead of MISC. Now asking for MISC will give mainly
4605         window manipulation debugging output with the Win32 backend.
4606
4607 2005-11-09  Tor Lillqvist  <tml@novell.com>
4608
4609         * gdk/win32/gdkwindow-win32.c: Remove unnecessary includes.
4610
4611         (_gdk_win32_get_adjusted_client_rect): Remove this two-line
4612         function which was used only in one place.
4613
4614         (get_outer_rect): Use _gdk_win32_adjust_client_rect().
4615
4616         (gdk_window_set_geometry_hints): If we have identical minimum and
4617         maximum size hints, remove the resize and maximize
4618         decorations/functions. (#104514)
4619
4620         If we have a maximum size hint, remove the maximize
4621         decoration/function but ensure the resize decoration/function is
4622         available. Otherwise ensure both resize and maximize
4623         decorations/functions are there.
4624
4625         (set_or_clear_style_bits): Factored out common code from
4626         gdk_window_set_decorations() and gdk_window_set_functions(). 
4627
4628         Hack the window style setting once more: Only touch the window
4629         style bits corresponding to the GdkWMDecoration or GdkWMFunction
4630         parameter bitmasks. Hopefully this finally is the correct thing to
4631         do. We used to clear all other bits than those that were being
4632         set, or set all other bits than those that were being cleared.
4633
4634         Take into account that adding or removing decorations leaves the
4635         window's outer size unchanged, i.e., the client area's size and
4636         position change. This is apparently not what we want, so change
4637         also the window's (outer) position and size appropriately so that
4638         the client area's position and size stay constant.
4639
4640         gtk-demo's color selector dialog is now non-resizable like on X11
4641         (I tested with metacity in GNOME). Torn off menus are shrinkable
4642         vertically but have a maximum size, and are not maximizable or
4643         minimizable, like on X11.
4644
4645         (gdk_window_set_decorations, gdk_window_set_functions): Let
4646         set_or_clear_decorations() do most of the job.
4647
4648         * gdk/win32/gdkprivate-win32.h: Remove declaration of
4649         _gdk_win32_get_adjusted_client_rect().
4650
4651 2005-11-09  Tor Lillqvist  <tml@novell.com>
4652
4653         * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32)
4654         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_init,
4655         gdk_window_get_type_hint, gdk_window_get_type_hint): Store the
4656         type hint. Implement gdk_window_get_type_hint() by just returning
4657         the hint stored.
4658
4659 2005-11-09  Tor Lillqvist  <tml@novell.com>
4660
4661         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
4662         Remove code that has been permanently ifdeffed out for two years.
4663
4664 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
4665
4666         * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
4667         finalizing a gc.  (#320789, Nickolay V. Shmyrev)
4668
4669         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
4670         icons if they would make the request large enough to cause
4671         Xlib to loose the connection.  (#320909, Claudio Saavedra)
4672
4673 2005-11-08  Michael Natterer  <mitch@imendio.com>
4674
4675         * gdk/gdk.symbols
4676         * gdk/gdkwindow.h
4677         * gdk/x11/gdkwindow-x11.c: added gdk_window_get_type_hint() (patch
4678         extracted from maemo-gtk). Fixes bug #320872.
4679
4680 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
4681
4682         * gtk/gtkfilechooserdefault.c (shortcuts_reorder): Don't
4683         looks the bookmark label when reordering.  (#320720, Jeremy Cook)
4684
4685         * gtk/gtkpathbar.[hc]: Set focus-on-click to FALSE for all buttons.
4686         Don't grab focus when a slider button is pressed, instead, use
4687         a bit in the pathbar struct to determine whether to scroll up
4688         or down.  (#314486, Carlos Garnacho)
4689
4690         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
4691         Don't popup the completions if the focus has already been
4692         moved somewhere else.  (#319914, Christian Persch)
4693
4694         * gtk/gtktoolitem.c (_gtk_tool_item_toolbar_reconfigured): 
4695         Raise the drag_window after reconfiguring the 
4696         toolbar.  (#320803, Christian Persch)
4697
4698         * gtk/gtk.symbols: 
4699         * gtk/gtkfilechooserbutton.h: 
4700         * gtk/gtkfilechooserbutton.c: Add a focus-on-click property
4701         with setter and getter.  (#318945, Christian Persch)
4702         
4703 Mon Nov  7 16:15:16 2005  Tim Janik  <timj@imendio.com>
4704
4705         * configure.in: fixed missing $X_CFLAGS setup in case x11.pc is present.
4706
4707 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
4708
4709         * configure.in: Adjust to the stock icon changes.
4710         
4711 2005-11-07  Tor Lillqvist  <tml@novell.com>
4712
4713         * gdk/win32/gdkcursor-win32.c (pixbuf_to_hbitmaps_normal):
4714         Correct the calculation of maskstride. (#320152, Peter Zelezny)
4715         
4716 2005-11-06  Michael Natterer  <mitch@imendio.com>
4717
4718         * gtk/Makefile.am (icons): fixed rule to actually create the
4719         symlinks, erroring out if anything goes wrong.
4720
4721 2005-11-06  Tor Lillqvist  <tml@novell.com>
4722
4723         * gtk/updateiconcache.c (build_cache): Can't rename a file if the
4724         target exists on Win32. First rename the target temporarily, then
4725         if the renaming of the source to target fails, restore the
4726         original name for the target.
4727
4728         * gtk/Makefile.am: Use EXEEXT in the dependency on gtk-update-icon-cache.
4729
4730 2005-11-06  Tor Lillqvist  <tml@novell.com>
4731
4732         (pixbuf_to_hbitmaps_alpha_winxp): Use an 1-bit mask bitmap,
4733         like pixbuf_to_hbitmaps_normal().
4734         (_gdk_win32_pixbuf_to_hicon_supports_alpha): Check
4735         G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x by
4736         setting the G_WIN32_PRETEND_WIN9X environment variable.
4737         
4738 2005-11-06  Tor Lillqvist  <tml@novell.com>
4739
4740         Make icon masks work on Win98 (#320152, Peter Zelezny)
4741
4742         * gdk/win32/gdkcursor-win32.c (create_color_bitmap): Take also a
4743         parameter for the depth of the bitmap, so that this function can
4744         be used to create 1-bit bitmaps, too.
4745         (pixbuf_to_hbitmaps_normal): Create an 1-bit bitmap for the mask,
4746         and initialize it properly.
4747
4748 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
4749
4750         Store builtin stock icons in an icon cache, instead of
4751         populating a hash table with pixbufs at startup, to save both
4752         memory and startup time.
4753
4754         * gtk/stock-icons/*: Reorganize the icons in a directory structure
4755         suitable for gtk-update-icon-cache, and rename them to match the
4756         stock ids.
4757
4758         * gtk/gtkiconcache.[hc]: Support non-mmapped icon caches, and
4759         add _gtk_icon_cache_has_icon_in_directory().
4760
4761         * gtk/updateiconcache.c: Support a --source <VARIABLE> argument
4762         to store the contents of the icon cache in a C header.
4763
4764         * gtk/gtkbuiltincache.h: Generated private header which contains 
4765         the icon cache for the builtin icons.
4766
4767         * gtk/gtkicontheme.c: Create a GtkIconCache for the builtin
4768         icons, and use that in addition to the hash table whenever
4769         builtin icons are searched.
4770
4771         * gtk/gtkiconfactory.c: Add GTK_ICON_SOURCE_STATIC_ICON_NAME and
4772         use it for static stock ids. 
4773         (get_default_icons): Don't add the builtin
4774         icons to the icon theme, just register the stock ids.
4775         (render_fallback_image): Take the fallback image out of the
4776         builtin icon cache.
4777         
4778         * gtk/Makefile.am: Remove stock-icons from SUBDIRS and add 
4779         the necessary machinery to rebuild gtkbuiltincache.h.
4780
4781 2005-11-04  Michael Natterer  <mitch@imendio.com>
4782
4783         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): applied patch
4784         from maemo-gtk that changes the mtime check for rc files from
4785         '>' to '!=', otherwise theme changes go unnoticed when turning
4786         back the clock (Tommi Komulainen).
4787
4788 2005-11-04  Tor Lillqvist  <tml@novell.com>
4789
4790         * gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
4791         leak on Win32.
4792
4793 2005-11-03  Tor Lillqvist  <tml@novell.com>
4794
4795         * gdk/win32/gdkcursor-win32.c: As there is only one GdkDisplay in
4796         the Win32 backend, check that GdkDisplay* parameters are equal to
4797         _gdk_display instead of using the unnecessarily general
4798         GDK_IS_DISPLAY().
4799
4800         (pixbuf_to_hbitmaps_alpha_winxp): Rename the variables for the
4801         color bitmap to have "color" in their name, for similarity with
4802         pixbuf_to_hbitmaps_normal(). Create a color bitmap for the mask,
4803         too, instead of creating a b&w bitmap with CreateBitmap(). Set up
4804         the mask bitmap's contents, ones for those pixels in the color
4805         bitmap where the alpha is zero, zero for other pixels. We used to
4806         use an uninitialized mask bitmap! This meant that icons and
4807         cursors created presumably worked more or less by accident.
4808         Totally blank icons with zero alpha everywhere (as used by
4809         gtktrayicon.c) definitely did not work as expected.
4810
4811         * gtk/Makefile.am: Include gtkstatusicon.c on all platforms.
4812
4813         * gtk/gtkstatusicon.c: Implement for Win32. Use code from
4814         gtktrayicon-win32.c as applicable. (gtktrayicon-win32.c is not
4815         necessary and can be removed from CVS. It has never been mentioned
4816         in gtk/Makefile.am.) No tray icon widget, GtkImage or GtkTooltips
4817         are used on Win32. One label widget is used (but never shown) as
4818         gtk_widget_render_icon() needs a widget.
4819
4820         Ifdefs used as necessary in several places. It might be cleaner to
4821         split out the backend-specific parts to separate files, or at
4822         least collect them into separate blocks in the file.
4823
4824         (wndproc): New function. Window procedure to monitor mouse events
4825         in the system tray icon. Call gtk_status_icon_button_press() as
4826         needed.
4827         (create_tray_observer): New function. Creates a hidden window that
4828         only serves as a tray icon message observer.
4829
4830         * tests/teststatusicon.c (icon_activated): Position the dialog
4831         with GTK_WIN_POS_CENTER.
4832         (do_quit): New function, hide and unref the GtkStatusIcon, and
4833         call gtk_main_quit().
4834         (popup_menu): Add a Quit menu item that calls do_quit().
4835         
4836 2005-11-02  Tor Lillqvist  <tml@novell.com>
4837
4838         * gdk/win32/gdkcolor-win32.c
4839         * gdk/win32/gdkscreen-win32.c
4840         * gdk/win32/gdkwindow-win32.c: Whitespace consistency
4841         fixes. Remove superfluous test for GdkWindow* parameters being
4842         non-NULL. Testing GDK_IS_WINDOW() is enough. As there is only one
4843         GdkScreen and one GdkDisplay in the Win32 backend, use those
4844         variables instead of the getter functions. For GdkDisplay* and
4845         GdkScreen* parameters, check that they are equal to the
4846         corresponding singleton variables instead of the more general
4847         GDK_IS_DISPLAY() or GDK_IS_SCREEN().
4848
4849 2005-11-02  Matthias Clasen  <mclasen@redhat.com>
4850
4851         * gtk/gtktextview.c: Remove some g_return_if_fail() from
4852         static functions, replace some others by g_assert().
4853         
4854         * gtk/gtktextview.c (selection_motion_event_handler) 
4855         (gtk_text_view_start_selection_drag): Keep track of the original
4856         selection boundaries during a drag selection, in order to correctly
4857         decide when to extend or shrink the selection.  (#320167,
4858         reported by Arvind S N, patch by Paolo Borelli)
4859
4860         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
4861         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Replace
4862         manual offset calculations by g_utf8_offset_to_pointer().
4863         (#320360, Paolo Borelli)
4864
4865 Tue Nov  1 16:18:24 2005  Tim Janik  <timj@imendio.com>
4866
4867         * gtk/gtkrbtree.[hc]: get rid of GAllocator usage, allocate and free 
4868         nodes via the g_slice_*() API.
4869         _gtk_rbtree_new(): fixed wrong node allocation via g_new().
4870
4871 2005-11-01  Tor Lillqvist  <tml@novell.com>
4872
4873         * gdk/win32/gdkprivate-win32.h
4874         * gdk/win32/gdkglobals-win32.c
4875         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Add more
4876         pre-interned GdkAtoms and pre-registered clipboard formats. Sort
4877         their declarations, definitions and assignments into a more
4878         logical and consistent order.
4879
4880         * gdk/win32/gdkmain-win32.c (_gdk_win32_cf_to_string): Include the
4881         CF_ prefix for the predefined clipboard format names. Put quotes
4882         around registered format names to distinguish them.
4883         
4884         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Return
4885         immediately with a warning if the property type is STRING, TEXT,
4886         COMPOUND_TEXT or SAVE_TARGETS, as these are X11-specific that we
4887         should never pretend to handle on Win32. Handle only UTF8_STRING
4888         here, other formats with delayed rendering. Use \uc1 instead of
4889         \uc0 when generating Rich Text Format for easier testability on
4890         XP, where WordPad misinterprets \uc0 encoded characters. Add more
4891         GDK_NOTE debugging output for Clipboard operations.
4892
4893         * gdk/win32/gdkselection-win32.c: Debugging printout improvements.
4894         (gdk_selection_convert): Don't pretent to handle STRING, just
4895         UTF8_STRING. Streamline error handling, don't unnecessarily have a
4896         GError which then isn't used for anything anyway if it gets set.
4897         (gdk_win32_selection_add_targets): Skip also STRING, TEXT,
4898         COMPOUND_TEXT and SAVE_TARGETS in addition to UTF8_STRING.
4899
4900         * config.h.win32.in: Sync with what configure produces.
4901
4902         * configure.in: Don't look for X_PACKAGES unless building for
4903         x11. (#313986, John Ehresman)
4904
4905 2005-10-28  Erdal Ronahi  <erdal.ronahi@gmail.com>
4906
4907         * configure.in: Added ku (Kurdish) to ALL_LINGUAS
4908                         Wondered why there was no ku there before??
4909
4910 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
4911
4912         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Add the popup
4913         window to the toplevels window group.  (#319912, Christian Persch)
4914
4915 2005-10-28  Kristian Rietveld  <kris@gtk.org>
4916
4917         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): fix
4918         stupid thinko.
4919
4920 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
4921
4922         * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix the anchor of the default
4923         drag cursors.  (#319200, Federico Mena Quintero)
4924
4925         * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle
4926         Shift-G to go to the previous match, like firefox.  (#320061, Christian 
4927         Neumair)
4928
4929         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_build_level): Fix a
4930         C99ism.  (#320000, Kazuki Iwamoto)
4931
4932         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Add the little 
4933         stars.  (#319985, Bastien Nocera)
4934
4935         * gtk/gtktreeview.c (gtk_tree_view_search_entry_flush_timeout): Return
4936         FALSE, so we don't flush repeatedly.  (#319151, Alexander Larsson)
4937
4938 2005-10-26  Michael Natterer  <mitch@imendio.com>
4939
4940         Fix bug #319974:
4941
4942         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
4943         make sure that setting any of pixbuf/stock-id/icon-name resets the
4944         others because they are mutually exclusive, and that unsetting any
4945         of them only resets the pixbuf and nothing else. Also added
4946         some missing g_object_notify().
4947
4948         (gtk_cell_renderer_pixbuf_get_property): simplified calls to
4949         g_value_set_object().
4950
4951         (gtk_cell_renderer_pixbuf_create_stock_pixbuf)
4952         (gtk_cell_renderer_pixbuf_create_named_icon_pixbuf): added
4953         g_object_notify ("pixbuf").
4954
4955 2005-10-27  Matthias Clasen  <mclasen@redhat.com>
4956
4957         * gtk/gtktreeview.c (gtk_tree_view_button_press): Be more 
4958         careful about initializing cell_area.  (#319382, Tommi
4959         Komulainen)
4960
4961         * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
4962         Ctrl-PageUp/PageDown.  (#318670, Christian Neumair)
4963
4964         * demos/gtk-demo/clipboard.c (paste_received): Only set the
4965         text if it is not NULL.  (#319930, Thomas Klausner)
4966
4967         * gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the
4968         loader before trying to get the pixbuf.  (#319930, Thomas Klausner)
4969
4970 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
4971
4972         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
4973         * gtk/gtkthemes.c (gtk_theme_engine_load): 
4974         * gtk/gtkimmodule.c (gtk_im_module_load): Use G_MODULE_BIND_LAZY
4975         when dlopening modules.  (#319557, Laszlo Peter)
4976
4977 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
4978
4979         * gtk/gtktextbtree.c (gtk_text_btree_resolve_bidi): Only use text
4980         segments when determining text direction.  (#319065, Tommi Komulainen)
4981
4982         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash
4983         on duplicate destroy.  (#318953, Gustavo Carneiro)
4984
4985         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog): 
4986         Point out that destroy-with-parent is a bad idea for the dialog
4987         passed to this function.  (#318943, Christian Persch)
4988
4989         * */Makefile.am: use $(GLIB_MKENUMS) instead of 
4990         glib-mkenums.  (#318582, Damien Carbery)
4991
4992         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Clarify
4993         docs.  (#317682, Christian Neumair)
4994
4995         * gdk/x11/gdkdnd-x11.c: Remove an extra const which doesn't
4996         seem to affect the placement of the data in the readonly 
4997         section, and causes problems with some compilers.  (#317844)
4998
4999 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
5000
5001         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
5002         Fix some issues with background drawing in RTL.  (#318781,
5003         Eric Cazeaux)
5004
5005         * tests/Makefile.am:
5006         * tests/testentrycompletion.c: Apply a patch by Christian
5007         Persch to add property editors.
5008
5009         * gtk/gtkstatusicon.c: Emit activate on single-click,
5010         not on double-click, change proposed by Milosz Derezynski.
5011
5012 2005-10-25  Kristian Rietveld  <kris@gtk.org>
5013
5014         Fixes #311955, reported by Markku Vire; and a lot more.
5015
5016         * gtk/gtktreemodelfilter.c: Made this thing work correctly.
5017         Levels can now have invisible nodes cached, functions have been
5018         rewritten/refactored to take this into account; also the logic in
5019         some functions has been corrected.
5020         
5021         Each referenced node now references all visible children or a single
5022         invisible child, in order to be able to monitor all changes in the
5023         child model required for correct operation.
5024
5025         When a virtual root is set, all nodes on the virtual root level are
5026         referenced.
5027
5028         At last, a bunch of random bug fixes and comment updates.
5029
5030 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
5031
5032         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Add some
5033         more docs.  (#319722, Paolo Borelli)
5034
5035         * gdk/x11/gdkxftdefaults.c (init_xft_settings): Make the 
5036         initialization of screen_x11->xft_rgba more explicit.  (#319627,
5037         Bogdan Nicula)
5038
5039         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Fix whitespace
5040         in a blurb.  (#319499, Francisco Javier F. Serrador)
5041
5042 2005-10-24  Matthias Clasen  <mclasen@redhat.com>
5043
5044         Add settings to hide the input method and Unicode control character
5045         submenus in the context menus of GtkEntry and GtkTextView.  
5046         
5047         * gdk/x11/gdkevents-x11.c: Map GTK+ settings to X settings.
5048         
5049         * gtk/gtksettings.c (gtk_settings_class_init): Declare GTK+ settings here.
5050
5051         * gtk/gtktextview.c (popup_targets_received): 
5052         * gtk/gtkentry.c (popup_targets_received): Use the settings here.
5053
5054 2005-10-24  Kristian Rietveld  <kris@gtk.org>
5055
5056         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): emitting
5057         row-has-child-toggled when the level is not in the cache does not
5058         make sense.  (This bug probably crept in during the early stages
5059         of GtkTreeModelSort when there wasn't a correct row-has-child-toggled
5060         implementation yet),
5061         (gtk_tree_model_sort_real_unref_node): only get the child iter
5062         when we will actually also use it.
5063
5064 2005-10-22  Michael Natterer  <mitch@imendio.com>
5065
5066         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
5067         widget being realized, in addition to being visible, to avoid
5068         running into precondition check in gtk_tree_view_get_cell_area().
5069         (approved by Kris).
5070
5071 2005-10-22  Dom Lachowicz <cinamod@hotmail.com>
5072
5073         * modules/engines/ms-windows/msw_style.c (setup_msw_rc_style): 
5074         Experimentally, scrollbar steppers can shrink to 8 pixels on 
5075         Win32. Reflect that in the theme.
5076         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Experimentally,
5077         there is a 1-pixel border between a scrollbar and its child
5078         in ScrolledWindows on Win32. Reflect that in the theme.
5079         
5080 2005-10-20  Matthias Clasen  <mclasen@redhat.com>
5081
5082         * gtk/gtklabel.c (gtk_label_create_window): Use GDK_WINDOW_CHILD
5083         for the selection window.  (#318806, Alex Larsson)
5084
5085 2005-10-18  Federico Mena Quintero  <federico@ximian.com>
5086
5087         Fixes bug #317999:
5088
5089         * tests/autotestfilechooser.c
5090         (test_button_folder_states_for_action): Test that we have either
5091         $cwd or the explicitly-set folder.
5092         (test_reload_sequence): Likewise.
5093
5094         * gtk/gtkfilechooserdefault.c
5095         (gtk_file_chooser_default_get_current_folder): If our reload_state
5096         is RELOAD_EMPTY, return a GtkFilePath corresponding to $cwd.
5097
5098 2005-10-14  Tor Lillqvist  <tml@novell.com>
5099
5100         * gdk/win32/gdkdisplay-win32.c: Remove the clipboard viewer code.
5101         It didn't really do anything useful, and was just confusing and
5102         incomplete. Comments claimed we don't do delayed rendering, but in
5103         fact we do, for images. (The delayed rendering code has other
5104         problems, though, see #168173.) The clipboard viewer code was
5105         probably even buggy (the WM_CHANGECBCHAIN handled didn't propagate
5106         the message when necessary). It was just test code, it said so in
5107         a comment. Add something similar back later if necessary.
5108
5109         (_win32_on_clipboard_change,
5110         _gdk_win32_register_clipboard_notification): Remove.
5111
5112         (gdk_display_supports_selection_notification,
5113         gdk_display_request_selection_notification): Always just return
5114         FALSE. We didn't generate any GDK_OWNER_CHANGE events anywhere.
5115
5116 2005-10-13  Tor Lillqvist  <tml@novell.com>
5117
5118         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't treat
5119         Alt-Enter specially. It does not have any special meaning and
5120         should be passed on to the application. (#318378, Tim Evans)
5121
5122 2005-10-13  Tor Lillqvist  <tml@novell.com>
5123
5124         Set visual depth to 24 for 32 bits-per-pixel devices on
5125         Win32. This allows gdk_drawable_real_draw_pixbuf() to use the
5126         optimized composite_0888() function rather than the slower image
5127         dithering functions to draw pixbufs (#313993, John Ehresman)
5128
5129         * gdk/win32/gdkimage-win32.c (_gdk_win32_new_image): Use
5130         _gdk_windowing_get_bits_for_depth() to initialize
5131         GdkImage::bits_per_pixel.
5132         (_gdk_windowing_get_bits_for_depth): Return 32 bits for depth 24.
5133
5134         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use
5135         _gdk_windowing_get_bits_for_depth() to initialize
5136         BITMAPINFOHEADER::biBitCount.
5137
5138         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Set
5139         GdkVisual::depth to 24 even if GetDeviceCaps(BITSPIXEL) returns
5140         32.
5141
5142 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
5143
5144         * demos/gtk-demo/appwindow.c: (about_cb):
5145           use PACKAGE_VERSION,bump year (#318654)
5146
5147 2005-10-11  Matthias Clasen  <mclasen@redhat.com>
5148
5149         * gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off 
5150         toggle here with the matching on toggle if it immediately follows. 
5151         This is a common case, and handling it here prevents quadratic blowup 
5152         in cleanup_line() below.  (#317125)
5153
5154         * gtk/gtktextsegment.h: 
5155         * gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
5156         the character counts into this function instead of computing them
5157         again.
5158
5159 2005-10-10  Tommi Komulainen  <tommi.komulainen@iki.fi>
5160
5161         * gtk/gtkfilechooser.h (GtkFileChooserError): Add ALREADY_EXISTS error
5162         code.
5163         * gtk/gtkfilechooserdefault.c
5164         (gtk_file_chooser_default_add_shortcut_folder): Return an error code
5165         when the shortcut already exists in the sidebar.  (#147521)
5166
5167 2005-10-09  Matthias Clasen  <mclasen@redhat.com>
5168
5169         * tests/testcombo.c: Demonstrate how to use custom widgets in
5170         a GtkComboBox.  
5171
5172 2005-10-07  Federico Mena Quintero  <federico@ximian.com>
5173
5174         Fixes bug #317999:
5175
5176         * tests/autotestfilechooser.c (test_reload_sequence): Ensure that
5177         the the result of gtk_file_chooser_get_folder() is NULL or
5178         non-NULL at the right times.  Log the tests.
5179         (test_button_folder_states): New test for the initial states of
5180         the current folder in GtkFileChooserButton.
5181         (main): Test that the number of warnings/errors/critical errors is
5182         zero.
5183
5184         * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder):
5185         Clarify the documentation on when this can return NULL.
5186         (gtk_file_chooser_get_current_folder_uri): Likewise.
5187
5188         * gtk/gtkfilechooserbutton.c (struct
5189         _GtkFileChooserButtonPrivate): Added a folder_has_been_set flag;
5190         we use it to keep track of whether a folder has been set.
5191         (gtk_file_chooser_button_map):  Implement.  If no folder has been
5192         loaded before, we at least try to load $cwd here.
5193         (gtk_file_chooser_button_constructor): If the construct-time
5194         dialog already has a folder set, turn on our folder_has_been_set
5195         flag.
5196         (dialog_current_folder_changed_cb): Turn on our
5197         folder_has_been_set flag.
5198
5199 2005-10-07  Michael Natterer  <mitch@gimp.org>
5200
5201         * gtk/gtkfilechooserdefault.c: remove some explicit #defines of
5202         PROFILE_FILE_CHOOSER because they break compilation after the
5203         removal of <unistd.h>.
5204
5205 2005-10-07   Matthias Clasen  <mclasen@redhat.com>
5206
5207         * gtk/gtkfilechooserdefault.c: Properly fix the unistd.h include
5208         by moving it out of the profiling ifdef.
5209
5210         * gtk/gtkfilechooserdefault.c: Remove a redundant (and
5211         unconditional) include of unistd.h  (#318211, Kazuki Iwamoto)
5212
5213         * gtk/gtktexttag.c (gtk_text_attributes_ref): Use
5214         g_return_val_if_fail(), not g_return_if_fail().  (#318412,
5215         Kazuki Iwamoto)
5216
5217 2005-10-06  Matthias Clasen  <mclasen@redhat.com> 
5218                 
5219         * gtk/gtk.symbols:
5220         * gtk/gtktextbuffer.h:
5221         * gtk/gtktextbuffer.c: Add a readonly has-selection property
5222         with a getter.  (#318161, Paolo Borelli)
5223
5224 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
5225
5226         * README.in: Start collecting release notes for 2.10.
5227
5228         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
5229         leak fix, since the assertion failures were traced to 
5230         an xchat bug.  (#314696)
5231         
5232         * gtk/gtkstyle.c (gtk_style_detach):
5233         (gtk_style_attach):  Documentation improvements.
5234         (gtk_style_detach): Assert that the attach_count is > 0.
5235
5236 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
5237
5238         * gtk/gtkfilechooserdefault.c (switch_to_shortcut): Take a
5239         shortcut position, not a ShortcutsIndex, to make the function more
5240         generic.
5241         (home_folder_handler): Pass the resolved index to
5242         switch_to_shortcut(), rather than just SHORTCUTS_HOME.
5243         (desktop_folder_handler): Likewise for SHORTCUTS_DESKTOP.
5244         (gtk_file_chooser_default_class_init): Add a "quick-bookmark"
5245         binding signal, and bind it to Alt-1, Alt-2. ..., Alt-0.  These
5246         make the respective key switch to the first, second, ..., tenth
5247         bookmark.
5248         (quick_bookmark_handler): Implement.
5249
5250 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
5251
5252         * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and
5253         Desktop; just use their real names on the file system for the
5254         user-visible names.
5255
5256         * gtk/gtkfilechooserdefault.c
5257         (gtk_file_chooser_default_class_init): Add a "desktop-folder"
5258         binding signal, and bind it to M-d by default.
5259         (desktop_folder_handler): Implement the default handler.
5260         (home_folder_handler): Use a helper function.
5261         (switch_to_shortcut): New helper function.
5262         (shortcuts_append_home): Don't special-case the name of "Home";
5263         just use the folder name.
5264
5265 2005-10-04  Tor Lillqvist  <tml@novell.com>
5266
5267         * gtk/gtkcalendar.c (gtk_calendar_init): Make it compile without
5268         HAVE__NL_TIME_FIRST_WEEKDAY. (#317910, Mathias Hasselmann)
5269
5270 2005-10-04  Matthias Clasen  <mclasen@redhat.com>
5271
5272         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Revert the change
5273         from yesterday, since it leads to assertion failures.  (#317879,
5274         Sebastian Bacher)
5275
5276 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
5277
5278         * gtk/gtkcalendar.c (gtk_calendar_init): Call 
5279         calendar_compute_days() after setting priv->week_start.
5280
5281 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
5282
5283         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
5284         removing it from the hash table.  (#314696, Benjamin Berg)
5285
5286 2005-10-01  Tor Lillqvist  <tml@novell.com>
5287
5288         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
5289         BitBlt() fails with ERROR_INVALID_HANDLE, the most probable cause
5290         is that the the desktop isn't visible because the session has been
5291         switched, the screen is locked, or a terminal server session
5292         disconnected, so no error message necessary. (#137796)
5293
5294         It is of course remotely possible that BitBlt() failing with
5295         ERROR_INVALID_HANDLE might also be caused by some other
5296         problem. We could strive for perfection and track whether the
5297         desktop is visible by using WTSRegisterSessionNotification() and
5298         handling WM_WTSESSION_CHANGE. I think that's overdoing it just for
5299         this issue, though. If we would track desktop visibility, we
5300         should then avoid even trying to update the display at all while
5301         the desktop isn't visible.
5302
5303 2005-09-30  Matthias Clasen  <mclasen@redhat.com>
5304
5305         * gtk/gtkcalendar.c (gtk_calendar_init): Another attempt
5306         to correct the calculations for the first week day. We may
5307         just have to remove this code if too many locales turn out 
5308         to have broken data. 
5309
5310         * gtk/gtkimage.c (gtk_image_expose): Don't leak pixbuf in
5311         some cases.  (#317611, Tommi Komulainen)
5312
5313         * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
5314         Prevent overflow when storing size hints in an unsigned
5315         short variable. Tracked down by Ray Strode and Søren Sandmann.
5316
5317 2005-09-29  Matthias Clasen  <mclasen@redhat.com>
5318
5319         * gtk/gtkbutton.c (gtk_button_set_image): Check arguments.  (#317491,
5320         Paolo Borelli)
5321
5322         * gtk/gtkpaned.c (gtk_paned_grab_notify): Stop drags when being
5323         grab shadowed.  (#317332)
5324
5325 2005-09-29  Tor Lillqvist  <tml@novell.com>
5326
5327         * gtk-zip.sh.in: DLLs are always in bin nowadays, no need to test.
5328
5329 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
5330
5331         * tests/autotestfilechooser.c (test_reload_sequence): Oops, return
5332         if the unmap test fails.
5333         (test_reload_sequence): Use gtk_widget_show_now() instead of
5334         gtk_widget_show() for the dialog.
5335         Thanks to Tim Janik for noticing these.
5336
5337 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
5338
5339         * tests/testcellrenderertext.c: New file with a set of tests for
5340         GtkCellRendererText.  The idea is to run a text renderer through
5341         most of its interesting property values to see that it works
5342         correctly.
5343
5344         * tests/Makefile.am: Added testcellrenderertext.
5345
5346         * gtk/gtkfilechooserdefault.c (load_set_model): Mark the
5347         entry/exit of this function for profiling.
5348         (gtk_file_chooser_default_style_set): Mark the start/end of the
5349         calls to the parent class and the the signal emission for profiling.
5350
5351 2005-09-29  Tor Lillqvist  <tml@novell.com>
5352
5353         * gtk/gtkmain.c (_gtk_get_localedir): The locale directory is
5354         passed to bindtextdomain() which isn't UTF-8-aware, so convert to
5355         system codepage using g_win32_locale_filename_from_utf8().
5356         (#317457, Kazuki Iwamoto)
5357
5358 2005-09-28  Matthias Clasen  <mclasen@redhat.com>
5359
5360         * gtk/gtkselection.c (_gtk_selection_request): Free mult_atoms 
5361         here. (#317039, Paolo Borelli)
5362
5363         * gtk/gtktexttag.h: 
5364         * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
5365         to make this function work as boxed copy function.  (#317455,
5366         Gustavo Carneiro)
5367
5368         * gtk/gtkclipboard.c (request_image_received_func): Don't unref
5369         NULL.  (#316828, Tor Lillqvist)
5370
5371 2005-09-28  Tor Lillqvist  <tml@novell.com>
5372
5373         * modules/input/imime.c: Include <config.h>. (#317444, Kazuki
5374         Iwamoto)
5375
5376 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
5377
5378         Don't reload the current folder unnecessarily on ::map().
5379
5380         * gtk/gtkfilechooserprivate.h (ReloadState): New enum to represent
5381         the reloading state.
5382         (struct _GtkFileChooserDefault): Added a "reload_state" field.
5383
5384         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
5385         Initialize impl->reload_state.
5386         (gtk_file_chooser_default_map): Check the impl->reload_state; load
5387         a default folder if no folder has been set, or reload the current
5388         one only if we had been unmapped first.
5389         (gtk_file_chooser_default_update_current_folder): Set the
5390         reload_state to RELOAD_HAS_FOLDER.
5391         (gtk_file_chooser_default_unmap): Implement, and set the
5392         reload_state to RELOAD_WAS_UNMAPPED.
5393         (shortcuts_model_create): Don't call shortcuts_add_bookmarks()
5394         here; they'll get (re)loaded on ::map() anyway.
5395
5396         * gtk/gtkfilechooserwidget.c
5397         (gtk_file_chooser_widget_constructor): Don't set a default folder here.
5398
5399         * tests/autotestfilechooser.c (test_action_widgets): Don't take in
5400         a dialog; build it ourselves.
5401         (test_reload): New test to ensure that we don't load the default
5402         folder more than once, and that we reload it when
5403         unmapping/remapping.
5404         (get_impl_from_dialog): New utility function.
5405         (test_widgets_for_current_action): Use get_impl_from_dialog().
5406
5407 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
5408
5409         * gtk/gtkfilechooserdefault.c
5410         (gtk_file_chooser_default_constructor): Mark the entry/exit of
5411         this function for profiling.
5412         (check_icon_theme): Likewise.
5413         (change_icon_theme): Likewise.
5414         (settings_notify_cb): Likewise.
5415         (gtk_file_chooser_default_screen_changed): Likewise.
5416         (update_chooser_entry): If the selection is empty, clear the file
5417         name entry only if we are in CREATE_FOLDER mode.  In SAVE mode,
5418         nothing will be selected when the user starts typeahead in the
5419         treeview, and we don't want to clear the file name entry in that
5420         case --- the user could be typing-ahead to look for a folder name.
5421         Fixes bug #308332, patch by Jürg Billeter.
5422
5423 2005-09-27  Matthias Clasen  <mclasen@redhat.com>
5424
5425         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
5426         Pop below the entry if there's more free space below the entry
5427         than above.  (#316948, Tommi Komulainen)
5428
5429 2005-09-26  Federico Mena Quintero  <federico@ximian.com>
5430
5431         Do not create the save mode-specific widgets in the open modes, so
5432         that we don't carry their baggage around.
5433
5434         * gtk/gtkfilechooserdefault.c
5435         (gtk_file_chooser_default_constructor): Don't create the
5436         save_widgets here.
5437         (save_widgets_create): Set the impl->save_widgets directly here,
5438         instead of passing the widgets back to the caller.  Also, pack
5439         them into the impl's box.
5440         (update_appearance): Create or destroy the save widgets as
5441         appropriate.  Set the action of the save_file_name_entry here.
5442         (shortcuts_add_current_folder): Set the active item in the
5443         save_folder_combo only if it exists.
5444         (gtk_file_chooser_default_set_property): Don't set the action of
5445         the save_file_name_entry here.
5446         (gtk_file_chooser_default_update_current_folder): Set the base
5447         folder of the save_file_name_entry only if the entry exists.
5448         (shortcuts_drag_data_received_cb): Cast the selection_data->data
5449         to (const char *) since that's what shortcuts_drop_uris() expects.
5450         (file_list_drag_data_received_cb): Likewise, for
5451         g_uri_list_extract_uris().
5452
5453 2005-09-26  Tor Lillqvist  <tml@novell.com>
5454
5455         * gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
5456         the shaped flag here, too. (#316871)
5457         (gdk_window_shape_combine_region): Currently unimplemented, so
5458         don't do anything to the shaped flag here.
5459
5460 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
5461
5462         Fix #316871, reported by Dan Winship:
5463         
5464         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
5465
5466         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) 
5467         (gdk_window_shape_combine_region): Set it here.
5468
5469         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
5470         remove the child area for shaped windows.
5471
5472 2005-09-23  Matthias Clasen  <mclasen@redhat.com>
5473
5474         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
5475         Don't leak expander pixbufs.  (#316946, Tommi Komulainen)
5476
5477 2005-09-22  Michael Natterer  <mitch@imendio.com>
5478
5479         Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
5480         consistent with GTK+ terminology:
5481
5482         * gtk/gtkcellrendererkeys.[ch]
5483         * tests/testkeys.c: removed...
5484
5485         * gtk/gtkcellrendereraccel.[ch]
5486         * tests/testaccel.c: ...and added.
5487
5488         * gtk/Makefile.am
5489         * gtk/gtk.h
5490         * gtk/gtk.symbols
5491         * tests/Makefile.am: changed accordingly.
5492
5493 2005-09-22  Matthias Clasen  <mclasen@redhat.com>
5494
5495         * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
5496         for the grab-broken-event signal, noticed by Damon Chaplin.
5497
5498 2005-09-21  Tor Lillqvist  <tml@novell.com>
5499
5500         * gdk/win32/gdkselection-win32.c (gdk_selection_convert,
5501         gdk_text_property_to_text_list_for_display,
5502         gdk_text_property_to_utf8_list_for_display,
5503         gdk_win32_selection_add_targets,
5504         _gdk_win32_selection_convert_to_dib): Free return value from
5505         gdk_atom_name().
5506         (gdk_text_property_to_text_list_for_display): Drop GError variable
5507         that isn't actually used after being set.
5508
5509 2005-09-20  Johan Dahlin  <jdahlin@async.com.br>
5510
5511         * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in 
5512         documentation.
5513
5514 2005-09-20  Tor Lillqvist  <tml@novell.com>
5515
5516         * gdk/win32/gdkselection-win32.c
5517         (gdk_selection_owner_get_for_display): Do return the correct owner
5518         for CLIPBOARD (i.e., the owner of the Windows Clipboard, if it is
5519         a window GDK knows about). The reason to return NULL seems to have
5520         gone when in the fix for bug #163702 the artificial
5521         GDK_SELECTION_CLEAR event generation was removed from
5522         gdk_selection_send_notify_for_display(). Fixes bug #316552.
5523
5524 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
5525
5526         Avoid unnecessary XkbGetState() calls and XkbStateNotify
5527         events.  (#151555, Søren Sandmann)
5528
5529         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use 
5530         XkbSelectEventDetails() to select XkbStateNotify events
5531         for only the state we care about.
5532
5533         * gdk/x11/gdkprivate-x11.h:
5534         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_state_changed): Pass
5535         the event into the function and update the keymap state from
5536         the state information contained in the event. Adjust all callers.
5537         
5538 2005-09-19  Matthias Clasen  <mclasen@redhat.com>
5539
5540         * gtk/gtkiconview.c: Use g_list_nth_data() instead of g_list_nth()->data
5541         in multiple places to avoid segfaults if the index is out of range.  
5542         (#316422, Guillaume Cottenceau)
5543         (gtk_icon_view_set_drag_dest_item): 
5544         (gtk_icon_view_scroll_to_path): Fix a typo in the docs.  (#316419,
5545         #316424, Guillaume Cottenceau)
5546
5547 2005-09-18  Hans Breuer  <hans@breuer.org>
5548
5549         * gtk/gtktrayicon-win32.c : now handling events by hard-coded 
5550         g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
5551
5552 2005-09-18  Hans Breuer  <hans@breuer.org>
5553
5554         * gdk/gdk.symbols gdk/win32/gdkwin32.h gdk/win32/gdkcursorwin32.c : export
5555         _gdk_win32_pixbuf_to_hicon() as gdk_win32_pixbuf_to_hicon_libgtk_only()
5556         * gtk/gtktrayicon-win32.c : a lot of debug spew but it has started to show
5557         the icon and is blinking with teststatusicon. More to come ...
5558
5559 2005-09-18  Hans Breuer  <hans@breuer.org>
5560
5561         * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
5562         cause gtkprogressbar.c has #include <config.h> conditionally; less
5563         noise from generated gtk.def
5564         * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
5565         
5566         * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
5567         For me it works as well as the *NIX implemenation, that is not at all.
5568
5569         * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
5570
5571         * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
5572         only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
5573         back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
5574         again - if compiled properly.
5575
5576         * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
5577         already coming with Gtk+. Makes it compile on win32.
5578
5579 2005-09-18  Guilherme de S. Pastore  <gpastore@cvs.gnome.org>
5580
5581         * README.cvs-commits: fixed some tiny typos
5582
5583 2005-09-16  Tor Lillqvist  <tml@novell.com>
5584
5585         * modules/engines/ms-windows/msw_style.c (draw_extension,
5586         draw_box_gap): Check whether the widget actually is a GtkNotebook
5587         before treating it as such. Drop some unneeded local variables,
5588         use parameter with same information instead. (#316412)
5589
5590 2005-09-15  Federico Mena Quintero  <federico@ximian.com>
5591
5592         * tests/autotestfilechooser.c: Start a set of automated tests for
5593         the file chooser.  The only test in there right now doesn't pass
5594         yet.  It specifies the intended behavior of the first optimization
5595         of a series which I'll do on the file chooser (see
5596         http://primates.ximian.com/~federico/news-2005-09.html#14 for the
5597         details of this optimization).
5598
5599         * tests/Makefile.am: Added autotestfilechooser.c.
5600
5601         * gtk/gtkfilechooserprivate.h (struct
5602         _GtkFileChooserDialogPrivate): Move all the file chooser's private
5603         structures to here, so that they can be accessed by
5604         tests/autotestfilechooser.c:  _GtkFileChooserDialogPrivate,
5605         _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
5606
5607         * gtk/gtkfilechooserdialog.c: See above.
5608
5609         * gtk/gtkfilechooserwidget.c: See above.
5610
5611         * gtk/gtkfilechooserdefault.c: See above.
5612
5613 Thu Sep 15 15:27:55 2005  Tim Janik  <timj@imendio.com>
5614
5615         * gtk/gtkwindow.c: 
5616         gtk_window_map_event(): new function to work around lost unmap requests.
5617         fixes bug #316180.
5618
5619 2005-09-14  Federico Mena Quintero  <federico@ximian.com>
5620
5621         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
5622         an easy-to-find profiling marker when starting to create a file
5623         chooser.
5624         (browse_files_model_finished_loading_cb): Likewise, for when the
5625         chooser is finished loading.
5626
5627 2005-09-14  Tristan Van Berkom <tvb@cvs.gnome.org>
5628
5629         * gtk/gtkcolorbutton.c: Check "color" argument in 
5630         gtk_color_button_set_color ()
5631
5632 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
5633
5634         * gtk/gtklabel.c (gtk_label_get_type): 
5635         * gtk/gtkbutton.c (gtk_button_get_type): 
5636         * gtk/gtkwindow.c (gtk_window_group_get_type): No point in 
5637         using a mem chunk for window groups, buttons, labels.
5638
5639         * gtk/updateiconcache.c (foreach_remove_func): Fix
5640         a use-after-free bug.  (#316256, Alexander Nedotsukov)
5641
5642 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
5643
5644         * gtk/*.c: Various cleanups.  (#315360, Kjartan Maraas)
5645
5646         * gdk/*.c: Various cleanups.  (#315359, Kjartan Maraas)
5647         
5648 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
5649
5650         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
5651         Let GDK_Return pass through in some more cases.
5652
5653         * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
5654         activating the entry. 
5655
5656         * gtk/gtkiconview.c (gtk_icon_view_class_init):
5657         (gtk_icon_view_get_dest_item_at_pos):  Fix typos in the 
5658         docs.  (#316008, #316027, #316121, Guillaume Cottenceau)
5659
5660         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
5661         (#316001, Guillaume Cottenceau)
5662
5663         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
5664         mistake in the docs.  (#315993, Guillaume Cottenceau)
5665
5666         * tests/testentrycompletion.c (create_simple_completion_model): Add
5667         some strings containing multibyte characters.
5668
5669         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
5670         Fix prefix insertion for multibyte characters.  (#316095,
5671         Tommi Komulainen)
5672
5673         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
5674         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): Silently
5675         return NULL if the widget is not realized.  (#316023,
5676         Guillaume Cottenceau)
5677
5678 2005-09-11  Matthias Clasen  <mclasen@redhat.com>
5679
5680         * gdk/gdk.symbols: 
5681         * gdk/gdkproperty.h: 
5682         * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string): 
5683         New function to avoid pointless strdups when creating atoms
5684         from static strings.  
5685
5686         * gdk/x11/*.c:
5687         * gtk/*.c:  Use gdk_atom_intern_static_string() where 
5688         appropriate.
5689
5690 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
5691
5692         * gtk/gtkcellrendererkeys.h: 
5693         * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
5694         and editing accelerators, a port of EggCellRendererKeys .
5695
5696         * gtk/gtk.symbols:
5697         * gtk/gtk.h:
5698         * gtk/Makefile.am: Add the keys cell renderer.
5699
5700         * tests/Makefile.am: 
5701         * tests/testkeys.c: Test GtkCellRendererKeys
5702
5703 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
5704
5705         Make it possible to determine if a key event is for a
5706         modifier key:
5707         
5708         * gdk/x11/gdkprivate-x11.h: 
5709         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): 
5710         New function to determine if a keycode is mapped to a modifier.
5711         (get_xkb): Get the modmap.
5712
5713         * gdk/x11/gdkevents-x11.c (translate_key_event): Set the 
5714         is_modifier bit by calling _gdk_keymap_key_is_modifier().
5715
5716         * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
5717         bit.
5718
5719 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
5720
5721         * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an 
5722         unused variable, noticed by Kjartan Maraas.
5723
5724 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
5725
5726         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): 
5727         Make drag reordering work properly for columns other than the
5728         first.  (#315054, Dan Winship)
5729         
5730         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
5731         invalid fontnames better. (#136926, Michael R. Walton)
5732         
5733         Stop cursor blinking in non-editable regions of a text view.
5734         (#311508, Torbjörn Andersson)
5735         
5736         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): 
5737         (cursor_blinks): Take editability into account when deciding
5738         whether the cursor blinks.
5739         (gtk_text_view_button_release_event): 
5740         (gtk_text_view_move_cursor_internal): Update cursor blinking here.
5741
5742         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
5743         Use connect_after to connect to the focus_out event. This
5744         ensures that the entry has already stopped blinking by the time
5745         we emit the edited signal.  (#315229, Thomas Leonard)
5746
5747         * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
5748
5749         * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
5750         unsigned ints to -1.  (#315481, Kjartan Maraas)
5751
5752         * gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
5753         to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
5754         (#314473, Stanislav Brabec)
5755
5756 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
5757
5758         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
5759         memory handling.  (#314975, Torsten Schoenfeld)
5760
5761         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
5762         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
5763         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
5764         * gtk/gtklabel.c (gtk_label_class_init): 
5765         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
5766         Stylistic improvements and clarifications for some blurbs. 
5767         (#315520, Clytie Siddall)
5768
5769 2005-09-09  Tor Lillqvist  <tml@novell.com>
5770
5771         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
5772         display name. There is only one GdkDisplay on Win32, and
5773         constructing the display name isn't entirely trivial, so cacheing
5774         is probably worth it. For instance GIMP calls this function a lot.
5775         (gdk_display_open): Call gdk_display_get_name() to prime the
5776         cached name.
5777         (gdk_display_get_n_screens, gdk_display_get_screen,
5778         gdk_display_get_default_screen): Verify parameter correctness like
5779         the X11 backend does.
5780
5781         * gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
5782         Return a freshly allocated string, as the API specifies. Fixes a
5783         heap corruption problem that caused random errors and crashes in
5784         GIMP, for instance.
5785
5786 2005-09-07  Matthias Clasen  <mclasen@redhat.com>
5787
5788         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
5789         Make C-u commit and restart hex input if we are already in a
5790         hex sequence.
5791
5792 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
5793
5794         * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
5795         (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
5796         if they are mapped to the same modifier.
5797
5798         * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
5799         to gtkstatusicon.c and gtktrayicon-x11.c
5800
5801         * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
5802         default accel mod mask.
5803
5804         * gtk/gtkaccelgroup.c (gtk_accelerator_parse): 
5805         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
5806         Don't use GDK_ALT_MASK.
5807
5808         * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
5809
5810 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
5811
5812         Add support for extra virtual modifiers:  (#85780, Owen Taylor)
5813         
5814         * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
5815         modifiers.
5816
5817         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
5818         Mod2 - Mod5 and against Super, Hyper, Meta.
5819
5820         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
5821         * gtk/gtkaccelgroup.c (gtk_accelerator_parse) 
5822         (gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
5823
5824         * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a 
5825         modmap to maintain the information which X modifiers map to
5826         virtual modifiers.
5827         (get_xkb): Set up the modmap from the XKB tables.
5828         (update_keymaps): Set up the modmap from the information returned
5829         by XGetModifierMapping in the non-XKB case.
5830
5831         * gdk/x11/gdkprivate-x11.h: 
5832         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New 
5833         function to set the virtual modifiers in the state.
5834
5835         * gdk/x11/gdkevents-x11.c (translate_key_event): Call 
5836         _gdk_keymap_add_virtual_modifiers here.
5837
5838         * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super, 
5839         Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
5840         for GDK_MOD1_MASK.
5841
5842 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
5843
5844         * gtk/gtkaction.c (connect_proxy): Set the label of a button
5845         if it has no child.  (#315253, John Finlay)
5846
5847 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
5848
5849         * gtkimcontextsimple.h: Add a modifiers_dropped bit
5850
5851 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
5852
5853         * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
5854         on destroy to avoid problems when they are called on a destroyed
5855         widget.  (#315135, John Cupitt)
5856         
5857         * gtk/gtkentry.c (gtk_entry_class_init):
5858         * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
5859         for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
5860
5861         * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
5862         code. Now we only steal a single key combination, Ctrl-Shift-U,
5863         instead of sixteen. 
5864         A hex Unicode sequence must be started with Ctrl-Shift-U, followed
5865         by a sequence of hex digits entered with Ctrl-Shift still held.
5866         Releasing one of the modifiers or pressing space while the modifiers
5867         are still held commits the character. It is possible to erase
5868         digits using backspace.
5869         As an extension to the above, we also allow to start the sequence
5870         with Ctrl-Shift-U, then release the modifiers before typing any
5871         digits, and enter the digits without modifiers.
5872         (#82011, Owen Taylor)
5873         
5874 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
5875
5876         * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
5877         we still need to deliver the destroy event.  (#314980, Chris Lahey)
5878
5879         * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset 
5880         im context before committing \n or \t.
5881
5882 2005-09-02  Alexander Larsson  <alexl@redhat.com>
5883
5884         * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
5885         (shortcuts_activate_volume):
5886         Handle base_path being null in the rest of the cases (#310270)
5887
5888 2005-09-02  Tor Lillqvist  <tml@novell.com>
5889
5890         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
5891         cursor position also in root window coordinates. Prune out
5892         superfluous WM_MOUSEMOVE events even earlier, based on root window
5893         coordinates. Windows sends WM_MOUSEMOVE messages after a new
5894         window has ben mapped below the cursor even if the mouse doesn't
5895         move. We used to generate GDK_MOTION_NOTIFY in these cases. This
5896         confused at least gtk_menu_motion_notify(). (#314995)
5897
5898         * gtk/gtkintl.h: No need to include config.h here. It caused
5899         warnings about GTK_LOCALEDIR being redefined on Win32 when
5900         compiling files where gtkintl.h is included after gtkprivate.h
5901         (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
5902
5903         * gtk/gtkplug.c: Include config.h.
5904
5905 2005-09-01  Matthias Clasen  <mclasen@redhat.com>
5906
5907         * gtk/gtkfilesystemunix.c: Pass statbufs down to 
5908         xdg_mime_get_mime_type_for_file() where possible, to avoid
5909         useless re-stating.  
5910         
5911         * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
5912         typo.  (#314921, Guillaume Cottenceau)
5913
5914         * gdk/*.c: Intern some more strings.
5915         * gtk/gtkintl.h: 
5916         * gtk/*.c: Define an I_() macro and use it instead of the 
5917         bulky g_intern_static_string().
5918
5919 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
5920
5921         * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
5922         instead of copying it.
5923
5924         * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
5925
5926         * gtk/*.c: Also intern static strings passed to 
5927         g_object_set_data().
5928
5929         * gdk/Makefile.am: 
5930         * gtk/Makefile.am: Intern type names in code generated by 
5931         glib-mkenums, too.
5932
5933         * gtk/*.c: 
5934         * gdk/x11/*.c: 
5935         * gdk/*.c: Intern type names before registering the type to avoid 
5936         unnecessary copies.
5937
5938         * configure.in: Require GLib 2.9.0
5939
5940 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
5941
5942         * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
5943         and add icon-size and icon-size-set properties.  (#314172)      
5944
5945         * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
5946         groups across transient parents.  (#312918, Christian Persch)
5947
5948         * gtk/gtktreemodel.c: Some documentation fixes.  (#314882,
5949         Guillaume Cottenceau)
5950
5951         * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): 
5952         Fix a typo in the docs.  (#314878, Guillaume Cottenceau)
5953
5954 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
5955
5956         * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
5957         make C-/ select all and C-\ unselect all.  (#309301,
5958         Kathy Fernandez)
5959
5960         * gtk/gtkimcontextsimple.c: Change the compose sequence for
5961         soft hyphen to be multi_key-minus-minus-space, and add
5962         compose sequences multi_key-minus-minus-period and 
5963         multi_key-minus-minus-minus for en dash and em dash.
5964         (#172653, Christian Lohmaier)
5965
5966         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
5967         code.  (#313946, Christian Persch)
5968
5969         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
5970         fix for the default value of the "ui" property.
5971
5972 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
5973
5974         * gtk/gtk.symbols: 
5975         * gtk/gtkselection.h:
5976         * gtk/gtkselection.c: Add functions which look for text, image
5977         or uri targets in an array of atoms.   (#314089, Mark Wielaard)
5978
5979         * gtk/gtk.symbols: 
5980         * gtk/gtkselection.h:
5981         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
5982         Add a function to check wether targets include uri.  
5983         (#314092, Mark Wielaard)
5984         
5985         * gtk/gtk.symbols: 
5986         * gtk/gtkwindow.h: 
5987         * gtk/gtkwindow.c: Add a deletable property with getter
5988         and setter, to control the close button in the window 
5989         frame.  (#59718, Havoc Pennington)
5990
5991 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
5992
5993         * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
5994         to the arrow keys for menu navigation.  (#162825, Carl Worth)
5995
5996         * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
5997
5998         * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
5999
6000         * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock): 
6001         * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
6002         refer to nonexisting stock ids.
6003
6004         * gtk/gtktextview.c (popup_targets_received): 
6005         * gtk/gtkentry.c (popup_targets_received): Construct
6006         the "Select All" menuitem from stock.
6007
6008         * gtk/stock-icons/stock_select_all_{16,24}.png:
6009         * gtk/stock-icons/Makefile.am: 
6010         * gtk/gtkiconfactory.c:
6011         * gtk/gtkstock.h: 
6012         * gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
6013         Calum Benson)
6014
6015         * gtk/gtktrayicon.c: Add a pointer to the spec.
6016
6017         * gtk/gtkstatusicon-x11.c: Add docs.
6018
6019         * gtk/gtkstatusicon.h: Fix a typo.
6020
6021         Add a cross-platform "tray icon" API, by
6022         porting EggStatusIcon/EggTrayIcon (#105101)
6023         
6024         * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
6025         displays an icon in a notification area.
6026
6027         * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
6028         X11, using GtkTrayIcon.
6029
6030         * gtk/gtktrayicon.h: 
6031         * gtk/gtktrayicon.c: An implementation of the freedesktop.org
6032         system tray specification, not public API.
6033
6034         * gtk/gtk.symbols: Add new exported functions.
6035
6036         * gtk/gtk.h: Include gtkstatusicon.h.
6037
6038         * gtk/Makefile.am: Add new files.
6039
6040         * tests/Makefile.am:
6041         * tests/teststatusicon.c: Test for GtkStatusIcon.
6042
6043 2005-08-29  Christopher Aillon  <caillon@redhat.com>
6044
6045         * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
6046         and GTK_STOCK_DISCONNECT
6047         
6048 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
6049
6050         * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify): 
6051         Use XFixesChangeSaveSet if available.  (#314682)
6052
6053         * gtk/gtkmenu.c (gtk_menu_grab_notify):  Only cancel if the menu
6054         was active.  (#314298, Christian Persch, analysis by Mark McLoughlin)
6055
6056 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
6057
6058         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
6059         accidentally leftover duplicate pixbuf creation.  (#314700,
6060         Kjartan Maraas)
6061
6062         * gtk/gtksettings.c (settings_update_cursor_theme): Don't 
6063         leak the cursor theme name.  (#314693, Kjartan Maraas)
6064
6065         * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free 
6066         state.children in all cases.  (#313862, Kjartan Maraas)
6067
6068 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
6069
6070         * po/POTFILES.in, po-properties/POTFILES.in:
6071         Add gdk/gdkscreen.c
6072
6073 2005-08-27  Matthias Clasen  <mclasen@redhat.com>
6074
6075         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
6076         value of the ui property. (#314532, Yong Wang)
6077
6078         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
6079         when G_MAXLONG is passed as length.  
6080
6081 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
6082
6083         * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
6084         to avoid overloading --force.  (JP Rosevaar)
6085
6086 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
6087
6088         * configure.in: Bump version to 2.9.0
6089
6090         * gdk/gdk.symbols: 
6091         * gdk/gdkscreen.h: 
6092         * gdk/gdkscreen.c: Make the GdkScreen font options api
6093         public, and add properties GdkScreen::font-options and
6094         GdkScreen::resolution.  (#314004)
6095
6096         * gdk/gdkpango.c:
6097         * gtk/gtksettings.c:
6098         * gtk/gtkwidget.c: Adjust all callers.
6099         
6100         * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
6101         * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
6102         * gdk/gdkscreen.c: Include gdkintl.h.
6103
6104         * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
6105         variable warning, pointed out by Colin Walters. (#314585)
6106
6107 2005-08-26  Tor Lillqvist  <tml@novell.com>
6108
6109         * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
6110         printouts.
6111         (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
6112
6113 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
6114
6115         * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
6116         of week_start.  (#314473, JP Rosevaar)
6117
6118 2005-08-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
6119
6120         * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
6121         lock.  (#314533, Thomas Fitzsimmons)
6122
6123 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
6124
6125         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
6126         NULL gracefully.  (#314523, Ed Catmur)
6127
6128 2005-08-25  Owen Taylor  <otaylor@redhat.com>
6129
6130         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
6131         Handle theme == NULL.
6132
6133 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
6134
6135         * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
6136         y offset into account when positioning the popup.  (#314470,
6137         Christian Persch)
6138
6139 2005-08-25  Owen Taylor  <otaylor@redhat.com>
6140
6141         * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
6142         as instance_init, not base_init! (#314452, Fix from Frederic
6143         Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
6144         rather than 1 for a negative flag value.
6145
6146 2005-08-24  Owen Taylor  <otaylor@redhat.com>
6147
6148         * gdk/gdkpango.c (draw_error_underline): Add a note about
6149         cut-and-paste between here and Pango.
6150
6151 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
6152
6153         * === Released 2.8.2 ===
6154
6155         * gtk/gtkclipboard.c (request_image_received_func): Use the correct
6156         callback for image/gif, and also try image/bmp.  (#314086,  Mark 
6157         Wielaard)
6158
6159         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon): 
6160         Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev.  (#314382,
6161         Sebastien Bacher)
6162         
6163         * NEWS: Updates
6164
6165         * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
6166         and cursor settings get propagated down to the screen initially.
6167         Pointed out by Frederic Crozat.
6168
6169         * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
6170         message if the screen is NULL. Noticed by Kjartan Maraas.
6171
6172 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
6173
6174         * Bump version
6175
6176         * === Released 2.8.1 ===
6177
6178         * NEWS: Updates
6179         
6180 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
6181
6182         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
6183         against lazy filterers which return values other than TRUE or
6184         FALSE from their visible func.  (#314335)
6185
6186 2005-08-23  Owen Taylor  <otaylor@redhat.com>
6187
6188         Fix for #314004, reported by Michael Reinsch:
6189
6190         * gdk/gdk.symbols:
6191         * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
6192         Add gdk_screen_get/set_resolution_libgtk_only()
6193
6194         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
6195         the options for the screen on the newly created context.
6196
6197         * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c: 
6198         Move font options and dpi code from gtkwidget.c to gtksettings.c, set
6199         the font options on the screen.
6200
6201         * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
6202         the font options from the screen and set them on the context.
6203
6204 2005-08-23  Kristian Rietveld  <kris@gtk.org>
6205
6206         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
6207         bother inserting new rows in a level with a zero refcount and
6208         immediately free the level. (Fixes #312350, reported by Markku Vire).
6209
6210 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
6211
6212         * gtk/updateiconcache.c: Complain when there is no index.theme file
6213         in the specified directory, unless --force is used. Also add an
6214         --index-only option to create caches without image data.
6215
6216         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
6217         C99ism.  (#314262, Robert Jeff Mitchell)
6218         
6219 2005-08-22  Manish Singh  <yosh@gimp.org>
6220
6221         * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
6222
6223         * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
6224
6225 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
6226
6227         * gtk/gtkwindow.c (gtk_window_client_event): 
6228         * gtk/gtkicontheme.c (ensure_valid_themes) 
6229         (_gtk_icon_theme_check_reload): Implement a clientmessage based
6230         scheme for makeing sure that all GTK+ applications notice if an
6231         icon theme has been updated. This should prevent multiple versions
6232         of an icon theme cache to be mapped in memory at the same time,
6233         which can cause excessive memory consumption.  (#313156, Chris 
6234         Lahey)
6235
6236 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
6237
6238         * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
6239         regarding icon theme changes.
6240
6241         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
6242         pixbufs which are backed by the mmapped memory of an icon cache,
6243         increase the refcount of the icon cache, so that the memory is not
6244         munmapped away underneath the pixbuf upon icon theme changes.  
6245         (#314170, Kjartan Maraas)
6246
6247         * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order 
6248         to link against Xext.  (#314062)
6249
6250         * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
6251         overruns.  (#314081, Hans Breuer)
6252
6253 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
6254
6255         * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
6256         returned layout must not be modified.
6257
6258 Sat Aug 20 16:12:14 2005  Jonathan Blandford  <jrb@redhat.com>
6259
6260         * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
6261         scroll_to_path if the model changes.
6262
6263         * gtk/gtkiconview.c: (gtk_icon_view_destroy),
6264         (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
6265         (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
6266         we're realized, #312798
6267         (gtk_icon_view_set_model): clear scroll_to_path if the model
6268         changes.
6269
6270 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
6271
6272         * gtk/gtkrange.c (gtk_range_adjustment_changed) 
6273         (gtk_range_adjustment_value_changed):  Don't queue a draw
6274         if the layout has not changed.  (#313991, Benjamin Berg)
6275
6276 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
6277
6278         * gtk/gtktreeitem.c: Remove duplicate lines.  (#313344,
6279         Benoit Carpentier)
6280
6281         * modules/engines/ms-windows/msw_style.c (setup_system_styles): 
6282         Fix a typo. 
6283
6284         * gtk/gtkfilechooserbutton.c (change_icon_theme) 
6285         (model_add_special, model_add_special, model_add_volumes):
6286         Handle pixbuf being NULL without warnings. Also, don't
6287         leak pixbuf references when the icon theme is changed.
6288
6289         * gtk/gtkmain.c (gtk_get_event_widget): Don't access
6290         the user data on destroyed windows, since at best
6291         it can be a stale pointer.  (#313953, Robin Green)      
6292
6293 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
6294
6295         * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
6296         (#313900, Sebastien Bacher)
6297
6298         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
6299         FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
6300
6301         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display) 
6302         (xdnd_read_actions, get_client_window_at_coords_recurse): 
6303         Free data returned from XGetWindowProperty. 
6304
6305         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) 
6306         Free data returned from XGetWindowProperty.  (313867, Kjartan
6307         Maraas)
6308         
6309         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
6310         children in all cases.  (#313862, Kjartan Maraas)
6311
6312         * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
6313         in the per-directory hash, even if they come from the icon cache. 
6314         We tried to avoid that before, but as a result leaked icon data
6315         structs.  (#313852, Kjartan Maraas)
6316
6317 2005-08-18  Matthias Clasen  <mclasen@redhat.com>
6318
6319         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
6320         signal handlers on destroy, not on finalize.  (#313759, Brett Atoms)
6321
6322 2005-08-15  Owen Taylor  <otaylor@redhat.com>
6323
6324         * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
6325         files for x11/xext. (Jonas Bonn)
6326
6327 2005-08-15  Tor Lillqvist  <tml@novell.com>
6328
6329         * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
6330         inside GTK_NOTE.
6331
6332 2005-08-15  Owen Taylor  <otaylor@redhat.com>
6333
6334         * configure.in: Fix have_base_pc / have_base_x_pc typo.
6335
6336         * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
6337         (#313417, James Andrewartha)
6338
6339         * configure.in: Add fontconfig to X_PACKAGES, since we use it for
6340         FcNameConstant(). (More of #313417)
6341
6342 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
6343
6344         * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
6345         modal dialogs, make sure to inherit the window group from 
6346         the parent, since we don't inherit window groups across
6347         transient parents currently.  (#312918, Christian Persch)
6348
6349         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): 
6350         * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs. 
6351
6352         * gtk/gtkiconview.c (gtk_icon_view_select_path) 
6353         (gtk_icon_view_scroll_to_path): Handle paths of depth 0
6354         gracefully.  (#312796, Jonathan Blandford)
6355
6356         * tests/testtoolbar.c: Add some more tests for menu placement.
6357
6358         * gtk/gtkmenutoolbutton.c (menu_position_func): 
6359         * gtk/gtktoolbar.c (menu_position_func): Improve positioning
6360         of toolbutton menus and of the overflow menu.  (#312937, 
6361         #153870, Christian Persch, Paolo Borelli)
6362
6363 2005-08-15  Tor Lillqvist  <tml@novell.com>
6364
6365         * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
6366         the nonportable <libgen.h> and dirname().
6367
6368 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
6369
6370         * gtk/gtksizegroup.c: Use object data to mark widgets and
6371         groups as visited, so that we avoid constant extra list
6372         traversals. Also allocate quarks in class_init.  (#311618,
6373         Michael Natterer)
6374
6375         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the 
6376         download location for the hicolor icon theme. (#313475, Olexiy 
6377         Avramchenko)
6378
6379         * gtk/gtkicontheme.c: Remove debug spew. 
6380
6381 2005-08-15  Owen Taylor  <otaylor@redhat.com>
6382
6383         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): 
6384         * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): 
6385         * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
6386         Handle pixmap == NULL when checking for a colormap.
6387         (Allin Cottrell).
6388
6389 2005-08-14  Matthias Clasen  <mclasen@redhat.com>
6390
6391         * gtk/updateiconcache.c: Store only one copy of the pixel data
6392         for symlinked icons. To achieve this, maintain a hashtable 
6393         mapping pathnames to pixel data, and share the pixel data for
6394         all symlinks resolving to the same pathname. When writing out
6395         the image data, write out the pixel data only the first time
6396         it is met, and store the offset pointing to the first copy
6397         for use in all later cases.
6398         This reduces the size of the Bluecurve icon cache from 40
6399         to 13MB. (#312972)
6400