1 2005-09-26 Tor Lillqvist <tml@novell.com>
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.
8 2005-09-26 Matthias Clasen <mclasen@redhat.com>
10 Fix #316871, reported by Dan Winship:
12 * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
14 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask)
15 (gdk_window_shape_combine_region): Set it here.
17 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
18 remove the child area for shaped windows.
20 2005-09-23 Matthias Clasen <mclasen@redhat.com>
22 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
23 Don't leak expander pixbufs. (#316946, Tommi Komulainen)
25 2005-09-22 Michael Natterer <mitch@imendio.com>
27 Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
28 consistent with GTK+ terminology:
30 * gtk/gtkcellrendererkeys.[ch]
31 * tests/testkeys.c: removed...
33 * gtk/gtkcellrendereraccel.[ch]
34 * tests/testaccel.c: ...and added.
39 * tests/Makefile.am: changed accordingly.
41 2005-09-22 Matthias Clasen <mclasen@redhat.com>
43 * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
44 for the grab-broken-event signal, noticed by Damon Chaplin.
46 2005-09-21 Tor Lillqvist <tml@novell.com>
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
54 (gdk_text_property_to_text_list_for_display): Drop GError variable
55 that isn't actually used after being set.
57 2005-09-20 Johan Dahlin <jdahlin@async.com.br>
59 * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in
62 2005-09-20 Tor Lillqvist <tml@novell.com>
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.
72 2005-09-20 Matthias Clasen <mclasen@redhat.com>
74 Avoid unnecessary XkbGetState() calls and XkbStateNotify
75 events. (#151555, Søren Sandmann)
77 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use
78 XkbSelectEventDetails() to select XkbStateNotify events
79 for only the state we care about.
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.
86 2005-09-19 Matthias Clasen <mclasen@redhat.com>
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)
95 2005-09-18 Hans Breuer <hans@breuer.org>
97 * gtk/gtktrayicon-win32.c : now handling events by hard-coded
98 g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
100 2005-09-18 Hans Breuer <hans@breuer.org>
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 ...
107 2005-09-18 Hans Breuer <hans@breuer.org>
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
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.
117 * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
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.
124 * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
125 already coming with Gtk+. Makes it compile on win32.
127 2005-09-18 Guilherme de S. Pastore <gpastore@cvs.gnome.org>
129 * README.cvs-commits: fixed some tiny typos
131 2005-09-16 Tor Lillqvist <tml@novell.com>
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)
138 2005-09-15 Federico Mena Quintero <federico@ximian.com>
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).
147 * tests/Makefile.am: Added autotestfilechooser.c.
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.
155 * gtk/gtkfilechooserdialog.c: See above.
157 * gtk/gtkfilechooserwidget.c: See above.
159 * gtk/gtkfilechooserdefault.c: See above.
161 Thu Sep 15 15:27:55 2005 Tim Janik <timj@imendio.com>
164 gtk_window_map_event(): new function to work around lost unmap requests.
167 2005-09-14 Federico Mena Quintero <federico@ximian.com>
169 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
170 an easy-to-find profiling marker when starting to create a file
172 (browse_files_model_finished_loading_cb): Likewise, for when the
173 chooser is finished loading.
175 2005-09-14 Tristan Van Berkom <tvb@cvs.gnome.org>
177 * gtk/gtkcolorbutton.c: Check "color" argument in gtk_color_button_set_color ()
179 2005-09-14 Matthias Clasen <mclasen@redhat.com>
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.
186 * gtk/updateiconcache.c (foreach_remove_func): Fix
187 a use-after-free bug. (#316256, Alexander Nedotsukov)
189 2005-09-13 Matthias Clasen <mclasen@redhat.com>
191 * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
193 * gdk/*.c: Various cleanups. (#315359, Kjartan Maraas)
195 2005-09-13 Matthias Clasen <mclasen@redhat.com>
197 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
198 Let GDK_Return pass through in some more cases.
200 * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
201 activating the entry.
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)
207 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
208 (#316001, Guillaume Cottenceau)
210 * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
211 mistake in the docs. (#315993, Guillaume Cottenceau)
213 * tests/testentrycompletion.c (create_simple_completion_model): Add
214 some strings containing multibyte characters.
216 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
217 Fix prefix insertion for multibyte characters. (#316095,
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)
225 2005-09-11 Matthias Clasen <mclasen@redhat.com>
229 * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string):
230 New function to avoid pointless strdups when creating atoms
234 * gtk/*.c: Use gdk_atom_intern_static_string() where
237 2005-09-09 Matthias Clasen <mclasen@redhat.com>
239 * gtk/gtkcellrendererkeys.h:
240 * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
241 and editing accelerators, a port of EggCellRendererKeys .
245 * gtk/Makefile.am: Add the keys cell renderer.
248 * tests/testkeys.c: Test GtkCellRendererKeys
250 2005-09-09 Matthias Clasen <mclasen@redhat.com>
252 Make it possible to determine if a key event is for a
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.
260 * gdk/x11/gdkevents-x11.c (translate_key_event): Set the
261 is_modifier bit by calling _gdk_keymap_key_is_modifier().
263 * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
266 2005-09-09 Matthias Clasen <mclasen@redhat.com>
268 * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an
269 unused variable, noticed by Kjartan Maraas.
271 2005-09-09 Matthias Clasen <mclasen@redhat.com>
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)
277 * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle
278 invalid fontnames better. (#136926, Michael R. Walton)
280 Stop cursor blinking in non-editable regions of a text view.
281 (#311508, Torbjörn Andersson)
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.
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)
294 * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
296 * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
297 unsigned ints to -1. (#315481, Kjartan Maraas)
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)
303 2005-09-09 Matthias Clasen <mclasen@redhat.com>
305 * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
306 memory handling. (#314975, Torsten Schoenfeld)
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)
316 2005-09-09 Tor Lillqvist <tml@novell.com>
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
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.
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
333 2005-09-07 Matthias Clasen <mclasen@redhat.com>
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
339 2005-09-06 Matthias Clasen <mclasen@redhat.com>
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.
345 * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
346 to gtkstatusicon.c and gtktrayicon-x11.c
348 * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
349 default accel mod mask.
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.
355 * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
357 2005-09-06 Matthias Clasen <mclasen@redhat.com>
359 Add support for extra virtual modifiers: (#85780, Owen Taylor)
361 * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
364 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
365 Mod2 - Mod5 and against Super, Hyper, Meta.
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.
371 * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a
372 modmap to maintain the information which X modifiers map to
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.
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.
382 * gdk/x11/gdkevents-x11.c (translate_key_event): Call
383 _gdk_keymap_add_virtual_modifiers here.
385 * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super,
386 Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
389 2005-09-05 Matthias Clasen <mclasen@redhat.com>
391 * gtk/gtkaction.c (connect_proxy): Set the label of a button
392 if it has no child. (#315253, John Finlay)
394 2005-09-02 Matthias Clasen <mclasen@redhat.com>
396 * gtkimcontextsimple.h: Add a modifiers_dropped bit
398 2005-09-02 Matthias Clasen <mclasen@redhat.com>
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)
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)
408 * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
409 code. Now we only steal a single key combination, Ctrl-Shift-U,
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)
421 2005-09-02 Matthias Clasen <mclasen@redhat.com>
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)
426 * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
427 im context before committing \n or \t.
429 2005-09-02 Alexander Larsson <alexl@redhat.com>
431 * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
432 (shortcuts_activate_volume):
433 Handle base_path being null in the rest of the cases (#310270)
435 2005-09-02 Tor Lillqvist <tml@novell.com>
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)
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).
450 * gtk/gtkplug.c: Include config.h.
452 2005-09-01 Matthias Clasen <mclasen@redhat.com>
454 * gtk/gtkfilesystemunix.c: Pass statbufs down to
455 xdg_mime_get_mime_type_for_file() where possible, to avoid
458 * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
459 typo. (#314921, Guillaume Cottenceau)
461 * gdk/*.c: Intern some more strings.
463 * gtk/*.c: Define an I_() macro and use it instead of the
464 bulky g_intern_static_string().
466 2005-08-31 Matthias Clasen <mclasen@redhat.com>
468 * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
469 instead of copying it.
471 * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
473 * gtk/*.c: Also intern static strings passed to
477 * gtk/Makefile.am: Intern type names in code generated by
482 * gdk/*.c: Intern type names before registering the type to avoid
485 * configure.in: Require GLib 2.9.0
487 2005-08-31 Matthias Clasen <mclasen@redhat.com>
489 * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
490 and add icon-size and icon-size-set properties. (#314172)
492 * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
493 groups across transient parents. (#312918, Christian Persch)
495 * gtk/gtktreemodel.c: Some documentation fixes. (#314882,
496 Guillaume Cottenceau)
498 * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions):
499 Fix a typo in the docs. (#314878, Guillaume Cottenceau)
501 2005-08-30 Matthias Clasen <mclasen@redhat.com>
503 * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
504 make C-/ select all and C-\ unselect all. (#309301,
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)
513 * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
514 code. (#313946, Christian Persch)
516 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
517 fix for the default value of the "ui" property.
519 2005-08-30 Matthias Clasen <mclasen@redhat.com>
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)
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)
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)
538 2005-08-29 Matthias Clasen <mclasen@redhat.com>
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)
543 * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
545 * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
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.
551 * gtk/gtktextview.c (popup_targets_received):
552 * gtk/gtkentry.c (popup_targets_received): Construct
553 the "Select All" menuitem from stock.
555 * gtk/stock-icons/stock_select_all_{16,24}.png:
556 * gtk/stock-icons/Makefile.am:
557 * gtk/gtkiconfactory.c:
559 * gtk/gtkstock.c: Add a "Select All" stock item. (#78545,
562 * gtk/gtktrayicon.c: Add a pointer to the spec.
564 * gtk/gtkstatusicon-x11.c: Add docs.
566 * gtk/gtkstatusicon.h: Fix a typo.
568 Add a cross-platform "tray icon" API, by
569 porting EggStatusIcon/EggTrayIcon (#105101)
571 * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
572 displays an icon in a notification area.
574 * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
575 X11, using GtkTrayIcon.
578 * gtk/gtktrayicon.c: An implementation of the freedesktop.org
579 system tray specification, not public API.
581 * gtk/gtk.symbols: Add new exported functions.
583 * gtk/gtk.h: Include gtkstatusicon.h.
585 * gtk/Makefile.am: Add new files.
588 * tests/teststatusicon.c: Test for GtkStatusIcon.
590 2005-08-29 Christopher Aillon <caillon@redhat.com>
592 * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
593 and GTK_STOCK_DISCONNECT
595 2005-08-29 Matthias Clasen <mclasen@redhat.com>
597 * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify):
598 Use XFixesChangeSaveSet if available. (#314682)
600 * gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
601 was active. (#314298, Christian Persch, analysis by Mark McLoughlin)
603 2005-08-29 Matthias Clasen <mclasen@redhat.com>
605 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
606 accidentally leftover duplicate pixbuf creation. (#314700,
609 * gtk/gtksettings.c (settings_update_cursor_theme): Don't
610 leak the cursor theme name. (#314693, Kjartan Maraas)
612 * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free
613 state.children in all cases. (#313862, Kjartan Maraas)
615 2005-08-28 Matthias Clasen <mclasen@redhat.com>
617 * po/POTFILES.in, po-properties/POTFILES.in:
620 2005-08-27 Matthias Clasen <mclasen@redhat.com>
622 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
623 value of the ui property. (#314532, Yong Wang)
625 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
626 when G_MAXLONG is passed as length.
628 2005-08-26 Matthias Clasen <mclasen@redhat.com>
630 * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
631 to avoid overloading --force. (JP Rosevaar)
633 2005-08-26 Matthias Clasen <mclasen@redhat.com>
635 * configure.in: Bump version to 2.9.0
639 * gdk/gdkscreen.c: Make the GdkScreen font options api
640 public, and add properties GdkScreen::font-options and
641 GdkScreen::resolution. (#314004)
645 * gtk/gtkwidget.c: Adjust all callers.
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.
651 * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
652 variable warning, pointed out by Colin Walters. (#314585)
654 2005-08-26 Tor Lillqvist <tml@novell.com>
656 * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
658 (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
660 2005-08-26 Matthias Clasen <mclasen@redhat.com>
662 * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
663 of week_start. (#314473, JP Rosevaar)
665 2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
667 * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
668 lock. (#314533, Thomas Fitzsimmons)
670 2005-08-25 Matthias Clasen <mclasen@redhat.com>
672 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
673 NULL gracefully. (#314523, Ed Catmur)
675 2005-08-25 Owen Taylor <otaylor@redhat.com>
677 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
678 Handle theme == NULL.
680 2005-08-25 Matthias Clasen <mclasen@redhat.com>
682 * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
683 y offset into account when positioning the popup. (#314470,
686 2005-08-25 Owen Taylor <otaylor@redhat.com>
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.
693 2005-08-24 Owen Taylor <otaylor@redhat.com>
695 * gdk/gdkpango.c (draw_error_underline): Add a note about
696 cut-and-paste between here and Pango.
698 2005-08-24 Matthias Clasen <mclasen@redhat.com>
700 * === Released 2.8.2 ===
702 * gtk/gtkclipboard.c (request_image_received_func): Use the correct
703 callback for image/gif, and also try image/bmp. (#314086, Mark
706 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
707 Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev. (#314382,
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.
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.
719 2005-08-24 Matthias Clasen <mclasen@redhat.com>
723 * === Released 2.8.1 ===
727 2005-08-24 Matthias Clasen <mclasen@redhat.com>
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)
733 2005-08-23 Owen Taylor <otaylor@redhat.com>
735 Fix for #314004, reported by Michael Reinsch:
738 * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
739 Add gdk_screen_get/set_resolution_libgtk_only()
741 * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
742 the options for the screen on the newly created context.
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.
748 * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
749 the font options from the screen and set them on the context.
751 2005-08-23 Kristian Rietveld <kris@gtk.org>
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).
757 2005-08-23 Matthias Clasen <mclasen@redhat.com>
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.
763 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
764 C99ism. (#314262, Robert Jeff Mitchell)
766 2005-08-22 Manish Singh <yosh@gimp.org>
768 * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
770 * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
772 2005-08-22 Matthias Clasen <mclasen@redhat.com>
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
783 2005-08-22 Matthias Clasen <mclasen@redhat.com>
785 * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
786 regarding icon theme changes.
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)
794 * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order
795 to link against Xext. (#314062)
797 * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
798 overruns. (#314081, Hans Breuer)
800 2005-08-20 Matthias Clasen <mclasen@redhat.com>
802 * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
803 returned layout must not be modified.
805 Sat Aug 20 16:12:14 2005 Jonathan Blandford <jrb@redhat.com>
807 * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
808 scroll_to_path if the model changes.
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
817 2005-08-20 Matthias Clasen <mclasen@redhat.com>
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)
823 2005-08-19 Matthias Clasen <mclasen@redhat.com>
825 * gtk/gtktreeitem.c: Remove duplicate lines. (#313344,
828 * modules/engines/ms-windows/msw_style.c (setup_system_styles):
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.
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)
840 2005-08-19 Matthias Clasen <mclasen@redhat.com>
842 * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
843 (#313900, Sebastien Bacher)
845 * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
846 FALSE if the tree is empty. (#313891, Guillaume Cottenceau)
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.
852 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
853 Free data returned from XGetWindowProperty. (313867, Kjartan
856 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
857 children in all cases. (#313862, Kjartan Maraas)
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)
864 2005-08-18 Matthias Clasen <mclasen@redhat.com>
866 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
867 signal handlers on destroy, not on finalize. (#313759, Brett Atoms)
869 2005-08-15 Owen Taylor <otaylor@redhat.com>
871 * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
872 files for x11/xext. (Jonas Bonn)
874 2005-08-15 Tor Lillqvist <tml@novell.com>
876 * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
879 2005-08-15 Owen Taylor <otaylor@redhat.com>
881 * configure.in: Fix have_base_pc / have_base_x_pc typo.
883 * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
884 (#313417, James Andrewartha)
886 * configure.in: Add fontconfig to X_PACKAGES, since we use it for
887 FcNameConstant(). (More of #313417)
889 2005-08-15 Matthias Clasen <mclasen@redhat.com>
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)
896 * gtk/gtkmessagedialog.c (gtk_message_dialog_new):
897 * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs.
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)
903 * tests/testtoolbar.c: Add some more tests for menu placement.
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)
910 2005-08-15 Tor Lillqvist <tml@novell.com>
912 * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
913 the nonportable <libgen.h> and dirname().
915 2005-08-15 Matthias Clasen <mclasen@redhat.com>
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,
922 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the
923 download location for the hicolor icon theme. (#313475, Olexiy
926 * gtk/gtkicontheme.c: Remove debug spew.
928 2005-08-15 Owen Taylor <otaylor@redhat.com>
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.
936 2005-08-14 Matthias Clasen <mclasen@redhat.com>
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