]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Set the shaped flag here, too. (#316871)
[~andy/gtk] / ChangeLog.pre-2-10
1 2005-09-26  Tor Lillqvist  <tml@novell.com>
2
3         * gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
4         the shaped flag here, too. (#316871)
5         (gdk_window_shape_combine_region): Currently unimplemented, so
6         don't do anything to the shaped flag here.
7
8 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
9
10         Fix #316871, reported by Dan Winship:
11         
12         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
13
14         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) 
15         (gdk_window_shape_combine_region): Set it here.
16
17         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
18         remove the child area for shaped windows.
19
20 2005-09-23  Matthias Clasen  <mclasen@redhat.com>
21
22         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
23         Don't leak expander pixbufs.  (#316946, Tommi Komulainen)
24
25 2005-09-22  Michael Natterer  <mitch@imendio.com>
26
27         Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
28         consistent with GTK+ terminology:
29
30         * gtk/gtkcellrendererkeys.[ch]
31         * tests/testkeys.c: removed...
32
33         * gtk/gtkcellrendereraccel.[ch]
34         * tests/testaccel.c: ...and added.
35
36         * gtk/Makefile.am
37         * gtk/gtk.h
38         * gtk/gtk.symbols
39         * tests/Makefile.am: changed accordingly.
40
41 2005-09-22  Matthias Clasen  <mclasen@redhat.com>
42
43         * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
44         for the grab-broken-event signal, noticed by Damon Chaplin.
45
46 2005-09-21  Tor Lillqvist  <tml@novell.com>
47
48         * gdk/win32/gdkselection-win32.c (gdk_selection_convert,
49         gdk_text_property_to_text_list_for_display,
50         gdk_text_property_to_utf8_list_for_display,
51         gdk_win32_selection_add_targets,
52         _gdk_win32_selection_convert_to_dib): Free return value from
53         gdk_atom_name().
54         (gdk_text_property_to_text_list_for_display): Drop GError variable
55         that isn't actually used after being set.
56
57 2005-09-20  Johan Dahlin  <jdahlin@async.com.br>
58
59         * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in 
60         documentation.
61
62 2005-09-20  Tor Lillqvist  <tml@novell.com>
63
64         * gdk/win32/gdkselection-win32.c
65         (gdk_selection_owner_get_for_display): Do return the correct owner
66         for CLIPBOARD (i.e., the owner of the Windows Clipboard, if it is
67         a window GDK knows about). The reason to return NULL seems to have
68         gone when in the fix for bug #163702 the artificial
69         GDK_SELECTION_CLEAR event generation was removed from
70         gdk_selection_send_notify_for_display(). Fixes bug #316552.
71
72 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
73
74         Avoid unnecessary XkbGetState() calls and XkbStateNotify
75         events.  (#151555, Søren Sandmann)
76
77         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use 
78         XkbSelectEventDetails() to select XkbStateNotify events
79         for only the state we care about.
80
81         * gdk/x11/gdkprivate-x11.h:
82         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_state_changed): Pass
83         the event into the function and update the keymap state from
84         the state information contained in the event. Adjust all callers.
85         
86 2005-09-19  Matthias Clasen  <mclasen@redhat.com>
87
88         * gtk/gtkiconview.c: Use g_list_nth_data() instead of g_list_nth()->data
89         in multiple places to avoid segfaults if the index is out of range.  
90         (#316422, Guillaume Cottenceau)
91         (gtk_icon_view_set_drag_dest_item): 
92         (gtk_icon_view_scroll_to_path): Fix a typo in the docs.  (#316419,
93         #316424, Guillaume Cottenceau)
94
95 2005-09-18  Hans Breuer  <hans@breuer.org>
96
97         * gtk/gtktrayicon-win32.c : now handling events by hard-coded 
98         g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
99
100 2005-09-18  Hans Breuer  <hans@breuer.org>
101
102         * gdk/gdk.symbols gdk/win32/gdkwin32.h gdk/win32/gdkcursorwin32.c : export
103         _gdk_win32_pixbuf_to_hicon() as gdk_win32_pixbuf_to_hicon_libgtk_only()
104         * gtk/gtktrayicon-win32.c : a lot of debug spew but it has started to show
105         the icon and is blinking with teststatusicon. More to come ...
106
107 2005-09-18  Hans Breuer  <hans@breuer.org>
108
109         * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
110         cause gtkprogressbar.c has #include <config.h> conditionally; less
111         noise from generated gtk.def
112         * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
113         
114         * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
115         For me it works as well as the *NIX implemenation, that is not at all.
116
117         * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
118
119         * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
120         only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
121         back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
122         again - if compiled properly.
123
124         * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
125         already coming with Gtk+. Makes it compile on win32.
126
127 2005-09-18  Guilherme de S. Pastore  <gpastore@cvs.gnome.org>
128
129         * README.cvs-commits: fixed some tiny typos
130
131 2005-09-16  Tor Lillqvist  <tml@novell.com>
132
133         * modules/engines/ms-windows/msw_style.c (draw_extension,
134         draw_box_gap): Check whether the widget actually is a GtkNotebook
135         before treating it as such. Drop some unneeded local variables,
136         use parameter with same information instead. (#316412)
137
138 2005-09-15  Federico Mena Quintero  <federico@ximian.com>
139
140         * tests/autotestfilechooser.c: Start a set of automated tests for
141         the file chooser.  The only test in there right now doesn't pass
142         yet.  It specifies the intended behavior of the first optimization
143         of a series which I'll do on the file chooser (see
144         http://primates.ximian.com/~federico/news-2005-09.html#14 for the
145         details of this optimization).
146
147         * tests/Makefile.am: Added autotestfilechooser.c.
148
149         * gtk/gtkfilechooserprivate.h (struct
150         _GtkFileChooserDialogPrivate): Move all the file chooser's private
151         structures to here, so that they can be accessed by
152         tests/autotestfilechooser.c:  _GtkFileChooserDialogPrivate,
153         _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
154
155         * gtk/gtkfilechooserdialog.c: See above.
156
157         * gtk/gtkfilechooserwidget.c: See above.
158
159         * gtk/gtkfilechooserdefault.c: See above.
160
161 Thu Sep 15 15:27:55 2005  Tim Janik  <timj@imendio.com>
162
163         * gtk/gtkwindow.c: 
164         gtk_window_map_event(): new function to work around lost unmap requests.
165         fixes bug #316180.
166
167 2005-09-14  Federico Mena Quintero  <federico@ximian.com>
168
169         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
170         an easy-to-find profiling marker when starting to create a file
171         chooser.
172         (browse_files_model_finished_loading_cb): Likewise, for when the
173         chooser is finished loading.
174
175 2005-09-14  Tristan Van Berkom <tvb@cvs.gnome.org>
176
177         * gtk/gtkcolorbutton.c: Check "color" argument in gtk_color_button_set_color ()
178
179 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
180
181         * gtk/gtklabel.c (gtk_label_get_type): 
182         * gtk/gtkbutton.c (gtk_button_get_type): 
183         * gtk/gtkwindow.c (gtk_window_group_get_type): No point in 
184         using a mem chunk for window groups, buttons, labels.
185
186         * gtk/updateiconcache.c (foreach_remove_func): Fix
187         a use-after-free bug.  (#316256, Alexander Nedotsukov)
188
189 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
190
191         * gtk/*.c: Various cleanups.  (#315360, Kjartan Maraas)
192
193         * gdk/*.c: Various cleanups.  (#315359, Kjartan Maraas)
194         
195 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
196
197         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
198         Let GDK_Return pass through in some more cases.
199
200         * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
201         activating the entry. 
202
203         * gtk/gtkiconview.c (gtk_icon_view_class_init):
204         (gtk_icon_view_get_dest_item_at_pos):  Fix typos in the 
205         docs.  (#316008, #316027, #316121, Guillaume Cottenceau)
206
207         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
208         (#316001, Guillaume Cottenceau)
209
210         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
211         mistake in the docs.  (#315993, Guillaume Cottenceau)
212
213         * tests/testentrycompletion.c (create_simple_completion_model): Add
214         some strings containing multibyte characters.
215
216         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
217         Fix prefix insertion for multibyte characters.  (#316095,
218         Tommi Komulainen)
219
220         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
221         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): Silently
222         return NULL if the widget is not realized.  (#316023,
223         Guillaume Cottenceau)
224
225 2005-09-11  Matthias Clasen  <mclasen@redhat.com>
226
227         * gdk/gdk.symbols: 
228         * gdk/gdkproperty.h: 
229         * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string): 
230         New function to avoid pointless strdups when creating atoms
231         from static strings.  
232
233         * gdk/x11/*.c:
234         * gtk/*.c:  Use gdk_atom_intern_static_string() where 
235         appropriate.
236
237 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
238
239         * gtk/gtkcellrendererkeys.h: 
240         * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
241         and editing accelerators, a port of EggCellRendererKeys .
242
243         * gtk/gtk.symbols:
244         * gtk/gtk.h:
245         * gtk/Makefile.am: Add the keys cell renderer.
246
247         * tests/Makefile.am: 
248         * tests/testkeys.c: Test GtkCellRendererKeys
249
250 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
251
252         Make it possible to determine if a key event is for a
253         modifier key:
254         
255         * gdk/x11/gdkprivate-x11.h: 
256         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): 
257         New function to determine if a keycode is mapped to a modifier.
258         (get_xkb): Get the modmap.
259
260         * gdk/x11/gdkevents-x11.c (translate_key_event): Set the 
261         is_modifier bit by calling _gdk_keymap_key_is_modifier().
262
263         * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
264         bit.
265
266 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
267
268         * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an 
269         unused variable, noticed by Kjartan Maraas.
270
271 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
272
273         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): 
274         Make drag reordering work properly for columns other than the
275         first.  (#315054, Dan Winship)
276         
277         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
278         invalid fontnames better. (#136926, Michael R. Walton)
279         
280         Stop cursor blinking in non-editable regions of a text view.
281         (#311508, Torbjörn Andersson)
282         
283         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): 
284         (cursor_blinks): Take editability into account when deciding
285         whether the cursor blinks.
286         (gtk_text_view_button_release_event): 
287         (gtk_text_view_move_cursor_internal): Update cursor blinking here.
288
289         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
290         Use connect_after to connect to the focus_out event. This
291         ensures that the entry has already stopped blinking by the time
292         we emit the edited signal.  (#315229, Thomas Leonard)
293
294         * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
295
296         * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
297         unsigned ints to -1.  (#315481, Kjartan Maraas)
298
299         * gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
300         to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
301         (#314473, Stanislav Brabec)
302
303 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
304
305         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
306         memory handling.  (#314975, Torsten Schoenfeld)
307
308         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
309         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
310         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
311         * gtk/gtklabel.c (gtk_label_class_init): 
312         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
313         Stylistic improvements and clarifications for some blurbs. 
314         (#315520, Clytie Siddall)
315
316 2005-09-09  Tor Lillqvist  <tml@novell.com>
317
318         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
319         display name. There is only one GdkDisplay on Win32, and
320         constructing the display name isn't entirely trivial, so cacheing
321         is probably worth it. For instance GIMP calls this function a lot.
322         (gdk_display_open): Call gdk_display_get_name() to prime the
323         cached name.
324         (gdk_display_get_n_screens, gdk_display_get_screen,
325         gdk_display_get_default_screen): Verify parameter correctness like
326         the X11 backend does.
327
328         * gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
329         Return a freshly allocated string, as the API specifies. Fixes a
330         heap corruption problem that caused random errors and crashes in
331         GIMP, for instance.
332
333 2005-09-07  Matthias Clasen  <mclasen@redhat.com>
334
335         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
336         Make C-u commit and restart hex input if we are already in a
337         hex sequence.
338
339 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
340
341         * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
342         (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
343         if they are mapped to the same modifier.
344
345         * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
346         to gtkstatusicon.c and gtktrayicon-x11.c
347
348         * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
349         default accel mod mask.
350
351         * gtk/gtkaccelgroup.c (gtk_accelerator_parse): 
352         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
353         Don't use GDK_ALT_MASK.
354
355         * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
356
357 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
358
359         Add support for extra virtual modifiers:  (#85780, Owen Taylor)
360         
361         * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
362         modifiers.
363
364         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
365         Mod2 - Mod5 and against Super, Hyper, Meta.
366
367         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
368         * gtk/gtkaccelgroup.c (gtk_accelerator_parse) 
369         (gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
370
371         * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a 
372         modmap to maintain the information which X modifiers map to
373         virtual modifiers.
374         (get_xkb): Set up the modmap from the XKB tables.
375         (update_keymaps): Set up the modmap from the information returned
376         by XGetModifierMapping in the non-XKB case.
377
378         * gdk/x11/gdkprivate-x11.h: 
379         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New 
380         function to set the virtual modifiers in the state.
381
382         * gdk/x11/gdkevents-x11.c (translate_key_event): Call 
383         _gdk_keymap_add_virtual_modifiers here.
384
385         * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super, 
386         Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
387         for GDK_MOD1_MASK.
388
389 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
390
391         * gtk/gtkaction.c (connect_proxy): Set the label of a button
392         if it has no child.  (#315253, John Finlay)
393
394 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
395
396         * gtkimcontextsimple.h: Add a modifiers_dropped bit
397
398 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
399
400         * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
401         on destroy to avoid problems when they are called on a destroyed
402         widget.  (#315135, John Cupitt)
403         
404         * gtk/gtkentry.c (gtk_entry_class_init):
405         * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
406         for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
407
408         * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
409         code. Now we only steal a single key combination, Ctrl-Shift-U,
410         instead of sixteen. 
411         A hex Unicode sequence must be started with Ctrl-Shift-U, followed
412         by a sequence of hex digits entered with Ctrl-Shift still held.
413         Releasing one of the modifiers or pressing space while the modifiers
414         are still held commits the character. It is possible to erase
415         digits using backspace.
416         As an extension to the above, we also allow to start the sequence
417         with Ctrl-Shift-U, then release the modifiers before typing any
418         digits, and enter the digits without modifiers.
419         (#82011, Owen Taylor)
420         
421 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
422
423         * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
424         we still need to deliver the destroy event.  (#314980, Chris Lahey)
425
426         * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset 
427         im context before committing \n or \t.
428
429 2005-09-02  Alexander Larsson  <alexl@redhat.com>
430
431         * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
432         (shortcuts_activate_volume):
433         Handle base_path being null in the rest of the cases (#310270)
434
435 2005-09-02  Tor Lillqvist  <tml@novell.com>
436
437         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
438         cursor position also in root window coordinates. Prune out
439         superfluous WM_MOUSEMOVE events even earlier, based on root window
440         coordinates. Windows sends WM_MOUSEMOVE messages after a new
441         window has ben mapped below the cursor even if the mouse doesn't
442         move. We used to generate GDK_MOTION_NOTIFY in these cases. This
443         confused at least gtk_menu_motion_notify(). (#314995)
444
445         * gtk/gtkintl.h: No need to include config.h here. It caused
446         warnings about GTK_LOCALEDIR being redefined on Win32 when
447         compiling files where gtkintl.h is included after gtkprivate.h
448         (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
449
450         * gtk/gtkplug.c: Include config.h.
451
452 2005-09-01  Matthias Clasen  <mclasen@redhat.com>
453
454         * gtk/gtkfilesystemunix.c: Pass statbufs down to 
455         xdg_mime_get_mime_type_for_file() where possible, to avoid
456         useless re-stating.  
457         
458         * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
459         typo.  (#314921, Guillaume Cottenceau)
460
461         * gdk/*.c: Intern some more strings.
462         * gtk/gtkintl.h: 
463         * gtk/*.c: Define an I_() macro and use it instead of the 
464         bulky g_intern_static_string().
465
466 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
467
468         * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
469         instead of copying it.
470
471         * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
472
473         * gtk/*.c: Also intern static strings passed to 
474         g_object_set_data().
475
476         * gdk/Makefile.am: 
477         * gtk/Makefile.am: Intern type names in code generated by 
478         glib-mkenums, too.
479
480         * gtk/*.c: 
481         * gdk/x11/*.c: 
482         * gdk/*.c: Intern type names before registering the type to avoid 
483         unnecessary copies.
484
485         * configure.in: Require GLib 2.9.0
486
487 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
488
489         * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
490         and add icon-size and icon-size-set properties.  (#314172)      
491
492         * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
493         groups across transient parents.  (#312918, Christian Persch)
494
495         * gtk/gtktreemodel.c: Some documentation fixes.  (#314882,
496         Guillaume Cottenceau)
497
498         * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): 
499         Fix a typo in the docs.  (#314878, Guillaume Cottenceau)
500
501 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
502
503         * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
504         make C-/ select all and C-\ unselect all.  (#309301,
505         Kathy Fernandez)
506
507         * gtk/gtkimcontextsimple.c: Change the compose sequence for
508         soft hyphen to be multi_key-minus-minus-space, and add
509         compose sequences multi_key-minus-minus-period and 
510         multi_key-minus-minus-minus for en dash and em dash.
511         (#172653, Christian Lohmaier)
512
513         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
514         code.  (#313946, Christian Persch)
515
516         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
517         fix for the default value of the "ui" property.
518
519 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
520
521         * gtk/gtk.symbols: 
522         * gtk/gtkselection.h:
523         * gtk/gtkselection.c: Add functions which look for text, image
524         or uri targets in an array of atoms.   (#314089, Mark Wielaard)
525
526         * gtk/gtk.symbols: 
527         * gtk/gtkselection.h:
528         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
529         Add a function to check wether targets include uri.  
530         (#314092, Mark Wielaard)
531         
532         * gtk/gtk.symbols: 
533         * gtk/gtkwindow.h: 
534         * gtk/gtkwindow.c: Add a deletable property with getter
535         and setter, to control the close button in the window 
536         frame.  (#59718, Havoc Pennington)
537
538 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
539
540         * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
541         to the arrow keys for menu navigation.  (#162825, Carl Worth)
542
543         * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
544
545         * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
546
547         * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock): 
548         * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
549         refer to nonexisting stock ids.
550
551         * gtk/gtktextview.c (popup_targets_received): 
552         * gtk/gtkentry.c (popup_targets_received): Construct
553         the "Select All" menuitem from stock.
554
555         * gtk/stock-icons/stock_select_all_{16,24}.png:
556         * gtk/stock-icons/Makefile.am: 
557         * gtk/gtkiconfactory.c:
558         * gtk/gtkstock.h: 
559         * gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
560         Calum Benson)
561
562         * gtk/gtktrayicon.c: Add a pointer to the spec.
563
564         * gtk/gtkstatusicon-x11.c: Add docs.
565
566         * gtk/gtkstatusicon.h: Fix a typo.
567
568         Add a cross-platform "tray icon" API, by
569         porting EggStatusIcon/EggTrayIcon (#105101)
570         
571         * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
572         displays an icon in a notification area.
573
574         * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
575         X11, using GtkTrayIcon.
576
577         * gtk/gtktrayicon.h: 
578         * gtk/gtktrayicon.c: An implementation of the freedesktop.org
579         system tray specification, not public API.
580
581         * gtk/gtk.symbols: Add new exported functions.
582
583         * gtk/gtk.h: Include gtkstatusicon.h.
584
585         * gtk/Makefile.am: Add new files.
586
587         * tests/Makefile.am:
588         * tests/teststatusicon.c: Test for GtkStatusIcon.
589
590 2005-08-29  Christopher Aillon  <caillon@redhat.com>
591
592         * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
593         and GTK_STOCK_DISCONNECT
594         
595 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
596
597         * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify): 
598         Use XFixesChangeSaveSet if available.  (#314682)
599
600         * gtk/gtkmenu.c (gtk_menu_grab_notify):  Only cancel if the menu
601         was active.  (#314298, Christian Persch, analysis by Mark McLoughlin)
602
603 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
604
605         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
606         accidentally leftover duplicate pixbuf creation.  (#314700,
607         Kjartan Maraas)
608
609         * gtk/gtksettings.c (settings_update_cursor_theme): Don't 
610         leak the cursor theme name.  (#314693, Kjartan Maraas)
611
612         * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free 
613         state.children in all cases.  (#313862, Kjartan Maraas)
614
615 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
616
617         * po/POTFILES.in, po-properties/POTFILES.in:
618         Add gdk/gdkscreen.c
619
620 2005-08-27  Matthias Clasen  <mclasen@redhat.com>
621
622         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
623         value of the ui property. (#314532, Yong Wang)
624
625         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
626         when G_MAXLONG is passed as length.  
627
628 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
629
630         * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
631         to avoid overloading --force.  (JP Rosevaar)
632
633 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
634
635         * configure.in: Bump version to 2.9.0
636
637         * gdk/gdk.symbols: 
638         * gdk/gdkscreen.h: 
639         * gdk/gdkscreen.c: Make the GdkScreen font options api
640         public, and add properties GdkScreen::font-options and
641         GdkScreen::resolution.  (#314004)
642
643         * gdk/gdkpango.c:
644         * gtk/gtksettings.c:
645         * gtk/gtkwidget.c: Adjust all callers.
646         
647         * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
648         * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
649         * gdk/gdkscreen.c: Include gdkintl.h.
650
651         * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
652         variable warning, pointed out by Colin Walters. (#314585)
653
654 2005-08-26  Tor Lillqvist  <tml@novell.com>
655
656         * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
657         printouts.
658         (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
659
660 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
661
662         * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
663         of week_start.  (#314473, JP Rosevaar)
664
665 2005-08-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
666
667         * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
668         lock.  (#314533, Thomas Fitzsimmons)
669
670 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
671
672         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
673         NULL gracefully.  (#314523, Ed Catmur)
674
675 2005-08-25  Owen Taylor  <otaylor@redhat.com>
676
677         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
678         Handle theme == NULL.
679
680 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
681
682         * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
683         y offset into account when positioning the popup.  (#314470,
684         Christian Persch)
685
686 2005-08-25  Owen Taylor  <otaylor@redhat.com>
687
688         * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
689         as instance_init, not base_init! (#314452, Fix from Frederic
690         Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
691         rather than 1 for a negative flag value.
692
693 2005-08-24  Owen Taylor  <otaylor@redhat.com>
694
695         * gdk/gdkpango.c (draw_error_underline): Add a note about
696         cut-and-paste between here and Pango.
697
698 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
699
700         * === Released 2.8.2 ===
701
702         * gtk/gtkclipboard.c (request_image_received_func): Use the correct
703         callback for image/gif, and also try image/bmp.  (#314086,  Mark 
704         Wielaard)
705
706         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon): 
707         Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev.  (#314382,
708         Sebastien Bacher)
709         
710         * NEWS: Updates
711
712         * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
713         and cursor settings get propagated down to the screen initially.
714         Pointed out by Frederic Crozat.
715
716         * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
717         message if the screen is NULL. Noticed by Kjartan Maraas.
718
719 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
720
721         * Bump version
722
723         * === Released 2.8.1 ===
724
725         * NEWS: Updates
726         
727 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
728
729         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
730         against lazy filterers which return values other than TRUE or
731         FALSE from their visible func.  (#314335)
732
733 2005-08-23  Owen Taylor  <otaylor@redhat.com>
734
735         Fix for #314004, reported by Michael Reinsch:
736
737         * gdk/gdk.symbols:
738         * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
739         Add gdk_screen_get/set_resolution_libgtk_only()
740
741         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
742         the options for the screen on the newly created context.
743
744         * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c: 
745         Move font options and dpi code from gtkwidget.c to gtksettings.c, set
746         the font options on the screen.
747
748         * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
749         the font options from the screen and set them on the context.
750
751 2005-08-23  Kristian Rietveld  <kris@gtk.org>
752
753         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
754         bother inserting new rows in a level with a zero refcount and
755         immediately free the level. (Fixes #312350, reported by Markku Vire).
756
757 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
758
759         * gtk/updateiconcache.c: Complain when there is no index.theme file
760         in the specified directory, unless --force is used. Also add an
761         --index-only option to create caches without image data.
762
763         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
764         C99ism.  (#314262, Robert Jeff Mitchell)
765         
766 2005-08-22  Manish Singh  <yosh@gimp.org>
767
768         * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
769
770         * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
771
772 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
773
774         * gtk/gtkwindow.c (gtk_window_client_event): 
775         * gtk/gtkicontheme.c (ensure_valid_themes) 
776         (_gtk_icon_theme_check_reload): Implement a clientmessage based
777         scheme for makeing sure that all GTK+ applications notice if an
778         icon theme has been updated. This should prevent multiple versions
779         of an icon theme cache to be mapped in memory at the same time,
780         which can cause excessive memory consumption.  (#313156, Chris 
781         Lahey)
782
783 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
784
785         * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
786         regarding icon theme changes.
787
788         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
789         pixbufs which are backed by the mmapped memory of an icon cache,
790         increase the refcount of the icon cache, so that the memory is not
791         munmapped away underneath the pixbuf upon icon theme changes.  
792         (#314170, Kjartan Maraas)
793
794         * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order 
795         to link against Xext.  (#314062)
796
797         * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
798         overruns.  (#314081, Hans Breuer)
799
800 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
801
802         * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
803         returned layout must not be modified.
804
805 Sat Aug 20 16:12:14 2005  Jonathan Blandford  <jrb@redhat.com>
806
807         * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
808         scroll_to_path if the model changes.
809
810         * gtk/gtkiconview.c: (gtk_icon_view_destroy),
811         (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
812         (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
813         we're realized, #312798
814         (gtk_icon_view_set_model): clear scroll_to_path if the model
815         changes.
816
817 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
818
819         * gtk/gtkrange.c (gtk_range_adjustment_changed) 
820         (gtk_range_adjustment_value_changed):  Don't queue a draw
821         if the layout has not changed.  (#313991, Benjamin Berg)
822
823 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
824
825         * gtk/gtktreeitem.c: Remove duplicate lines.  (#313344,
826         Benoit Carpentier)
827
828         * modules/engines/ms-windows/msw_style.c (setup_system_styles): 
829         Fix a typo. 
830
831         * gtk/gtkfilechooserbutton.c (change_icon_theme) 
832         (model_add_special, model_add_special, model_add_volumes):
833         Handle pixbuf being NULL without warnings. Also, don't
834         leak pixbuf references when the icon theme is changed.
835
836         * gtk/gtkmain.c (gtk_get_event_widget): Don't access
837         the user data on destroyed windows, since at best
838         it can be a stale pointer.  (#313953, Robin Green)      
839
840 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
841
842         * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
843         (#313900, Sebastien Bacher)
844
845         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
846         FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
847
848         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display) 
849         (xdnd_read_actions, get_client_window_at_coords_recurse): 
850         Free data returned from XGetWindowProperty. 
851
852         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) 
853         Free data returned from XGetWindowProperty.  (313867, Kjartan
854         Maraas)
855         
856         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
857         children in all cases.  (#313862, Kjartan Maraas)
858
859         * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
860         in the per-directory hash, even if they come from the icon cache. 
861         We tried to avoid that before, but as a result leaked icon data
862         structs.  (#313852, Kjartan Maraas)
863
864 2005-08-18  Matthias Clasen  <mclasen@redhat.com>
865
866         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
867         signal handlers on destroy, not on finalize.  (#313759, Brett Atoms)
868
869 2005-08-15  Owen Taylor  <otaylor@redhat.com>
870
871         * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
872         files for x11/xext. (Jonas Bonn)
873
874 2005-08-15  Tor Lillqvist  <tml@novell.com>
875
876         * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
877         inside GTK_NOTE.
878
879 2005-08-15  Owen Taylor  <otaylor@redhat.com>
880
881         * configure.in: Fix have_base_pc / have_base_x_pc typo.
882
883         * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
884         (#313417, James Andrewartha)
885
886         * configure.in: Add fontconfig to X_PACKAGES, since we use it for
887         FcNameConstant(). (More of #313417)
888
889 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
890
891         * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
892         modal dialogs, make sure to inherit the window group from 
893         the parent, since we don't inherit window groups across
894         transient parents currently.  (#312918, Christian Persch)
895
896         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): 
897         * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs. 
898
899         * gtk/gtkiconview.c (gtk_icon_view_select_path) 
900         (gtk_icon_view_scroll_to_path): Handle paths of depth 0
901         gracefully.  (#312796, Jonathan Blandford)
902
903         * tests/testtoolbar.c: Add some more tests for menu placement.
904
905         * gtk/gtkmenutoolbutton.c (menu_position_func): 
906         * gtk/gtktoolbar.c (menu_position_func): Improve positioning
907         of toolbutton menus and of the overflow menu.  (#312937, 
908         #153870, Christian Persch, Paolo Borelli)
909
910 2005-08-15  Tor Lillqvist  <tml@novell.com>
911
912         * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
913         the nonportable <libgen.h> and dirname().
914
915 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
916
917         * gtk/gtksizegroup.c: Use object data to mark widgets and
918         groups as visited, so that we avoid constant extra list
919         traversals. Also allocate quarks in class_init.  (#311618,
920         Michael Natterer)
921
922         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the 
923         download location for the hicolor icon theme. (#313475, Olexiy 
924         Avramchenko)
925
926         * gtk/gtkicontheme.c: Remove debug spew. 
927
928 2005-08-15  Owen Taylor  <otaylor@redhat.com>
929
930         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): 
931         * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): 
932         * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
933         Handle pixmap == NULL when checking for a colormap.
934         (Allin Cottrell).
935
936 2005-08-14  Matthias Clasen  <mclasen@redhat.com>
937
938         * gtk/updateiconcache.c: Store only one copy of the pixel data
939         for symlinked icons. To achieve this, maintain a hashtable 
940         mapping pathnames to pixel data, and share the pixel data for
941         all symlinks resolving to the same pathname. When writing out
942         the image data, write out the pixel data only the first time
943         it is met, and store the offset pointing to the first copy
944         for use in all later cases.
945         This reduces the size of the Bluecurve icon cache from 40
946         to 13MB. (#312972)
947