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