]> Pileus Git - ~andy/gtk/blob - ChangeLog
if we can't go up/down, consult gtk_widget_keynav_failed() and leave the
[~andy/gtk] / ChangeLog
1 2006-11-24  Michael Natterer  <mitch@imendio.com>
2
3         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): if we
4         can't go up/down, consult gtk_widget_keynav_failed() and leave the
5         widget if it returns FALSE (bug #322640).
6
7 2006-11-23  Behdad Esfahbod  <behdad@gnome.org>
8
9         * gtk/gtkmain.c: Fix minor typo in docs. (#378632, Hannes Mueller)
10
11 2006-11-22  Emmanuele Bassi  <ebassi@gnome.org>
12
13         * gtk/gtkrecentmanager.c:
14         (get_uri_shortname_for_display): g_filename_from_uri() might
15         fail; catch the failure and fall back to the non-local URI
16         case. (#363437)
17
18 2006-11-19  Mark McLoughlin  <mark@skynet.ie>
19
20         Fixes bug #376502 - multi-screen support for GtkStatusIcon
21
22         * gtk/gtkstatusicon.[ch]:
23         (gtk_status_icon_set_screen),
24         (gtk_status_icon_get_screen): add multi-screen API. Allows
25         an app to display an icon on a non-default screen
26         (gtk_status_icon_class_init),
27         (gtk_status_icon_set_property),
28         (gtk_status_icon_get_property): add a "screen" property
29         
30         * tests/teststatusicon.c: update to test on multiple screens
31
32 2006-11-17  Matthias Clasen  <mclasen@redhat.com>
33
34         Fix problems with drag cancellation. (#376535, Michael Natterer)
35         
36         * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Disconnect signal
37         handlers before emitting drag-end.
38         (gtk_drag_end): Disconnect signal handlers before removing
39         the grab.  
40
41 2006-11-16  Mariano Suárez-Alvarez <mariano@gnome.org>
42
43         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
44         add gtk-doc blurb on GtkCellRendererText::edited (#376094)
45
46 2006-11-16  Michael Natterer  <mitch@imendio.com>
47
48         * gtk/gtkradiobutton.c (gtk_radio_button_focus): don't use
49         gtk_widget_keynav_failed(). Instead, look at gtk-keynav-cursor-only
50         and gtk-keynav-wrap-around and wrap around, beep or continue outside
51         the group manually (bug #322640).
52
53 2006-11-16  Michael Natterer  <mitch@imendio.com>
54
55         Add new infrastructure for notifications of failed keyboard
56         navigation and navigation with restricted set of keys.
57
58         The patch handles configurable beeping, navigating the GUI with
59         cursor keys only (as in phone environments), and configurable
60         wrap-around. Fixes bugs #322640, #70986, #318827, #334726, #334742
61         and #309291.
62
63         * gtk/gtksettings.c: added properties gtk-keynav-cursor-only,
64         gtk-keynav-wrap-around and gtk-error-bell.
65
66         * gtk/gtkwidget.[ch]: added new signal "keynav-failed" and public
67         API to emit it. Added New function gtk_widget_error_bell() which
68         looks at the gtk-error-bell setting and calls gdk_window_beep()
69         accordingly.
70
71         * gtk/gtk.symbols: add the new widget symbols.
72
73         * gtk/gtkcellrendereraccel.c
74         * gtk/gtkimcontextsimple.c
75         * gtk/gtkmenu.c
76         * gtk/gtknotebook.c: use gtk_widget_error_bell() or look at the
77         gtk-error-bell setting instead of calling gdk_display_beep()
78         unconditionally.
79
80         * gtk/gtkcombobox.c
81         * gtk/gtkentry.c
82         * gtk/gtkiconview.c
83         * gtk/gtklabel.c
84         * gtk/gtkmenushell.c
85         * gtk/gtkspinbutton.c
86         * gtk/gtktextview.c
87         * gtk/gtktreeview.c: call gtk_widget_error_bell() on failed keynav.
88
89         * gtk/gtkentry.c
90         * gtk/gtklabel.c
91         * gtk/gtkrange.c
92         * gtk/gtktextview.c: consult gtk_widget_keynav_failed() on failed
93         cursor navigation and leave the widget if it returns FALSE.
94
95         * gtk/gtkmenushell.c
96         * gtk/gtknotebook.c: only wrap around if gtk-keynav-wrap-around
97         is TRUE.
98
99         * gtk/gtkradiobutton.c: ask gtk_widget_keynav_failed() to decide
100         whether to to wrap-around, and don't select active items on cursor
101         navigation if gtk-keynav-cursor-only is TRUE. Should look at
102         gtk-keynav-wrap-around too, will look into that.
103
104 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
105
106         * gtk/gtkrecentmanager.c:
107         (gtk_recent_info_get_uri_display): Return the URI
108         of the GtkRecentInfo object (upgraded to UTF-8 if
109         needed) in case of non-local file. (#351945)
110
111 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
112         
113         * gtk/gtkrecentchoosermenu.c:
114         (gtk_recent_chooser_menu_add_tip): Apply the tip only
115         if we have a displayable name for the item. (#365031,
116         patch by padraig.obriain(at)sun.com)
117
118 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
119
120         * gtk/gtkrecentmanager.c: Provide a fast path returning
121         NULL when the limit is set to 0.
122
123         * gtk/gtkrecentchooserdefault.c:
124         * gtk/gtkrecentchoosermenu.c: Add the same fast path
125         inside the RecentChooser implementation; add a check
126         in the list clamping code. (#373466 and duplicates)
127
128 2006-11-15  Matthias Clasen  <mclasen@redhat.com>
129
130         * modules/printbackends/cups/gtkprintbackendcups.c (cups_printer_get_options): 
131         Don't pass NULL to strncpy.  (#359537, patch by  Carlos Garcia Campos)
132
133 2006-11-15  Michael Natterer  <mitch@imendio.com>
134
135         * gtk/gtkrange.[ch]: added properties "fill-level",
136         "show-fill-level" and "restrict-to-fill-level" and getters/setters
137         for them. The "fill level" is an additional marker on the range's
138         trough than can be e.g. used to indicate the amount of
139         pre-buffering in a range showing the play position of streamed
140         media. See the embedded API docs for details. Made GtkRangeLayout
141         a GTypeInstance private struct and removed finalize()
142         implementation. Fixes bug #349808
143
144         * gtk/gtk.symbols: added the new symbols.
145
146 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
147
148         * configure.in: Make libtool magic robust. (#352795)
149
150 2006-11-13  Paolo Borelli  <pborelli@katamail.com>
151
152         * gtk/gtkrc.c (gtk_rc_parse_icon_source): plug small memory
153         leak (#370395)
154
155 2006-11-09  Kristian Rietveld  <kris@imendio.com>
156
157         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): disable
158         don't move cursor case for SELECTION_NONE. (#371756, John Ellis).
159
160 2006-11-09  Carlos Garnacho  <carlosg@gnome.org>
161
162         * gtk/gtkpathbar.c (on_slider_unmap): Fix parenthesis confusion.
163
164 2006-11-08  Carlos Garnacho  <carlosg@gnome.org>
165
166         * gtk/gtkpathbar.c (on_slider_unmap): added, do not leave the scroll
167         timeout running if the slider buttons are hidden. (#372527)
168
169 2006-11-08  Christian Persch  <chpe@cvs.gnome.org>
170
171         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Don't make
172         the "Location" label bold. Bug #372449.
173
174 2006-11-07  Carlos Garnacho  <carlosg@gnome.org>
175
176         * gtk/gtknotebook.c (gtk_notebook_calculate_tabs_allocation): make
177         non-focused tabs xthickness/ythickness thinner. (#353962)
178
179 2006-11-07  Paolo Borelli  <pborelli@katamail.com>
180
181         * gtk/gtktextbtree.c (_gtk_text_btree_delete): avoid memory
182         corruption (#357050).
183
184 2006-11-06  Alexander Larsson  <alexl@redhat.com>
185
186         * gtk/gtkdnd.c: (gtk_drag_begin_internal),
187         (gtk_drag_source_info_destroy), (gtk_drag_end),
188         (gtk_drag_grab_notify_cb):
189         Cancel drag when the grab is shadowed. (#122688)
190
191 2006-11-01  Kristian Rietveld  <kris@imendio.com>
192
193         * gtk/gtkcombobox.c (gtk_combo_box_class_init),
194         (gtk_combo_box_size_request): add arrow-size property to control
195         the minimum size of the arrow, have the arrow scale up with the
196         font by default. (#357950).
197
198 2006-10-30  Kristian Rietveld  <kris@gtk.org>
199
200         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): don't
201         forget to queue a draw for the new cursor node. (Fixes #366548,
202         reported by Sven Herzberg).
203
204 2006-10-30  Michael Natterer  <mitch@imendio.com>
205
206         * gtk/gtkrange.c (gtk_range_key_press): consume the Escape key
207         only if we actually cancel a drag. Fixes bug #58389.
208
209 2006-10-30  Kristian Rietveld  <kris@gtk.org>
210
211         * gtk/gtktreeview.c (gtk_tree_view_class_init): change left/right
212         keybindings to collapse/expand rows instead of moving the focus
213         cursor. (#105895, Brian Bober and others).
214
215 2006-10-29  Kristian Rietveld  <kris@gtk.org>
216
217         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): guard against
218         child removal in row-expanded callback. (#366782, John Ellis).
219
220 2006-10-29  Tor Lillqvist  <tml@novell.com>
221
222         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Improve handling
223         of the small icon of the window class. (#152620, Kazuki Iwamoto)
224
225 2006-10-29  Tor Lillqvist  <tml@novell.com>
226
227         * gdk/win32/gdkcursor-win32.c
228         (gdk_win32_icon_to_pixbuf_libgtk_only): Implement for B&W cursors,
229         for instance the built-in GDK ones.
230
231 2006-10-27  Kristian Rietveld  <kris@gtk.org>
232
233         * gtk/gtktreeview.c (validate_visible_area): rework the area_above == 0
234         case to not overwrite the variables in the lower scope (which are
235         used later on ...), get the path correctly and bail out when there
236         isn't a node above us. (#359231).
237
238 2006-10-26  Christian Persch  <chpe@cvs.gnome.org>
239
240         * gtk/gtkaboutdialog.c: Put initial focus on Close button (#337261).
241
242 2006-10-25  Johan Dahlin  <jdahlin@async.com.br>
243
244         * gtk/gtk.symbols: Add missing symbols to so make check can pass
245
246 2006-10-23  Dom Lachowicz <domlachowicz@gmail.com>
247
248         * src/modules/engines/ms-windows/msw_style.c (draw_expander): Remember
249         to free GDI Pen resources, introduced by bug 340201.(#364514)
250         
251 2006-10-18  Kristian Rietveld  <kris@imendio.com>
252
253         * tests/testcombo.c (main): connect to notify::popup-shown instead of
254         popup-show (the latter does not exist).
255
256 2006-10-15  Paolo Borelli  <pborelli@katamail.com>
257
258         * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
259         Fixes bug #362439.
260
261 2006-10-12  Michael Natterer  <mitch@imendio.com>
262
263         * gtk/gtkcombobox.c (gtk_combo_box_class_init): fix commit below
264         (committed the wrong patch).
265
266 2006-10-12  Michael Natterer  <mitch@imendio.com>
267
268         * gtk/gtkcombobox.c: added "move-active" and "popup" signals and
269         bindings to trigger them. Removed gtk_combo_box_key_press(), it's
270         obsolete now. Fixes bug #358293.
271
272 2006-10-11  Michael Emmel  <mike.emmel@gmail.com>
273
274         * gdkpixmap-directfb.c: add missing RGB24 case (#361176) 
275
276 2006-10-11  Tor Lillqvist  <tml@novell.com>
277
278         * configure.in: Enable having some gdk-pixbuf loaders built-in
279         even if loading the others dynamically. Define Automake
280         conditional INCLUDE_FOO for each loader as TRUE if that loader is
281         built-in. See also gdk-pixbuf/ChangeLog.
282
283 Wed Oct 11 14:31:30 2006  Tim Janik  <timj@imendio.com>
284
285         * docs/reference/gtk/gtk-sections.txt:
286         * gtk/gtkbindings.c: document gtk_binding_entry_skip().
287
288 2006-10-11  Tor Lillqvist  <tml@novell.com>
289
290         * gtk/gtk.symbols: Remove gtk_combo_string_key, which is a static
291         variable.
292
293 2006-10-11  Tor Lillqvist  <tml@novell.com>
294
295         Merge from 2.10 branch:
296
297         * gtk/gtkmain.c (do_pre_parse_initialization): On Win32, if
298         environment variable LC_ALL or LANG is set, set the Win32 thread
299         locale to the corresponding locale. Then call the C library
300         setlocale() to set the C library locale accordingly. The
301         inconsistency mentioned below is gone. (#339756) Do some special
302         casing for Serbia and Montenegro. Handle the Latin and Cyrillic
303         scripts for Azeri, Uzbek and Serbian.
304         (enum_locale_proc): Helper function for the above functionality.
305
306         * gtk/gtkcalendar.c (gtk_calendar_init): No longer need to check
307         if the environment variables are set here, as they have already
308         been taken into account and the Win32 thread locale has been
309         set.
310
311 Tue Oct 10 16:38:23 2006  Tim Janik  <timj@imendio.com>
312
313         * gtk/tmpl/gtkbindings.sgml: 
314         * gtk/gtkbindings.c: applied patch from Michael Natterer to move to 
315         inline docs. applied wording fixes suggested by Martyn Russell.
316
317 2006-10-09  Matthias Clasen  <mclasen@redhat.com>
318
319         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
320         Update the docs to state which out parameters may be NULL.
321         (#360870, Attilio Fiandrotti)
322
323 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
324
325         * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix
326         a typo.  (#359542, Ghee Teo)
327
328 2006-10-08 Matthias Clasen <mclasen@redhat.com>
329
330         * gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
331         reorder tabs if the focus is in the tab.  (#350342, Carlos
332         Garnacho Parro)
333
334 2006-10-08 Michael Emmel <mike.emmel@gmail.com>
335
336         * gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611) 
337
338 2006-10-08  Kristian Rietveld  <kris@gtk.org>
339
340         * gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
341         (gtk_tree_view_set_show_expanders),
342         (gtk_tree_view_get_show_expanders): add getter/setter for
343         show-expanders property, queue a redraw when this property
344         is toggled (#351167, Martin Ejdestig),
345         (gtk_tree_view_set_level_indentation),
346         (gtk_tree_view_get_level_indentation): also add getter/setter
347         and docs for level-indentation property.
348
349 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
350
351         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't 
352         leak a list.  (#360350, Benjamin Berg)
353
354         * Apply a cleanup patch by Kjartan Maraas  (#341812)
355
356 2006-10-07  Tor Lillqvist  <tml@novell.com>
357
358         * gtk/gtkcalendar.c (gtk_calendar_init): Use the Win32 thread
359         locale's first day of week setting on Win32. (#339752, Bogdan
360         Nicula) Don't do this if one of the environment variables that
361         affect gettext is set, though. In that case use the week start day
362         from the corresponding message catalog.
363
364         Unfortunately the same logic isn't possible in the weekday and
365         month name lookup; there even if you have set one of the
366         aforementioned environment variables, you still get the weekday
367         and month names from the Win32 thread locale. Yes, this is
368         inconsistent.
369
370         Use only wide-character API in the Win32 code in this file, too.
371
372 2006-10-06  Matthias Clasen  <mclasen@redhat.com>
373
374         * gtk/gtkfilechooser.c (gtk_file_chooser_set_select_multiple):
375         Fix the docs.  (#360112)
376
377         * gtk/gtkcellview.c: Don't set the background of the
378         window in a no-window widget.  (#359581, Xan Lopez)
379
380
381 2006-10-05  Behdad Esfahbod  <behdad@gnome.org>
382
383         * gtk/Makefile.am, gtk/aliasfilescheck.sh:  Propagate srcdir into the
384         test correctly. (#359845)
385
386 2006-10-05  Michael Natterer  <mitch@imendio.com>
387
388         * gtk/gtkrc.[ch]: added new scanner token "unbind" which gets
389         rid of a key binding (in fact, it only lets it appear unbound).
390
391         * gtk/gtkbindings.[ch] (struct GtkBindingEntry): added
392         "guint marks_unbound : 1"
393
394         (gtk_binding_entry_skip): new API which marks the entry as unbound.
395
396         Changed code so it returns FALSE when "marks_unbound == TRUE" is
397         encountered while activating bindings, effectively letting the
398         binding appear unbound (regardless of still existing bindings in
399         lower binding priority levels). Fixes bug #358329.
400
401         (gtk_binding_entry_add)
402         (gtk_binding_entry_clear)
403         (gtk_binding_entry_add_signall)
404         (gtk_binding_parse_binding): deprected these functions.
405
406         (_gtk_binding_parse_binding)
407         (_gtk_binding_entry_add_signall): new internal API.
408
409         * gtk/gtk.symbols: changed accordingly.
410
411 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
412
413         Fix interaction of GtkEntryCompletion with input
414         methods.  (#354495, Diego Escalante Urrelo)
415
416         * gtk/gtkentry.c (gtk_entry_completion_key_press): Only reset
417         the im context if we actually handle the key event.
418
419         * gtk/gtkentrycompletion.c: Also propagate key release events
420         to the entry.
421
422 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
423
424         * gtk/gtkprintsettings.c (gtk_print_settings_get_duplex):
425         Fix a typo.  (#359052, Ghee Teo)
426
427         * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
428         reduce relocations. (#359053)
429
430 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
431
432         * modules/printbackends/cups/gtkcupsutils.c:
433         * modules/printbackends/cups/gtkprintbackendcups.c: Complete
434         the fix for bug 357280.
435
436 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
437
438         * gdk-pixbuf/Makefile.am:
439         * gdk/Makefile.am:
440         * gtk/Makefile.am:
441         Include pltcheck.sh in EXTRA_DIST.
442
443 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
444
445         * gdk/x11/gdkevents-x11.c: Move all includes before including
446         gdkalias.h.
447
448 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
449
450         * gtk/Makefile.am: Fix typo in file name.  (#358931)
451
452 2006-10-02  Matthias Clasen  <mclasen@redhat.com>
453
454         * modules/printbackends/cups/gtkprintbackendcups.c (available_choices): 
455         Only use the group name field if cups is new enough.  (#357280)
456
457         * gtk/gtksizegroup.c: Make sure that the quarks are 
458         initialized before using them.  (#353736)
459
460         * gtk/Makefile.am (stamp-icons): Use rm instead of ln -f to
461         replace existing links.  (#354849, James Evans)
462
463 2006-10-01  Matthias Clasen  <mclasen@redhat.com>
464
465         * gtk/gtkexpander.c (gtk_expander_realize) 
466         (gtk_expander_size_allocate): Make the event_window large
467         enough to cover the full height of the label_widget.  (#358351,
468         Scott Horowitz)
469
470 2006-10-01  Tor Lillqvist  <tml@novell.com>
471
472         * gtk/gtkfilesystemwin32.c: Same change as to gtkfilesystemunix.c.
473
474 2006-09-30  Matthias Clasen  <mclasen@redhat.com>
475
476         * gtk/gtkfilechooserbutton.c (update_combo_box): Protect
477         against base_path being NULL.  (#358405, many reporters)
478
479 2006-09-29  Matthias Clasen  <mclasen@redhat.com>
480
481         * gtk/gtkfilesystemunix.c: Apply a patch by Padraig O'Briain
482         to avoid a deadlock.
483
484 2006-09-27  Kristian Rietveld  <kris@imendio.com>
485
486         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_free_level),
487         (gtk_tree_model_filter_ref_node),
488         (gtk_tree_model_filter_real_unref_node): bring zero ref count loops
489         in sync with each other and the sort model.
490
491 2006-09-27  Kristian Rietveld  <kris@imendio.com>
492
493         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_init),
494         (gtk_tree_model_filter_finalize), (gtk_tree_model_filter_row_deleted),
495         (gtk_tree_model_filter_new): unref the virtual root path once that
496         node (or one if its ancestors) is deleted, set virtual_root_deleted
497         so we only unref it once.
498
499 2006-09-27  Kristian Rietveld  <kris@imendio.com>
500
501         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed),
502         (gtk_tree_model_sort_sort_level): ref count nodes the proper way,
503         (gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node),
504         (gtk_tree_model_sort_free_level): bring zero ref count loops in
505         sync,
506         (gtk_tree_model_sort_free_level): free child levels before
507         decreasing the zero ref count of the current level,
508         (gtk_tree_model_sort_clear_cache): only clear cache if zero_ref_count
509         is > 0.
510
511 2006-09-25  Matthias Clasen  <mclasen@redhat.com>
512
513         * demos/gtk-demo/*.c:
514         * gtk/gtkeventbox.c:
515         * gtk/gtkprintoperation.c: Fix typos. String change.
516
517 2006-09-25  Kristian Rietveld  <kris@gtk.org>
518
519         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): if the tree view
520         has already been realized; scroll to background area instead of
521         cell area. (Fixes #330683, Johan Dahlin, Tommi Komulainen).
522
523 2006-09-25  Kristian Rietveld  <kris@gtk.org>
524
525         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): only attempt
526         to create the GCs if the widget is realized. (Fixes #357578).
527
528 2006-09-25  Matthias Clasen  <mclasen@redhat.com>
529
530         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Don't leak
531         the list of children (#357454, Paolo Borelli)
532
533 2006-09-25  Michael Natterer  <mitch@imendio.com>
534
535         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): free
536         display->input_windows with g_free(), not g_object_unref()
537         (#357566, Tommi Komulainen).
538
539 2006-09-24  Kristian Rietveld  <kris@gtk.org>
540
541         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
542         (gtk_cell_renderer_text_[sg]et_property): actually add align-set
543         property to the API (left-over patch from #157439).
544
545 2006-09-24  Kristian Rietveld  <kris@gtk.org>
546
547         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): draw
548         the indicator if the column has a sort column id (and the model is
549         sortable) or if the user explicitly requested the indicator
550         to be shown.  (Fixes #352738, Chris Vine).
551
552 2006-09-23  Tor Lillqvist  <tml@novell.com>
553
554         * gtk/Makefile.am: Use EXEEXT.
555
556 2006-09-22  Michael Natterer  <mitch@imendio.com>
557
558         * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories
559         and color hashes. Fixes bug #357132.
560
561 2006-09-22  Matthias Clasen  <mclasen@redhat.com>
562
563         Make remote bookmarks work better (#354887)
564         
565         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): 
566         (shortcuts_insert_path): 
567         * gtk/gtkfilechooserbutton.c (change_icon_theme): 
568         (model_add_bookmarks): 
569         (model_update_current_folder): 
570         (update_label_and_image): 
571         If the bookmark points to a remote file, don't call get_info(), 
572         since that may a) take a long time and b) pop up an auth dialog.
573         Instead, just use a folder icon and create a display name
574         from the uri.
575
576         * gtk/gtkfilechooserdefault.c (_gtk_file_chooser_label_for_uri): 
577         New function to create a suitable display name for a remote
578         uri. This should really be done in GtkFileSystem.
579         
580 2006-09-21  Michael Natterer  <mitch@imendio.com>
581
582        Implement lots of value setters for GdkGC, based on a heavily
583        modified patch from Thomas Broyer (bug #328853):
584
585         * gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
586         on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
587         which simply returns RGBA values from a GdkColor's pixel value.
588         See gdk_quartz_update_context_from_gc() below.
589
590         * gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
591         of members for the newly suppored GC values. Added enum
592         GdkQuartzContextValuesMask which is used for setting up the
593         CGContext for filling and/or stroking.
594
595         * gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
596         (gdk_quartz_gc_set_values)
597         (_gdk_windowing_gc_copy): support a lot more GC values.
598
599         (gdk_quartz_update_context_from_gc): added
600         GdkQuartzContextValuesMask parameter and set filling/stroking
601         parameters accordingly. This function also gained full control
602         over the FG and BG colors (they can't be set separately any more).
603
604         The stipple mask part of the patch doesn't work but seems to take
605         the right approach and doesn't make things worse, so I applied it.
606
607         Did *not* apply the clipping part of the patch since I don't
608         understand it (I don't understand the version in CVS either, but
609         it at least works :-)
610
611         * gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
612         gdk_quartz_update_context_from_gc() and removed separate color
613         setting calls. Some minor fixes.
614
615         * gdk/quartz/gdkwindow-quartz.c
616         (gdk_window_impl_quartz_begin_paint_region): set the CGContext's
617         fill color manually. We don't have/need a GC here.
618
619 2006-09-21  Michael Natterer  <mitch@imendio.com>
620
621         * gdk/quartz/gdkwindow-quartz.c
622         (gdk_window_impl_quartz_begin_paint_region): fix cast: it's
623         drawable_impl->wrapper that is the GdkWindow, not the
624         drawable_impl itself.
625
626 2006-09-20  Behnam Esfahbod <behnam@zwnj.org>
627
628         * gdk/x11/gdkkeys-x11.c:
629           (get_direction): just check the first shift-level of keyboard
630         layout for RTL and LTR keysyms() (compliment to #116626)
631
632 Wed Sep 20 16:59:38 2006  Tim Janik  <timj@imendio.com>
633
634         * gtk/gtkviewport.c: always update the bin_window position and size
635         in size_allocate, even if we don't have a visible child. this fixes
636         expose artefacts as described in #313508.
637
638         * gtk/gtkscrolledwindow.c: make hiding of automatic scrollbars when we
639         have no visible child explicit.
640
641 2006-09-19  Ryan Lortie  <desrt@desrt.ca>
642
643         * docs/reference/gdk/gdk-sections.txt:
644         * gdk/gdk.symbols:
645         * gdk/gdkpango.h:
646         * gdk/gdkpango.c: Bug 355343.  Add a GdkPangoAttrEmbossColor.
647           (gdk_pango_layout_get_clip_region): Remove an unused variable.
648           (gdk_pango_attr_embossed_new): Fix documentation.
649
650 Tue Sep 19 17:00:04 2006  Tim Janik  <timj@imendio.com>
651
652         * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to 
653         control the arrow/border ratio within the allocation.
654
655         * tests/testgtk.c: added a GtkArrow to handle box test.
656
657         * tests/testgtkrc: test ::arrow-scaling property.
658
659 2006-09-19  Matthias Clasen  <mclasen@redhat.com>
660
661         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
662         Display an error when we come to the root.  
663
664 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
665
666         * gtk/gtkfilechooserbutton.c: Use bookmark labels in 
667         the combobox. 
668
669         * gtk/gtkfilechooserbutton.c: Don't add remote volumes and 
670         bookmarks to the model in local-only mode, to avoid 
671         authentication dialogs pop up for invisible bookmarks, and
672         to fix issues with separators not being hidden when
673         they should.  (#354887, Dennis Cranston)
674
675 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
676
677         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the
678         treeview use in list mode.  (#355732, Richard Hult)
679
680         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Send
681         change notification for the right property.  (#355308,
682         Torsten Schoenfeld)
683
684 2006-09-15  Michael Natterer  <mitch@imendio.com>
685
686         * gtk/gtktreeview.c (gtk_tree_view_key_press): refactored column
687         header navigation/resizing/reordering to be more readable and lose
688         one level of nesting.
689
690 2006-09-15  Kristian Rietveld  <kris@imendio.com>
691
692         * gtk/gtktreeview.c (gtk_tree_view_key_press): actually directly
693         return after handling column button focus; we disable wrap around
694         with this (which actually happened via a really weird code path).
695         (Michael Natterer)
696
697 2006-09-15  Kristian Rietveld  <kris@imendio.com>
698
699         * gtk/gtktreeview.c (gtk_tree_view_key_press): make column resizing
700         code RTL aware, also break from the loops after we have seen the
701         focussed column button (Michael Natterer).
702
703 Thu Sep 14 12:28:51 2006  Tim Janik  <timj@imendio.com>
704
705         * tests/testrichtext.c (main): intialize random number generator state
706         upon program start, to enable truely random testing.
707
708 2006-09-13 Michael Emmel <mike.emmel@gmail.com>
709
710         * gdk/directfb/gdkcolor-directfb.c small clean ups include order
711         * gdk/directfb/gdkwindow-directfb.c fixed beep compile error
712         * gdk/directfb/Makefile.am removed GDK_PIXBUF_DISABLE_DEPRECATED
713                 GDK_DISABLE_DEPRECATED to allow compile per Behdad
714         * gdk/quartz/Makefile.am same change as directfb Makefile
715         * gtk/Makefile.am fixed typo that cause socket stubs not to compile
716
717 2006-09-13 Matthias Clasen <mclasen@redhat.com>
718
719         * gtk/gtkcolorsel.c: Use a GtkWindow instead of a GtkInvisible
720         for the grab widget, to make the color picker work with window
721         groups.  
722
723 2006-09-12 Hong Jen Yee <pcman.tw@gmail.com>
724
725         signed off by: Dom Lachowicz
726         
727         * modules/engines/ms-windows/msw_style.c: Bug 340201. This contains
728         a large number of improvements to the Microsoft Windows theme engine
729         which are fully described in the bug report.
730         
731 Mon Sep 11 14:22:39 2006  Tim Janik  <timj@imendio.com>
732
733         * tests/testgtk.c: fixed compiler warnings.
734
735 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
736
737         * gtk/gtkfilechooserbutton.c (model_add_special): Request
738         the display name too, otherwise "Desktop" does not appear
739         in the file chooser button. 
740
741 2006-09-10  Tor Lillqvist  <tml@novell.com>
742
743         * gdk/win32/gdkprivate-win32.h
744         * gdk/win32/gdkmain-win32.c
745         * gdk/win32/gdkwindow-win32.c: Define WINVER and _WIN32_WINNT as
746         0x0500 in gdkprivate-win32.h instead of doing it in two source
747         files. (#355212, Mike Edenfield)
748
749         * gdk/win32/gdkwindow-win32.c: We can also remove the ersatz
750         GetAncestor() for the _MSC_VER && WINVER < 0x0500 case, I hope.
751
752 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
753
754         * Commit a patch by Behdad to fix typos, omissions and other
755         errors in the symbol aliasing, and add checks for local PLT
756         entries.  (#354687, Behdad Esfahbod)
757
758         * gtk/gtktreeview.c (gtk_tree_view_search_scroll_event): Renew
759         the flush timeout.  (#354043, Nelson Benitez)
760         
761         * gtk/gtkfilechoosersettings.c (set_unexpected_element_end_error): 
762         Improve wording. String change!  (#355126, David Lodge)
763
764         * gtk/updateiconcache.c: Improve wording. String change!  (#355128,
765         David Lodge)
766
767         * gtk/paper_names_offsets.c: Fix a typo. String change!  (#355134,
768         David Lodge)
769
770 2006-09-09  Matthias Clasen <mclasen@redhat.com>
771
772         * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks.
773         (#353916, Chris Wilson)
774
775         * gtk/gtksettings.c (_gtk_settings_reset_rc_values):
776         Don't leak the to_reset list.  (#353914, Chris Wilson)
777
778         * gtk/gtkwidget.c: Add docs for the parent-set signal.
779         (#353772, Mariano Suárez-Alvarez)
780
781 2006-09-08  Matthias Clasen <mclasen@redhat.com>
782
783         * gtk/gtktextbuffer.c (remove_all_selection_clipboards):
784         Don't clear clipboards here, since we are called from finalize
785         and can't emit signals.
786
787         * configure.in: Set version to 2.11.0
788
789 2006-09-06  Richard Hult  <richard@imendio.com>
790
791         * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Special-case 
792         shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.
793
794 2006-09-04  Kristian Rietveld  <kris@imendio.com>
795
796         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
797         if setting the given folder failed, try setting the parent folder
798         until we succeed; display an error box at the end.
799
800 2006-09-04  Kristian Rietveld  <kris@imendio.com>
801
802         * gtk/gtkpathbar.c (gtk_path_bar_dispose): don't cancel the
803         operations spawned by buttons here,
804         (set_button_image_get_info_cb): bail out if button is NULL, but
805         do free button_data,
806         (button_data_free): only free the data if non NULL (since this
807         function can be called multiple times for the same data), cancel
808         handle if pending but don't free button_data in this case (will
809         happen in the callback).
810
811 2006-09-04  Michael Natterer  <mitch@imendio.com>
812
813         * gtk/gtkrc.c (rc_parse_token_or_compound)
814         (gtk_rc_parse_assignment): serialize floating point values using
815         locale-independent functions. (#346751, Frederic Crozat)
816
817 2006-09-04  Tor Lillqvist  <tml@novell.com>
818
819         * gdk/win32/gdkevents-win32.c
820         * gdk/win32/gdkwindow-win32.c: Use wide-char API for message and
821         window handling (PeekMessage, PostMessage, SendMessage,
822         DispatchMessage, DefWindowProc, RegisterClassEx,
823         CreateWindowEx). (#321597)
824
825 2006-09-03  Kristian Rietveld  <kris@imendio.com>
826
827         * gtk/gtkfilechooserdefault.c (save_entry_get_info_cb),
828         (file_exists_get_info_cb), (gtk_file_chooser_default_should_respond):
829         change file_exists_and_is_not_folder checks to get the file info
830         for the path directly instead of querying the current file folder
831         of the save entry.
832
833         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): add
834         new field.
835
836         * tests/autotestfilechooser.c (wait_for_idle_idle), (wait_for_idle),
837         (test_reload_sequence), (test_button_folder_states_for_action): wait
838         for idle after setting a folder to ensure the async operations to load
839         the folder are finished,
840         (test_confirm_overwrite), (test_confirm_overwrite_for_path):
841         factor out test_confirm_overwrite code so we can add tests for more
842         paths more easily.
843
844 2006-09-03  Richard Hult  <richard@imendio.com>
845
846         * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
847         exposure isn't in the event mask, plug a leak, and check that the
848         window isn't destroyed.
849         (isOpaque): Check that the window isn't destroyed, fixes bug 
850         #353028.
851
852 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
853
854         * gtk/gtkwidget.c (gtk_widget_class_init): Fix a typo.  
855         (#354035, Mariano Suárez-Alvarez)
856
857         * gtk/gtkmain.c (post_parse_hook): 
858         * gdk/gdk.c (gdk_init): Handle display_name being NULL.
859         (#354004, Chris Wilson)
860
861 2006-09-03  Tor Lillqvist  <tml@novell.com>
862
863         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): No
864         GDK_WINDOW_DISPLAY in the Win32 backend.
865
866         * gtk/gtkfilesystemwin32.c: Copy what Kris did to
867         gtkfilesystemunix.c
868
869 2006-09-02  Kristian Rietveld  <kris@imendio.com>
870
871         First part of file chooser fixes.
872
873         * gtk/gtkfilechooserbutton.c (model_add_special): also set the
874         handle in the model for the desktopdir case.
875
876         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder): free
877         volume in case we retrieved it but don't pass it on to insert_path,
878         (shortcuts_model_create): change the column type for the handles
879         to pointer instead of GObject so our handle ref counting is not
880         disturbed,
881         (show_and_select_paths_finished_loading): don't forget to unref
882         the dialog.
883
884         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_class_init),
885         (gtk_file_system_unix_init), (gtk_file_system_unix_dispose):
886         remove pending execute_callbacks_idle during dispose, also
887         execute all callbacks waiting to be run in the next idle,
888         (queue_*callback), (execute_callbacks_idle): refactor to maintain
889         a list of callbacks to call per file system instead of globally,
890         guard the file system during callback invocation,
891         (gtk_file_system_unix_get_folder): only add load folder idle if
892         none has been added yet.
893
894 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
895
896         * gtk/gtkentry.c: Don't unnecessarily reset the im context
897         when deleting the selection.  (#353803, Alex Larsson)
898
899 2006-09-01  Abel Cheung  <abel@oaka.org>
900
901         * configure.in: Added 'ang' 'dz' to ALL_LINGUAS.
902
903 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
904
905         Stop cursor blinking after a configurable timeout.
906         (#353670, #352442, Arjan van de Ven, Manu Cornet)
907         
908         * gtk/gtksettings.c (gtk_settings_class_init): Add a 
909         gtk-cursor-blink-timeout setting, which specifies the number
910         of seconds that the cursor should blink after a user interaction.
911         The default value is G_MAXINT to preserve the current behaviour.
912
913         * gtk/gtkentry.c (blink_cb): Stop blinking after blink-timeout
914         seconds.
915
916         * gtk/gtkentry.c (gtk_entry_completion_key_press) 
917         (gtk_entry_button_press, gtk_entry_focus_in): Reset the
918         blink timer.
919
920         * gtk/gtktextview.c (blink_cb): Stop blinking after blink-timeout
921         seconds. 
922
923         * gtk/gtktextview.c (gtk_text_view_key_press_event) 
924         (gtk_text_view_button_press_event, gtk_text_view_focus_in_event): 
925         Reset the blink timer.
926         
927 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
928
929         * gtk/gtkprintoperation-unix.c (get_print_dialog): Don't specify
930         explicit format capabilities.  (#346505, Christian Persch)
931
932         * modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error. 
933
934 2006-08-31  Michael Natterer  <mitch@imendio.com>
935
936         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
937
938 2006-08-30  Richard Hult  <richard@imendio.com>
939
940         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
941
942 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
943
944         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Only use XKB
945         for beeping if we are using XKB.  
946
947 2006-08-29  Matthias Clasen  <mclasen@redhat.com>
948
949         * gdk/gdkwindow.h: 
950         * gdk/gdk.symbols: 
951         * gdk/directfb/gdkwindow-directfb.c (gdk_window_beep): 
952         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): 
953         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): 
954         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
955         to beep on a window. For X11, implement this with
956         XkbBell.  (#353455, Mariano Suárez-Alvarez)
957         
958 2006-08-29  Tor Lillqvist  <tml@novell.com>
959
960         Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
961         since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
962         it isn't being maintained anyway. If somebody is interested, it
963         can always be found in older GTK+ versions, and in CVS.
964
965         * configure.in
966         * acconfig.h
967         * gdk/Makefile.am
968         * gdk/win32/Makefile.am
969         * gdk/win32/libie55uid.la
970         * gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure
971         switch and associated stuff. Active IMM and the <dimm.h> header
972         was used for IM support on NT4 and Win9x. Win2k and later have IM
973         support built-in.
974
975         * gdk/win32/gdkcursor-win32.c
976         * gdk/win32/gdkdnd-win32.c
977         * gdk/win32/gdkdrawable-win32.c
978         * gdk/win32/gdkevents-win32.c
979         * gdk/win32/gdkgc-win32.c
980         * gdk/win32/gdkglobals-win32.c
981         * gdk/win32/gdkkeys-win32.c
982         * gdk/win32/gdkmain-win32.c
983         * gdk/win32/gdkproperty-win32.c
984         * gdk/win32/gdkselection-win32.c
985         * gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED()
986         and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
987         branches, and any variables or static functions used only by the
988         Win9x branches.
989
990         * gdk/win32/gdkprivate-win32.h: Remove backup definitions for
991         constants that aren't missing from current mingw and MSVC6
992         headers.
993
994         * gdk/win32/gdkmain-win32.c
995         * gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
996         function. On NT-based Windows GetLastError() returns error codes
997         also for failed GDI calls, so we can use _gdk_win32_api_failed()
998         always.
999
1000 2006-08-29  Emmanuele Bassi  <ebassi@gnome.org>
1001
1002         * gtk/gtkrecentchoosermenu.c
1003         (gtk_recent_chooser_menu_set_current_uri): Break when an item
1004         is found and activated. (#353449, based on a patch by Jan Arne
1005         Petersen)
1006
1007 Fri Jul 14 16:13:37 2006  Tim Janik  <timj@gtk.org>
1008
1009         * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style 
1010         properties which make all hardcoded padding and spacing values
1011         configurable. properly swap ::text-xalign treatment for RTL widgets.
1012
1013         * gtk/gtkprogress.c: fixed style property blurbs. made alignment 
1014         proeprty more consistent with GtkMisc alignment blurbs. mention
1015         RTL treatment for text-xalign.
1016
1017 Tue Aug 29 11:57:40 2006  Tim Janik  <timj@imendio.com>
1018
1019         * tests/testgtk.c: allow (most) windows to be resizable.
1020         added ellipsization settings to progress bars. 
1021
1022 2006-08-28  Matthias Clasen   <mclasen@redhat.com>
1023
1024         * modules/printbackend/cups/gtkprintbackendcups.c: Use a
1025         resonable timeout of 3 seconds when polling for printer
1026         list updates, instead of 300000 seconds...
1027
1028 2006-08-28  Michael Natterer  <mitch@imendio.com>
1029
1030         * gtk/gtktextbufferserialize.c (serialize_text): don't write out
1031         </apply_tag> for tags that have already been closed by the logic
1032         which turns overlapping spans into XML-able trees. Fixes broken
1033         XML when there are overlapping tags in the buffer. Also free two
1034         leaked GLists and did some cleanup.
1035
1036         * tests/Makefile.am
1037         * tests/testrichtext.c: new test which creates randomly tagged
1038         GtkTextBuffers and serializes/deserializes them.
1039
1040 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
1041
1042         * gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data): 
1043         Don't leak pixbufs.  (#352264, Ross Burton)
1044
1045         * gtk/gtklinkbutton.c (set_link_underline): Don't leak
1046         PangoAttributes.  (#352391, Paolo Borelli)
1047
1048 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
1049
1050         * demos/gtk-demo/Makefile.am:
1051         * demos/gtk-demo/textscroll.c: Add an example of automatic
1052         scrolling, thanks to Yevgen Muntyan.  (#351206)
1053         
1054         * gtk/gtkmodules.c (find_module): Use local binding when
1055         loading modules.  (#351868)
1056
1057 2006-08-24  Michael Natterer  <mitch@imendio.com>
1058
1059         * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return
1060         the hostname instead of NULL.
1061
1062 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
1063
1064         * gtk/gtkprinteroptionwidget.[hc]: Fix confusion about
1065         names and values in comboboxes, and clean up some
1066         coding style issues.
1067
1068 2006-08-23  Tor Lillqvist  <tml@novell.com>
1069
1070         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
1071         Revert unintended translatable string addition. Use same string
1072         in GError as in gtkfilesystemunix.c.
1073
1074         * gtk/gtkfilesystemwin32.c (_gtk_file_system_win32_path_compare):
1075         Fix logic at the end of strings. 
1076
1077         * gtk/gtkfilesystemwin32.c: Maintain a hash table of live
1078         handles and check that we have no outstanding handles at
1079         finalization time. (Copying what Matthias did for
1080         gtkfilesystemunix.c)
1081
1082 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
1083
1084         * gtk/gtkfilesystemunix.c: Maintain a hash table
1085         of live handles and check that we have no outstanding
1086         handles at finalization time. (Copying what
1087         Federico did for gtkfilesystemgnomevfs.c)
1088
1089 2007-08-22  Matthias Clasen  <mclasen@redhat.com> 
1090
1091         * Branch for 2.10
1092