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