1 2005-08-30 Matthias Clasen <mclasen@redhat.com>
5 * gtk/gtkselection.c: Add functions which look for text, image
6 or uri targets in an array of atoms. (#314089, Mark Wielaard)
10 * gtk/gtkselection.c (gtk_selection_data_targets_include_uri):
11 Add a function to check wether targets include uri.
12 (#314092, Mark Wielaard)
16 * gtk/gtkwindow.c: Add a deletable property with getter
17 and setter, to control the close button in the window
18 frame. (#59718, Havoc Pennington)
20 2005-08-29 Matthias Clasen <mclasen@redhat.com>
22 * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
23 to the arrow keys for menu navigation. (#162825, Carl Worth)
25 * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
27 * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
29 * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock):
30 * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
31 refer to nonexisting stock ids.
33 * gtk/gtktextview.c (popup_targets_received):
34 * gtk/gtkentry.c (popup_targets_received): Construct
35 the "Select All" menuitem from stock.
37 * gtk/stock-icons/stock_select_all_{16,24}.png:
38 * gtk/stock-icons/Makefile.am:
39 * gtk/gtkiconfactory.c:
41 * gtk/gtkstock.c: Add a "Select All" stock item. (#78545,
44 * gtk/gtktrayicon.c: Add a pointer to the spec.
46 * gtk/gtkstatusicon-x11.c: Add docs.
48 * gtk/gtkstatusicon.h: Fix a typo.
50 Add a cross-platform "tray icon" API, by
51 porting EggStatusIcon/EggTrayIcon (#105101)
53 * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
54 displays an icon in a notification area.
56 * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
57 X11, using GtkTrayIcon.
60 * gtk/gtktrayicon.c: An implementation of the freedesktop.org
61 system tray specification, not public API.
63 * gtk/gtk.symbols: Add new exported functions.
65 * gtk/gtk.h: Include gtkstatusicon.h.
67 * gtk/Makefile.am: Add new files.
70 * tests/teststatusicon.c: Test for GtkStatusIcon.
72 2005-08-29 Christopher Aillon <caillon@redhat.com>
74 * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
75 and GTK_STOCK_DISCONNECT
77 2005-08-29 Matthias Clasen <mclasen@redhat.com>
79 * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify):
80 Use XFixesChangeSaveSet if available. (#314682)
82 * gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
83 was active. (#314298, Christian Persch, analysis by Mark McLoughlin)
85 2005-08-29 Matthias Clasen <mclasen@redhat.com>
87 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
88 accidentally leftover duplicate pixbuf creation. (#314700,
91 * gtk/gtksettings.c (settings_update_cursor_theme): Don't
92 leak the cursor theme name. (#314693, Kjartan Maraas)
94 * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free
95 state.children in all cases. (#313862, Kjartan Maraas)
97 2005-08-28 Matthias Clasen <mclasen@redhat.com>
99 * po/POTFILES.in, po-properties/POTFILES.in:
102 2005-08-27 Matthias Clasen <mclasen@redhat.com>
104 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
105 value of the ui property. (#314532, Yong Wang)
107 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
108 when G_MAXLONG is passed as length.
110 2005-08-26 Matthias Clasen <mclasen@redhat.com>
112 * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
113 to avoid overloading --force. (JP Rosevaar)
115 2005-08-26 Matthias Clasen <mclasen@redhat.com>
117 * configure.in: Bump version to 2.9.0
121 * gdk/gdkscreen.c: Make the GdkScreen font options api
122 public, and add properties GdkScreen::font-options and
123 GdkScreen::resolution. (#314004)
127 * gtk/gtkwidget.c: Adjust all callers.
129 * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
130 * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
131 * gdk/gdkscreen.c: Include gdkintl.h.
133 * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
134 variable warning, pointed out by Colin Walters. (#314585)
136 2005-08-26 Tor Lillqvist <tml@novell.com>
138 * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
140 (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
142 2005-08-26 Matthias Clasen <mclasen@redhat.com>
144 * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
145 of week_start. (#314473, JP Rosevaar)
147 2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
149 * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
150 lock. (#314533, Thomas Fitzsimmons)
152 2005-08-25 Matthias Clasen <mclasen@redhat.com>
154 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
155 NULL gracefully. (#314523, Ed Catmur)
157 2005-08-25 Owen Taylor <otaylor@redhat.com>
159 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
160 Handle theme == NULL.
162 2005-08-25 Matthias Clasen <mclasen@redhat.com>
164 * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
165 y offset into account when positioning the popup. (#314470,
168 2005-08-25 Owen Taylor <otaylor@redhat.com>
170 * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
171 as instance_init, not base_init! (#314452, Fix from Frederic
172 Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
173 rather than 1 for a negative flag value.
175 2005-08-24 Owen Taylor <otaylor@redhat.com>
177 * gdk/gdkpango.c (draw_error_underline): Add a note about
178 cut-and-paste between here and Pango.
180 2005-08-24 Matthias Clasen <mclasen@redhat.com>
182 * === Released 2.8.2 ===
184 * gtk/gtkclipboard.c (request_image_received_func): Use the correct
185 callback for image/gif, and also try image/bmp. (#314086, Mark
188 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
189 Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev. (#314382,
194 * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
195 and cursor settings get propagated down to the screen initially.
196 Pointed out by Frederic Crozat.
198 * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
199 message if the screen is NULL. Noticed by Kjartan Maraas.
201 2005-08-24 Matthias Clasen <mclasen@redhat.com>
205 * === Released 2.8.1 ===
209 2005-08-24 Matthias Clasen <mclasen@redhat.com>
211 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
212 against lazy filterers which return values other than TRUE or
213 FALSE from their visible func. (#314335)
215 2005-08-23 Owen Taylor <otaylor@redhat.com>
217 Fix for #314004, reported by Michael Reinsch:
220 * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
221 Add gdk_screen_get/set_resolution_libgtk_only()
223 * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
224 the options for the screen on the newly created context.
226 * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c:
227 Move font options and dpi code from gtkwidget.c to gtksettings.c, set
228 the font options on the screen.
230 * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
231 the font options from the screen and set them on the context.
233 2005-08-23 Kristian Rietveld <kris@gtk.org>
235 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
236 bother inserting new rows in a level with a zero refcount and
237 immediately free the level. (Fixes #312350, reported by Markku Vire).
239 2005-08-23 Matthias Clasen <mclasen@redhat.com>
241 * gtk/updateiconcache.c: Complain when there is no index.theme file
242 in the specified directory, unless --force is used. Also add an
243 --index-only option to create caches without image data.
245 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
246 C99ism. (#314262, Robert Jeff Mitchell)
248 2005-08-22 Manish Singh <yosh@gimp.org>
250 * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
252 * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
254 2005-08-22 Matthias Clasen <mclasen@redhat.com>
256 * gtk/gtkwindow.c (gtk_window_client_event):
257 * gtk/gtkicontheme.c (ensure_valid_themes)
258 (_gtk_icon_theme_check_reload): Implement a clientmessage based
259 scheme for makeing sure that all GTK+ applications notice if an
260 icon theme has been updated. This should prevent multiple versions
261 of an icon theme cache to be mapped in memory at the same time,
262 which can cause excessive memory consumption. (#313156, Chris
265 2005-08-22 Matthias Clasen <mclasen@redhat.com>
267 * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
268 regarding icon theme changes.
270 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
271 pixbufs which are backed by the mmapped memory of an icon cache,
272 increase the refcount of the icon cache, so that the memory is not
273 munmapped away underneath the pixbuf upon icon theme changes.
274 (#314170, Kjartan Maraas)
276 * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order
277 to link against Xext. (#314062)
279 * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
280 overruns. (#314081, Hans Breuer)
282 2005-08-20 Matthias Clasen <mclasen@redhat.com>
284 * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
285 returned layout must not be modified.
287 Sat Aug 20 16:12:14 2005 Jonathan Blandford <jrb@redhat.com>
289 * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
290 scroll_to_path if the model changes.
292 * gtk/gtkiconview.c: (gtk_icon_view_destroy),
293 (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
294 (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
295 we're realized, #312798
296 (gtk_icon_view_set_model): clear scroll_to_path if the model
299 2005-08-20 Matthias Clasen <mclasen@redhat.com>
301 * gtk/gtkrange.c (gtk_range_adjustment_changed)
302 (gtk_range_adjustment_value_changed): Don't queue a draw
303 if the layout has not changed. (#313991, Benjamin Berg)
305 2005-08-19 Matthias Clasen <mclasen@redhat.com>
307 * gtk/gtktreeitem.c: Remove duplicate lines. (#313344,
310 * modules/engines/ms-windows/msw_style.c (setup_system_styles):
313 * gtk/gtkfilechooserbutton.c (change_icon_theme)
314 (model_add_special, model_add_special, model_add_volumes):
315 Handle pixbuf being NULL without warnings. Also, don't
316 leak pixbuf references when the icon theme is changed.
318 * gtk/gtkmain.c (gtk_get_event_widget): Don't access
319 the user data on destroyed windows, since at best
320 it can be a stale pointer. (#313953, Robin Green)
322 2005-08-19 Matthias Clasen <mclasen@redhat.com>
324 * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
325 (#313900, Sebastien Bacher)
327 * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
328 FALSE if the tree is empty. (#313891, Guillaume Cottenceau)
330 * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display)
331 (xdnd_read_actions, get_client_window_at_coords_recurse):
332 Free data returned from XGetWindowProperty.
334 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
335 Free data returned from XGetWindowProperty. (313867, Kjartan
338 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
339 children in all cases. (#313862, Kjartan Maraas)
341 * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs
342 in the per-directory hash, even if they come from the icon cache.
343 We tried to avoid that before, but as a result leaked icon data
344 structs. (#313852, Kjartan Maraas)
346 2005-08-18 Matthias Clasen <mclasen@redhat.com>
348 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
349 signal handlers on destroy, not on finalize. (#313759, Brett Atoms)
351 2005-08-15 Owen Taylor <otaylor@redhat.com>
353 * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
354 files for x11/xext. (Jonas Bonn)
356 2005-08-15 Tor Lillqvist <tml@novell.com>
358 * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
361 2005-08-15 Owen Taylor <otaylor@redhat.com>
363 * configure.in: Fix have_base_pc / have_base_x_pc typo.
365 * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
366 (#313417, James Andrewartha)
368 * configure.in: Add fontconfig to X_PACKAGES, since we use it for
369 FcNameConstant(). (More of #313417)
371 2005-08-15 Matthias Clasen <mclasen@redhat.com>
373 * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
374 modal dialogs, make sure to inherit the window group from
375 the parent, since we don't inherit window groups across
376 transient parents currently. (#312918, Christian Persch)
378 * gtk/gtkmessagedialog.c (gtk_message_dialog_new):
379 * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs.
381 * gtk/gtkiconview.c (gtk_icon_view_select_path)
382 (gtk_icon_view_scroll_to_path): Handle paths of depth 0
383 gracefully. (#312796, Jonathan Blandford)
385 * tests/testtoolbar.c: Add some more tests for menu placement.
387 * gtk/gtkmenutoolbutton.c (menu_position_func):
388 * gtk/gtktoolbar.c (menu_position_func): Improve positioning
389 of toolbutton menus and of the overflow menu. (#312937,
390 #153870, Christian Persch, Paolo Borelli)
392 2005-08-15 Tor Lillqvist <tml@novell.com>
394 * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
395 the nonportable <libgen.h> and dirname().
397 2005-08-15 Matthias Clasen <mclasen@redhat.com>
399 * gtk/gtksizegroup.c: Use object data to mark widgets and
400 groups as visited, so that we avoid constant extra list
401 traversals. Also allocate quarks in class_init. (#311618,
404 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the
405 download location for the hicolor icon theme. (#313475, Olexiy
408 * gtk/gtkicontheme.c: Remove debug spew.
410 2005-08-15 Owen Taylor <otaylor@redhat.com>
412 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap):
413 * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap):
414 * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
415 Handle pixmap == NULL when checking for a colormap.
418 2005-08-14 Matthias Clasen <mclasen@redhat.com>
420 * gtk/updateiconcache.c: Store only one copy of the pixel data
421 for symlinked icons. To achieve this, maintain a hashtable
422 mapping pathnames to pixel data, and share the pixel data for
423 all symlinks resolving to the same pathname. When writing out
424 the image data, write out the pixel data only the first time
425 it is met, and store the offset pointing to the first copy
426 for use in all later cases.
427 This reduces the size of the Bluecurve icon cache from 40