1 2005-08-31 Matthias Clasen <mclasen@redhat.com>
3 * gtk/*.c: Also intern static strings passed to
7 * gtk/Makefile.am: Intern type names in code generated by
12 * gdk/*.c: Intern type names before registering the type to avoid
15 * configure.in: Require GLib 2.9.0
17 2005-08-31 Matthias Clasen <mclasen@redhat.com>
19 * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
20 and add icon-size and icon-size-set properties. (#314172)
22 * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
23 groups across transient parents. (#312918, Christian Persch)
25 * gtk/gtktreemodel.c: Some documentation fixes. (#314882,
28 * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions):
29 Fix a typo in the docs. (#314878, Guillaume Cottenceau)
31 2005-08-30 Matthias Clasen <mclasen@redhat.com>
33 * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
34 make C-/ select all and C-\ unselect all. (#309301,
37 * gtk/gtkimcontextsimple.c: Change the compose sequence for
38 soft hyphen to be multi_key-minus-minus-space, and add
39 compose sequences multi_key-minus-minus-period and
40 multi_key-minus-minus-minus for en dash and em dash.
41 (#172653, Christian Lohmaier)
43 * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
44 code. (#313946, Christian Persch)
46 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
47 fix for the default value of the "ui" property.
49 2005-08-30 Matthias Clasen <mclasen@redhat.com>
53 * gtk/gtkselection.c: Add functions which look for text, image
54 or uri targets in an array of atoms. (#314089, Mark Wielaard)
58 * gtk/gtkselection.c (gtk_selection_data_targets_include_uri):
59 Add a function to check wether targets include uri.
60 (#314092, Mark Wielaard)
64 * gtk/gtkwindow.c: Add a deletable property with getter
65 and setter, to control the close button in the window
66 frame. (#59718, Havoc Pennington)
68 2005-08-29 Matthias Clasen <mclasen@redhat.com>
70 * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
71 to the arrow keys for menu navigation. (#162825, Carl Worth)
73 * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
75 * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
77 * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock):
78 * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
79 refer to nonexisting stock ids.
81 * gtk/gtktextview.c (popup_targets_received):
82 * gtk/gtkentry.c (popup_targets_received): Construct
83 the "Select All" menuitem from stock.
85 * gtk/stock-icons/stock_select_all_{16,24}.png:
86 * gtk/stock-icons/Makefile.am:
87 * gtk/gtkiconfactory.c:
89 * gtk/gtkstock.c: Add a "Select All" stock item. (#78545,
92 * gtk/gtktrayicon.c: Add a pointer to the spec.
94 * gtk/gtkstatusicon-x11.c: Add docs.
96 * gtk/gtkstatusicon.h: Fix a typo.
98 Add a cross-platform "tray icon" API, by
99 porting EggStatusIcon/EggTrayIcon (#105101)
101 * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
102 displays an icon in a notification area.
104 * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
105 X11, using GtkTrayIcon.
108 * gtk/gtktrayicon.c: An implementation of the freedesktop.org
109 system tray specification, not public API.
111 * gtk/gtk.symbols: Add new exported functions.
113 * gtk/gtk.h: Include gtkstatusicon.h.
115 * gtk/Makefile.am: Add new files.
118 * tests/teststatusicon.c: Test for GtkStatusIcon.
120 2005-08-29 Christopher Aillon <caillon@redhat.com>
122 * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
123 and GTK_STOCK_DISCONNECT
125 2005-08-29 Matthias Clasen <mclasen@redhat.com>
127 * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify):
128 Use XFixesChangeSaveSet if available. (#314682)
130 * gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
131 was active. (#314298, Christian Persch, analysis by Mark McLoughlin)
133 2005-08-29 Matthias Clasen <mclasen@redhat.com>
135 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
136 accidentally leftover duplicate pixbuf creation. (#314700,
139 * gtk/gtksettings.c (settings_update_cursor_theme): Don't
140 leak the cursor theme name. (#314693, Kjartan Maraas)
142 * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free
143 state.children in all cases. (#313862, Kjartan Maraas)
145 2005-08-28 Matthias Clasen <mclasen@redhat.com>
147 * po/POTFILES.in, po-properties/POTFILES.in:
150 2005-08-27 Matthias Clasen <mclasen@redhat.com>
152 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
153 value of the ui property. (#314532, Yong Wang)
155 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
156 when G_MAXLONG is passed as length.
158 2005-08-26 Matthias Clasen <mclasen@redhat.com>
160 * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
161 to avoid overloading --force. (JP Rosevaar)
163 2005-08-26 Matthias Clasen <mclasen@redhat.com>
165 * configure.in: Bump version to 2.9.0
169 * gdk/gdkscreen.c: Make the GdkScreen font options api
170 public, and add properties GdkScreen::font-options and
171 GdkScreen::resolution. (#314004)
175 * gtk/gtkwidget.c: Adjust all callers.
177 * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
178 * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
179 * gdk/gdkscreen.c: Include gdkintl.h.
181 * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
182 variable warning, pointed out by Colin Walters. (#314585)
184 2005-08-26 Tor Lillqvist <tml@novell.com>
186 * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
188 (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
190 2005-08-26 Matthias Clasen <mclasen@redhat.com>
192 * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
193 of week_start. (#314473, JP Rosevaar)
195 2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
197 * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
198 lock. (#314533, Thomas Fitzsimmons)
200 2005-08-25 Matthias Clasen <mclasen@redhat.com>
202 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
203 NULL gracefully. (#314523, Ed Catmur)
205 2005-08-25 Owen Taylor <otaylor@redhat.com>
207 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
208 Handle theme == NULL.
210 2005-08-25 Matthias Clasen <mclasen@redhat.com>
212 * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
213 y offset into account when positioning the popup. (#314470,
216 2005-08-25 Owen Taylor <otaylor@redhat.com>
218 * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
219 as instance_init, not base_init! (#314452, Fix from Frederic
220 Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
221 rather than 1 for a negative flag value.
223 2005-08-24 Owen Taylor <otaylor@redhat.com>
225 * gdk/gdkpango.c (draw_error_underline): Add a note about
226 cut-and-paste between here and Pango.
228 2005-08-24 Matthias Clasen <mclasen@redhat.com>
230 * === Released 2.8.2 ===
232 * gtk/gtkclipboard.c (request_image_received_func): Use the correct
233 callback for image/gif, and also try image/bmp. (#314086, Mark
236 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
237 Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev. (#314382,
242 * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
243 and cursor settings get propagated down to the screen initially.
244 Pointed out by Frederic Crozat.
246 * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
247 message if the screen is NULL. Noticed by Kjartan Maraas.
249 2005-08-24 Matthias Clasen <mclasen@redhat.com>
253 * === Released 2.8.1 ===
257 2005-08-24 Matthias Clasen <mclasen@redhat.com>
259 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
260 against lazy filterers which return values other than TRUE or
261 FALSE from their visible func. (#314335)
263 2005-08-23 Owen Taylor <otaylor@redhat.com>
265 Fix for #314004, reported by Michael Reinsch:
268 * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
269 Add gdk_screen_get/set_resolution_libgtk_only()
271 * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
272 the options for the screen on the newly created context.
274 * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c:
275 Move font options and dpi code from gtkwidget.c to gtksettings.c, set
276 the font options on the screen.
278 * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
279 the font options from the screen and set them on the context.
281 2005-08-23 Kristian Rietveld <kris@gtk.org>
283 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
284 bother inserting new rows in a level with a zero refcount and
285 immediately free the level. (Fixes #312350, reported by Markku Vire).
287 2005-08-23 Matthias Clasen <mclasen@redhat.com>
289 * gtk/updateiconcache.c: Complain when there is no index.theme file
290 in the specified directory, unless --force is used. Also add an
291 --index-only option to create caches without image data.
293 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
294 C99ism. (#314262, Robert Jeff Mitchell)
296 2005-08-22 Manish Singh <yosh@gimp.org>
298 * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
300 * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
302 2005-08-22 Matthias Clasen <mclasen@redhat.com>
304 * gtk/gtkwindow.c (gtk_window_client_event):
305 * gtk/gtkicontheme.c (ensure_valid_themes)
306 (_gtk_icon_theme_check_reload): Implement a clientmessage based
307 scheme for makeing sure that all GTK+ applications notice if an
308 icon theme has been updated. This should prevent multiple versions
309 of an icon theme cache to be mapped in memory at the same time,
310 which can cause excessive memory consumption. (#313156, Chris
313 2005-08-22 Matthias Clasen <mclasen@redhat.com>
315 * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
316 regarding icon theme changes.
318 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
319 pixbufs which are backed by the mmapped memory of an icon cache,
320 increase the refcount of the icon cache, so that the memory is not
321 munmapped away underneath the pixbuf upon icon theme changes.
322 (#314170, Kjartan Maraas)
324 * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order
325 to link against Xext. (#314062)
327 * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
328 overruns. (#314081, Hans Breuer)
330 2005-08-20 Matthias Clasen <mclasen@redhat.com>
332 * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
333 returned layout must not be modified.
335 Sat Aug 20 16:12:14 2005 Jonathan Blandford <jrb@redhat.com>
337 * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
338 scroll_to_path if the model changes.
340 * gtk/gtkiconview.c: (gtk_icon_view_destroy),
341 (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
342 (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
343 we're realized, #312798
344 (gtk_icon_view_set_model): clear scroll_to_path if the model
347 2005-08-20 Matthias Clasen <mclasen@redhat.com>
349 * gtk/gtkrange.c (gtk_range_adjustment_changed)
350 (gtk_range_adjustment_value_changed): Don't queue a draw
351 if the layout has not changed. (#313991, Benjamin Berg)
353 2005-08-19 Matthias Clasen <mclasen@redhat.com>
355 * gtk/gtktreeitem.c: Remove duplicate lines. (#313344,
358 * modules/engines/ms-windows/msw_style.c (setup_system_styles):
361 * gtk/gtkfilechooserbutton.c (change_icon_theme)
362 (model_add_special, model_add_special, model_add_volumes):
363 Handle pixbuf being NULL without warnings. Also, don't
364 leak pixbuf references when the icon theme is changed.
366 * gtk/gtkmain.c (gtk_get_event_widget): Don't access
367 the user data on destroyed windows, since at best
368 it can be a stale pointer. (#313953, Robin Green)
370 2005-08-19 Matthias Clasen <mclasen@redhat.com>
372 * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
373 (#313900, Sebastien Bacher)
375 * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
376 FALSE if the tree is empty. (#313891, Guillaume Cottenceau)
378 * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display)
379 (xdnd_read_actions, get_client_window_at_coords_recurse):
380 Free data returned from XGetWindowProperty.
382 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
383 Free data returned from XGetWindowProperty. (313867, Kjartan
386 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
387 children in all cases. (#313862, Kjartan Maraas)
389 * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs
390 in the per-directory hash, even if they come from the icon cache.
391 We tried to avoid that before, but as a result leaked icon data
392 structs. (#313852, Kjartan Maraas)
394 2005-08-18 Matthias Clasen <mclasen@redhat.com>
396 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
397 signal handlers on destroy, not on finalize. (#313759, Brett Atoms)
399 2005-08-15 Owen Taylor <otaylor@redhat.com>
401 * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
402 files for x11/xext. (Jonas Bonn)
404 2005-08-15 Tor Lillqvist <tml@novell.com>
406 * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
409 2005-08-15 Owen Taylor <otaylor@redhat.com>
411 * configure.in: Fix have_base_pc / have_base_x_pc typo.
413 * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
414 (#313417, James Andrewartha)
416 * configure.in: Add fontconfig to X_PACKAGES, since we use it for
417 FcNameConstant(). (More of #313417)
419 2005-08-15 Matthias Clasen <mclasen@redhat.com>
421 * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
422 modal dialogs, make sure to inherit the window group from
423 the parent, since we don't inherit window groups across
424 transient parents currently. (#312918, Christian Persch)
426 * gtk/gtkmessagedialog.c (gtk_message_dialog_new):
427 * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs.
429 * gtk/gtkiconview.c (gtk_icon_view_select_path)
430 (gtk_icon_view_scroll_to_path): Handle paths of depth 0
431 gracefully. (#312796, Jonathan Blandford)
433 * tests/testtoolbar.c: Add some more tests for menu placement.
435 * gtk/gtkmenutoolbutton.c (menu_position_func):
436 * gtk/gtktoolbar.c (menu_position_func): Improve positioning
437 of toolbutton menus and of the overflow menu. (#312937,
438 #153870, Christian Persch, Paolo Borelli)
440 2005-08-15 Tor Lillqvist <tml@novell.com>
442 * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
443 the nonportable <libgen.h> and dirname().
445 2005-08-15 Matthias Clasen <mclasen@redhat.com>
447 * gtk/gtksizegroup.c: Use object data to mark widgets and
448 groups as visited, so that we avoid constant extra list
449 traversals. Also allocate quarks in class_init. (#311618,
452 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the
453 download location for the hicolor icon theme. (#313475, Olexiy
456 * gtk/gtkicontheme.c: Remove debug spew.
458 2005-08-15 Owen Taylor <otaylor@redhat.com>
460 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap):
461 * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap):
462 * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
463 Handle pixmap == NULL when checking for a colormap.
466 2005-08-14 Matthias Clasen <mclasen@redhat.com>
468 * gtk/updateiconcache.c: Store only one copy of the pixel data
469 for symlinked icons. To achieve this, maintain a hashtable
470 mapping pathnames to pixel data, and share the pixel data for
471 all symlinks resolving to the same pathname. When writing out
472 the image data, write out the pixel data only the first time
473 it is met, and store the offset pointing to the first copy
474 for use in all later cases.
475 This reduces the size of the Bluecurve icon cache from 40