1 2005-09-05 Matthias Clasen <mclasen@redhat.com>
3 * gtk/gtkaction.c (connect_proxy): Set the label of a button
4 if it has no child. (#315253, John Finlay)
6 2005-09-02 Matthias Clasen <mclasen@redhat.com>
8 * gtkimcontextsimple.h: Add a modifiers_dropped bit
10 2005-09-02 Matthias Clasen <mclasen@redhat.com>
12 * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
13 on destroy to avoid problems when they are called on a destroyed
14 widget. (#315135, John Cupitt)
16 * gtk/gtkentry.c (gtk_entry_class_init):
17 * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
18 for Ctrl-Shift-A to unselect all. (#309301, Kathy Fernandes)
20 * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
21 code. Now we only steal a single key combination, Ctrl-Shift-U,
23 A hex Unicode sequence must be started with Ctrl-Shift-U, followed
24 by a sequence of hex digits entered with Ctrl-Shift still held.
25 Releasing one of the modifiers or pressing space while the modifiers
26 are still held commits the character. It is possible to erase
27 digits using backspace.
28 As an extension to the above, we also allow to start the sequence
29 with Ctrl-Shift-U, then release the modifiers before typing any
30 digits, and enter the digits without modifiers.
33 2005-09-02 Matthias Clasen <mclasen@redhat.com>
35 * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
36 we still need to deliver the destroy event. (#314980, Chris Lahey)
38 * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
39 im context before committing \n or \t.
41 2005-09-02 Alexander Larsson <alexl@redhat.com>
43 * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
44 (shortcuts_activate_volume):
45 Handle base_path being null in the rest of the cases (#310270)
47 2005-09-02 Tor Lillqvist <tml@novell.com>
49 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
50 cursor position also in root window coordinates. Prune out
51 superfluous WM_MOUSEMOVE events even earlier, based on root window
52 coordinates. Windows sends WM_MOUSEMOVE messages after a new
53 window has ben mapped below the cursor even if the mouse doesn't
54 move. We used to generate GDK_MOTION_NOTIFY in these cases. This
55 confused at least gtk_menu_motion_notify(). (#314995)
57 * gtk/gtkintl.h: No need to include config.h here. It caused
58 warnings about GTK_LOCALEDIR being redefined on Win32 when
59 compiling files where gtkintl.h is included after gtkprivate.h
60 (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
62 * gtk/gtkplug.c: Include config.h.
64 2005-09-01 Matthias Clasen <mclasen@redhat.com>
66 * gtk/gtkfilesystemunix.c: Pass statbufs down to
67 xdg_mime_get_mime_type_for_file() where possible, to avoid
70 * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
71 typo. (#314921, Guillaume Cottenceau)
73 * gdk/*.c: Intern some more strings.
75 * gtk/*.c: Define an I_() macro and use it instead of the
76 bulky g_intern_static_string().
78 2005-08-31 Matthias Clasen <mclasen@redhat.com>
80 * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
81 instead of copying it.
83 * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
85 * gtk/*.c: Also intern static strings passed to
89 * gtk/Makefile.am: Intern type names in code generated by
94 * gdk/*.c: Intern type names before registering the type to avoid
97 * configure.in: Require GLib 2.9.0
99 2005-08-31 Matthias Clasen <mclasen@redhat.com>
101 * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
102 and add icon-size and icon-size-set properties. (#314172)
104 * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
105 groups across transient parents. (#312918, Christian Persch)
107 * gtk/gtktreemodel.c: Some documentation fixes. (#314882,
108 Guillaume Cottenceau)
110 * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions):
111 Fix a typo in the docs. (#314878, Guillaume Cottenceau)
113 2005-08-30 Matthias Clasen <mclasen@redhat.com>
115 * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
116 make C-/ select all and C-\ unselect all. (#309301,
119 * gtk/gtkimcontextsimple.c: Change the compose sequence for
120 soft hyphen to be multi_key-minus-minus-space, and add
121 compose sequences multi_key-minus-minus-period and
122 multi_key-minus-minus-minus for en dash and em dash.
123 (#172653, Christian Lohmaier)
125 * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
126 code. (#313946, Christian Persch)
128 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
129 fix for the default value of the "ui" property.
131 2005-08-30 Matthias Clasen <mclasen@redhat.com>
134 * gtk/gtkselection.h:
135 * gtk/gtkselection.c: Add functions which look for text, image
136 or uri targets in an array of atoms. (#314089, Mark Wielaard)
139 * gtk/gtkselection.h:
140 * gtk/gtkselection.c (gtk_selection_data_targets_include_uri):
141 Add a function to check wether targets include uri.
142 (#314092, Mark Wielaard)
146 * gtk/gtkwindow.c: Add a deletable property with getter
147 and setter, to control the close button in the window
148 frame. (#59718, Havoc Pennington)
150 2005-08-29 Matthias Clasen <mclasen@redhat.com>
152 * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
153 to the arrow keys for menu navigation. (#162825, Carl Worth)
155 * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
157 * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
159 * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock):
160 * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
161 refer to nonexisting stock ids.
163 * gtk/gtktextview.c (popup_targets_received):
164 * gtk/gtkentry.c (popup_targets_received): Construct
165 the "Select All" menuitem from stock.
167 * gtk/stock-icons/stock_select_all_{16,24}.png:
168 * gtk/stock-icons/Makefile.am:
169 * gtk/gtkiconfactory.c:
171 * gtk/gtkstock.c: Add a "Select All" stock item. (#78545,
174 * gtk/gtktrayicon.c: Add a pointer to the spec.
176 * gtk/gtkstatusicon-x11.c: Add docs.
178 * gtk/gtkstatusicon.h: Fix a typo.
180 Add a cross-platform "tray icon" API, by
181 porting EggStatusIcon/EggTrayIcon (#105101)
183 * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
184 displays an icon in a notification area.
186 * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
187 X11, using GtkTrayIcon.
190 * gtk/gtktrayicon.c: An implementation of the freedesktop.org
191 system tray specification, not public API.
193 * gtk/gtk.symbols: Add new exported functions.
195 * gtk/gtk.h: Include gtkstatusicon.h.
197 * gtk/Makefile.am: Add new files.
200 * tests/teststatusicon.c: Test for GtkStatusIcon.
202 2005-08-29 Christopher Aillon <caillon@redhat.com>
204 * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
205 and GTK_STOCK_DISCONNECT
207 2005-08-29 Matthias Clasen <mclasen@redhat.com>
209 * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify):
210 Use XFixesChangeSaveSet if available. (#314682)
212 * gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
213 was active. (#314298, Christian Persch, analysis by Mark McLoughlin)
215 2005-08-29 Matthias Clasen <mclasen@redhat.com>
217 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
218 accidentally leftover duplicate pixbuf creation. (#314700,
221 * gtk/gtksettings.c (settings_update_cursor_theme): Don't
222 leak the cursor theme name. (#314693, Kjartan Maraas)
224 * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free
225 state.children in all cases. (#313862, Kjartan Maraas)
227 2005-08-28 Matthias Clasen <mclasen@redhat.com>
229 * po/POTFILES.in, po-properties/POTFILES.in:
232 2005-08-27 Matthias Clasen <mclasen@redhat.com>
234 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
235 value of the ui property. (#314532, Yong Wang)
237 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
238 when G_MAXLONG is passed as length.
240 2005-08-26 Matthias Clasen <mclasen@redhat.com>
242 * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
243 to avoid overloading --force. (JP Rosevaar)
245 2005-08-26 Matthias Clasen <mclasen@redhat.com>
247 * configure.in: Bump version to 2.9.0
251 * gdk/gdkscreen.c: Make the GdkScreen font options api
252 public, and add properties GdkScreen::font-options and
253 GdkScreen::resolution. (#314004)
257 * gtk/gtkwidget.c: Adjust all callers.
259 * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
260 * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
261 * gdk/gdkscreen.c: Include gdkintl.h.
263 * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
264 variable warning, pointed out by Colin Walters. (#314585)
266 2005-08-26 Tor Lillqvist <tml@novell.com>
268 * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
270 (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
272 2005-08-26 Matthias Clasen <mclasen@redhat.com>
274 * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
275 of week_start. (#314473, JP Rosevaar)
277 2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
279 * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
280 lock. (#314533, Thomas Fitzsimmons)
282 2005-08-25 Matthias Clasen <mclasen@redhat.com>
284 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
285 NULL gracefully. (#314523, Ed Catmur)
287 2005-08-25 Owen Taylor <otaylor@redhat.com>
289 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
290 Handle theme == NULL.
292 2005-08-25 Matthias Clasen <mclasen@redhat.com>
294 * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
295 y offset into account when positioning the popup. (#314470,
298 2005-08-25 Owen Taylor <otaylor@redhat.com>
300 * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
301 as instance_init, not base_init! (#314452, Fix from Frederic
302 Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
303 rather than 1 for a negative flag value.
305 2005-08-24 Owen Taylor <otaylor@redhat.com>
307 * gdk/gdkpango.c (draw_error_underline): Add a note about
308 cut-and-paste between here and Pango.
310 2005-08-24 Matthias Clasen <mclasen@redhat.com>
312 * === Released 2.8.2 ===
314 * gtk/gtkclipboard.c (request_image_received_func): Use the correct
315 callback for image/gif, and also try image/bmp. (#314086, Mark
318 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
319 Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev. (#314382,
324 * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
325 and cursor settings get propagated down to the screen initially.
326 Pointed out by Frederic Crozat.
328 * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
329 message if the screen is NULL. Noticed by Kjartan Maraas.
331 2005-08-24 Matthias Clasen <mclasen@redhat.com>
335 * === Released 2.8.1 ===
339 2005-08-24 Matthias Clasen <mclasen@redhat.com>
341 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
342 against lazy filterers which return values other than TRUE or
343 FALSE from their visible func. (#314335)
345 2005-08-23 Owen Taylor <otaylor@redhat.com>
347 Fix for #314004, reported by Michael Reinsch:
350 * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
351 Add gdk_screen_get/set_resolution_libgtk_only()
353 * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
354 the options for the screen on the newly created context.
356 * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c:
357 Move font options and dpi code from gtkwidget.c to gtksettings.c, set
358 the font options on the screen.
360 * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
361 the font options from the screen and set them on the context.
363 2005-08-23 Kristian Rietveld <kris@gtk.org>
365 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
366 bother inserting new rows in a level with a zero refcount and
367 immediately free the level. (Fixes #312350, reported by Markku Vire).
369 2005-08-23 Matthias Clasen <mclasen@redhat.com>
371 * gtk/updateiconcache.c: Complain when there is no index.theme file
372 in the specified directory, unless --force is used. Also add an
373 --index-only option to create caches without image data.
375 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
376 C99ism. (#314262, Robert Jeff Mitchell)
378 2005-08-22 Manish Singh <yosh@gimp.org>
380 * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
382 * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
384 2005-08-22 Matthias Clasen <mclasen@redhat.com>
386 * gtk/gtkwindow.c (gtk_window_client_event):
387 * gtk/gtkicontheme.c (ensure_valid_themes)
388 (_gtk_icon_theme_check_reload): Implement a clientmessage based
389 scheme for makeing sure that all GTK+ applications notice if an
390 icon theme has been updated. This should prevent multiple versions
391 of an icon theme cache to be mapped in memory at the same time,
392 which can cause excessive memory consumption. (#313156, Chris
395 2005-08-22 Matthias Clasen <mclasen@redhat.com>
397 * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
398 regarding icon theme changes.
400 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
401 pixbufs which are backed by the mmapped memory of an icon cache,
402 increase the refcount of the icon cache, so that the memory is not
403 munmapped away underneath the pixbuf upon icon theme changes.
404 (#314170, Kjartan Maraas)
406 * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order
407 to link against Xext. (#314062)
409 * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
410 overruns. (#314081, Hans Breuer)
412 2005-08-20 Matthias Clasen <mclasen@redhat.com>
414 * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
415 returned layout must not be modified.
417 Sat Aug 20 16:12:14 2005 Jonathan Blandford <jrb@redhat.com>
419 * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
420 scroll_to_path if the model changes.
422 * gtk/gtkiconview.c: (gtk_icon_view_destroy),
423 (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
424 (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
425 we're realized, #312798
426 (gtk_icon_view_set_model): clear scroll_to_path if the model
429 2005-08-20 Matthias Clasen <mclasen@redhat.com>
431 * gtk/gtkrange.c (gtk_range_adjustment_changed)
432 (gtk_range_adjustment_value_changed): Don't queue a draw
433 if the layout has not changed. (#313991, Benjamin Berg)
435 2005-08-19 Matthias Clasen <mclasen@redhat.com>
437 * gtk/gtktreeitem.c: Remove duplicate lines. (#313344,
440 * modules/engines/ms-windows/msw_style.c (setup_system_styles):
443 * gtk/gtkfilechooserbutton.c (change_icon_theme)
444 (model_add_special, model_add_special, model_add_volumes):
445 Handle pixbuf being NULL without warnings. Also, don't
446 leak pixbuf references when the icon theme is changed.
448 * gtk/gtkmain.c (gtk_get_event_widget): Don't access
449 the user data on destroyed windows, since at best
450 it can be a stale pointer. (#313953, Robin Green)
452 2005-08-19 Matthias Clasen <mclasen@redhat.com>
454 * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
455 (#313900, Sebastien Bacher)
457 * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
458 FALSE if the tree is empty. (#313891, Guillaume Cottenceau)
460 * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display)
461 (xdnd_read_actions, get_client_window_at_coords_recurse):
462 Free data returned from XGetWindowProperty.
464 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
465 Free data returned from XGetWindowProperty. (313867, Kjartan
468 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
469 children in all cases. (#313862, Kjartan Maraas)
471 * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs
472 in the per-directory hash, even if they come from the icon cache.
473 We tried to avoid that before, but as a result leaked icon data
474 structs. (#313852, Kjartan Maraas)
476 2005-08-18 Matthias Clasen <mclasen@redhat.com>
478 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
479 signal handlers on destroy, not on finalize. (#313759, Brett Atoms)
481 2005-08-15 Owen Taylor <otaylor@redhat.com>
483 * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
484 files for x11/xext. (Jonas Bonn)
486 2005-08-15 Tor Lillqvist <tml@novell.com>
488 * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
491 2005-08-15 Owen Taylor <otaylor@redhat.com>
493 * configure.in: Fix have_base_pc / have_base_x_pc typo.
495 * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
496 (#313417, James Andrewartha)
498 * configure.in: Add fontconfig to X_PACKAGES, since we use it for
499 FcNameConstant(). (More of #313417)
501 2005-08-15 Matthias Clasen <mclasen@redhat.com>
503 * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
504 modal dialogs, make sure to inherit the window group from
505 the parent, since we don't inherit window groups across
506 transient parents currently. (#312918, Christian Persch)
508 * gtk/gtkmessagedialog.c (gtk_message_dialog_new):
509 * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs.
511 * gtk/gtkiconview.c (gtk_icon_view_select_path)
512 (gtk_icon_view_scroll_to_path): Handle paths of depth 0
513 gracefully. (#312796, Jonathan Blandford)
515 * tests/testtoolbar.c: Add some more tests for menu placement.
517 * gtk/gtkmenutoolbutton.c (menu_position_func):
518 * gtk/gtktoolbar.c (menu_position_func): Improve positioning
519 of toolbutton menus and of the overflow menu. (#312937,
520 #153870, Christian Persch, Paolo Borelli)
522 2005-08-15 Tor Lillqvist <tml@novell.com>
524 * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
525 the nonportable <libgen.h> and dirname().
527 2005-08-15 Matthias Clasen <mclasen@redhat.com>
529 * gtk/gtksizegroup.c: Use object data to mark widgets and
530 groups as visited, so that we avoid constant extra list
531 traversals. Also allocate quarks in class_init. (#311618,
534 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the
535 download location for the hicolor icon theme. (#313475, Olexiy
538 * gtk/gtkicontheme.c: Remove debug spew.
540 2005-08-15 Owen Taylor <otaylor@redhat.com>
542 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap):
543 * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap):
544 * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
545 Handle pixmap == NULL when checking for a colormap.
548 2005-08-14 Matthias Clasen <mclasen@redhat.com>
550 * gtk/updateiconcache.c: Store only one copy of the pixel data
551 for symlinked icons. To achieve this, maintain a hashtable
552 mapping pathnames to pixel data, and share the pixel data for
553 all symlinks resolving to the same pathname. When writing out
554 the image data, write out the pixel data only the first time
555 it is met, and store the offset pointing to the first copy
556 for use in all later cases.
557 This reduces the size of the Bluecurve icon cache from 40