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