]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Intern some more strings.
[~andy/gtk] / ChangeLog.pre-2-10
1 2005-09-01  Matthias Clasen  <mclasen@redhat.com>
2
3         * gdk/*.c: Intern some more strings.
4         * gtk/gtkintl.h: 
5         * gtk/*.c: Define an I_() macro and use it instead of the 
6         bulky g_intern_static_string().
7
8 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
9
10         * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
11         instead of copying it.
12
13         * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
14
15         * gtk/*.c: Also intern static strings passed to 
16         g_object_set_data().
17
18         * gdk/Makefile.am: 
19         * gtk/Makefile.am: Intern type names in code generated by 
20         glib-mkenums, too.
21
22         * gtk/*.c: 
23         * gdk/x11/*.c: 
24         * gdk/*.c: Intern type names before registering the type to avoid 
25         unnecessary copies.
26
27         * configure.in: Require GLib 2.9.0
28
29 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
30
31         * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
32         and add icon-size and icon-size-set properties.  (#314172)      
33
34         * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
35         groups across transient parents.  (#312918, Christian Persch)
36
37         * gtk/gtktreemodel.c: Some documentation fixes.  (#314882,
38         Guillaume Cottenceau)
39
40         * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): 
41         Fix a typo in the docs.  (#314878, Guillaume Cottenceau)
42
43 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
44
45         * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
46         make C-/ select all and C-\ unselect all.  (#309301,
47         Kathy Fernandez)
48
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)
54
55         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
56         code.  (#313946, Christian Persch)
57
58         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
59         fix for the default value of the "ui" property.
60
61 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
62
63         * gtk/gtk.symbols: 
64         * gtk/gtkselection.h:
65         * gtk/gtkselection.c: Add functions which look for text, image
66         or uri targets in an array of atoms.   (#314089, Mark Wielaard)
67
68         * gtk/gtk.symbols: 
69         * gtk/gtkselection.h:
70         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
71         Add a function to check wether targets include uri.  
72         (#314092, Mark Wielaard)
73         
74         * gtk/gtk.symbols: 
75         * gtk/gtkwindow.h: 
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)
79
80 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
81
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)
84
85         * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
86
87         * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
88
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.
92
93         * gtk/gtktextview.c (popup_targets_received): 
94         * gtk/gtkentry.c (popup_targets_received): Construct
95         the "Select All" menuitem from stock.
96
97         * gtk/stock-icons/stock_select_all_{16,24}.png:
98         * gtk/stock-icons/Makefile.am: 
99         * gtk/gtkiconfactory.c:
100         * gtk/gtkstock.h: 
101         * gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
102         Calum Benson)
103
104         * gtk/gtktrayicon.c: Add a pointer to the spec.
105
106         * gtk/gtkstatusicon-x11.c: Add docs.
107
108         * gtk/gtkstatusicon.h: Fix a typo.
109
110         Add a cross-platform "tray icon" API, by
111         porting EggStatusIcon/EggTrayIcon (#105101)
112         
113         * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
114         displays an icon in a notification area.
115
116         * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
117         X11, using GtkTrayIcon.
118
119         * gtk/gtktrayicon.h: 
120         * gtk/gtktrayicon.c: An implementation of the freedesktop.org
121         system tray specification, not public API.
122
123         * gtk/gtk.symbols: Add new exported functions.
124
125         * gtk/gtk.h: Include gtkstatusicon.h.
126
127         * gtk/Makefile.am: Add new files.
128
129         * tests/Makefile.am:
130         * tests/teststatusicon.c: Test for GtkStatusIcon.
131
132 2005-08-29  Christopher Aillon  <caillon@redhat.com>
133
134         * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
135         and GTK_STOCK_DISCONNECT
136         
137 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
138
139         * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify): 
140         Use XFixesChangeSaveSet if available.  (#314682)
141
142         * gtk/gtkmenu.c (gtk_menu_grab_notify):  Only cancel if the menu
143         was active.  (#314298, Christian Persch, analysis by Mark McLoughlin)
144
145 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
146
147         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
148         accidentally leftover duplicate pixbuf creation.  (#314700,
149         Kjartan Maraas)
150
151         * gtk/gtksettings.c (settings_update_cursor_theme): Don't 
152         leak the cursor theme name.  (#314693, Kjartan Maraas)
153
154         * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free 
155         state.children in all cases.  (#313862, Kjartan Maraas)
156
157 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
158
159         * po/POTFILES.in, po-properties/POTFILES.in:
160         Add gdk/gdkscreen.c
161
162 2005-08-27  Matthias Clasen  <mclasen@redhat.com>
163
164         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
165         value of the ui property. (#314532, Yong Wang)
166
167         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
168         when G_MAXLONG is passed as length.  
169
170 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
171
172         * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
173         to avoid overloading --force.  (JP Rosevaar)
174
175 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
176
177         * configure.in: Bump version to 2.9.0
178
179         * gdk/gdk.symbols: 
180         * gdk/gdkscreen.h: 
181         * gdk/gdkscreen.c: Make the GdkScreen font options api
182         public, and add properties GdkScreen::font-options and
183         GdkScreen::resolution.  (#314004)
184
185         * gdk/gdkpango.c:
186         * gtk/gtksettings.c:
187         * gtk/gtkwidget.c: Adjust all callers.
188         
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.
192
193         * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
194         variable warning, pointed out by Colin Walters. (#314585)
195
196 2005-08-26  Tor Lillqvist  <tml@novell.com>
197
198         * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
199         printouts.
200         (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
201
202 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
203
204         * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
205         of week_start.  (#314473, JP Rosevaar)
206
207 2005-08-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
208
209         * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
210         lock.  (#314533, Thomas Fitzsimmons)
211
212 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
213
214         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
215         NULL gracefully.  (#314523, Ed Catmur)
216
217 2005-08-25  Owen Taylor  <otaylor@redhat.com>
218
219         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
220         Handle theme == NULL.
221
222 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
223
224         * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
225         y offset into account when positioning the popup.  (#314470,
226         Christian Persch)
227
228 2005-08-25  Owen Taylor  <otaylor@redhat.com>
229
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.
234
235 2005-08-24  Owen Taylor  <otaylor@redhat.com>
236
237         * gdk/gdkpango.c (draw_error_underline): Add a note about
238         cut-and-paste between here and Pango.
239
240 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
241
242         * === Released 2.8.2 ===
243
244         * gtk/gtkclipboard.c (request_image_received_func): Use the correct
245         callback for image/gif, and also try image/bmp.  (#314086,  Mark 
246         Wielaard)
247
248         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon): 
249         Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev.  (#314382,
250         Sebastien Bacher)
251         
252         * NEWS: Updates
253
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.
257
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.
260
261 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
262
263         * Bump version
264
265         * === Released 2.8.1 ===
266
267         * NEWS: Updates
268         
269 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
270
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)
274
275 2005-08-23  Owen Taylor  <otaylor@redhat.com>
276
277         Fix for #314004, reported by Michael Reinsch:
278
279         * gdk/gdk.symbols:
280         * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
281         Add gdk_screen_get/set_resolution_libgtk_only()
282
283         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
284         the options for the screen on the newly created context.
285
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.
289
290         * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
291         the font options from the screen and set them on the context.
292
293 2005-08-23  Kristian Rietveld  <kris@gtk.org>
294
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).
298
299 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
300
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.
304
305         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
306         C99ism.  (#314262, Robert Jeff Mitchell)
307         
308 2005-08-22  Manish Singh  <yosh@gimp.org>
309
310         * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
311
312         * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
313
314 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
315
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 
323         Lahey)
324
325 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
326
327         * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
328         regarding icon theme changes.
329
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)
335
336         * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order 
337         to link against Xext.  (#314062)
338
339         * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
340         overruns.  (#314081, Hans Breuer)
341
342 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
343
344         * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
345         returned layout must not be modified.
346
347 Sat Aug 20 16:12:14 2005  Jonathan Blandford  <jrb@redhat.com>
348
349         * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
350         scroll_to_path if the model changes.
351
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
357         changes.
358
359 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
360
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)
364
365 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
366
367         * gtk/gtktreeitem.c: Remove duplicate lines.  (#313344,
368         Benoit Carpentier)
369
370         * modules/engines/ms-windows/msw_style.c (setup_system_styles): 
371         Fix a typo. 
372
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.
377
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)      
381
382 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
383
384         * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
385         (#313900, Sebastien Bacher)
386
387         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
388         FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
389
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. 
393
394         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) 
395         Free data returned from XGetWindowProperty.  (313867, Kjartan
396         Maraas)
397         
398         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
399         children in all cases.  (#313862, Kjartan Maraas)
400
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)
405
406 2005-08-18  Matthias Clasen  <mclasen@redhat.com>
407
408         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
409         signal handlers on destroy, not on finalize.  (#313759, Brett Atoms)
410
411 2005-08-15  Owen Taylor  <otaylor@redhat.com>
412
413         * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
414         files for x11/xext. (Jonas Bonn)
415
416 2005-08-15  Tor Lillqvist  <tml@novell.com>
417
418         * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
419         inside GTK_NOTE.
420
421 2005-08-15  Owen Taylor  <otaylor@redhat.com>
422
423         * configure.in: Fix have_base_pc / have_base_x_pc typo.
424
425         * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
426         (#313417, James Andrewartha)
427
428         * configure.in: Add fontconfig to X_PACKAGES, since we use it for
429         FcNameConstant(). (More of #313417)
430
431 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
432
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)
437
438         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): 
439         * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs. 
440
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)
444
445         * tests/testtoolbar.c: Add some more tests for menu placement.
446
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)
451
452 2005-08-15  Tor Lillqvist  <tml@novell.com>
453
454         * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
455         the nonportable <libgen.h> and dirname().
456
457 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
458
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,
462         Michael Natterer)
463
464         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the 
465         download location for the hicolor icon theme. (#313475, Olexiy 
466         Avramchenko)
467
468         * gtk/gtkicontheme.c: Remove debug spew. 
469
470 2005-08-15  Owen Taylor  <otaylor@redhat.com>
471
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.
476         (Allin Cottrell).
477
478 2005-08-14  Matthias Clasen  <mclasen@redhat.com>
479
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
488         to 13MB. (#312972)
489