]> Pileus Git - ~andy/gtk/blob - ChangeLog
draw the indicator if the column has a sort column id (and the model is
[~andy/gtk] / ChangeLog
1 2006-09-24  Kristian Rietveld  <kris@gtk.org>
2
3         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): draw
4         the indicator if the column has a sort column id (and the model is
5         sortable) or if the user explicitly requested the indicator
6         to be shown.  (Fixes #352738, Chris Vine).
7
8 2006-09-23  Tor Lillqvist  <tml@novell.com>
9
10         * gtk/Makefile.am: Use EXEEXT.
11
12 2006-09-22  Michael Natterer  <mitch@imendio.com>
13
14         * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories
15         and color hashes. Fixes bug #357132.
16
17 2006-09-22  Matthias Clasen  <mclasen@redhat.com>
18
19         Make remote bookmarks work better (#354887)
20         
21         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): 
22         (shortcuts_insert_path): 
23         * gtk/gtkfilechooserbutton.c (change_icon_theme): 
24         (model_add_bookmarks): 
25         (model_update_current_folder): 
26         (update_label_and_image): 
27         If the bookmark points to a remote file, don't call get_info(), 
28         since that may a) take a long time and b) pop up an auth dialog.
29         Instead, just use a folder icon and create a display name
30         from the uri.
31
32         * gtk/gtkfilechooserdefault.c (_gtk_file_chooser_label_for_uri): 
33         New function to create a suitable display name for a remote
34         uri. This should really be done in GtkFileSystem.
35         
36 2006-09-21  Michael Natterer  <mitch@imendio.com>
37
38        Implement lots of value setters for GdkGC, based on a heavily
39        modified patch from Thomas Broyer (bug #328853):
40
41         * gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
42         on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
43         which simply returns RGBA values from a GdkColor's pixel value.
44         See gdk_quartz_update_context_from_gc() below.
45
46         * gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
47         of members for the newly suppored GC values. Added enum
48         GdkQuartzContextValuesMask which is used for setting up the
49         CGContext for filling and/or stroking.
50
51         * gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
52         (gdk_quartz_gc_set_values)
53         (_gdk_windowing_gc_copy): support a lot more GC values.
54
55         (gdk_quartz_update_context_from_gc): added
56         GdkQuartzContextValuesMask parameter and set filling/stroking
57         parameters accordingly. This function also gained full control
58         over the FG and BG colors (they can't be set separately any more).
59
60         The stipple mask part of the patch doesn't work but seems to take
61         the right approach and doesn't make things worse, so I applied it.
62
63         Did *not* apply the clipping part of the patch since I don't
64         understand it (I don't understand the version in CVS either, but
65         it at least works :-)
66
67         * gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
68         gdk_quartz_update_context_from_gc() and removed separate color
69         setting calls. Some minor fixes.
70
71         * gdk/quartz/gdkwindow-quartz.c
72         (gdk_window_impl_quartz_begin_paint_region): set the CGContext's
73         fill color manually. We don't have/need a GC here.
74
75 2006-09-21  Michael Natterer  <mitch@imendio.com>
76
77         * gdk/quartz/gdkwindow-quartz.c
78         (gdk_window_impl_quartz_begin_paint_region): fix cast: it's
79         drawable_impl->wrapper that is the GdkWindow, not the
80         drawable_impl itself.
81
82 2006-09-20  Behnam Esfahbod <behnam@zwnj.org>
83
84         * gdk/x11/gdkkeys-x11.c:
85           (get_direction): just check the first shift-level of keyboard
86         layout for RTL and LTR keysyms() (compliment to #116626)
87
88 Wed Sep 20 16:59:38 2006  Tim Janik  <timj@imendio.com>
89
90         * gtk/gtkviewport.c: always update the bin_window position and size
91         in size_allocate, even if we don't have a visible child. this fixes
92         expose artefacts as described in #313508.
93
94         * gtk/gtkscrolledwindow.c: make hiding of automatic scrollbars when we
95         have no visible child explicit.
96
97 2006-09-19  Ryan Lortie  <desrt@desrt.ca>
98
99         * docs/reference/gdk/gdk-sections.txt:
100         * gdk/gdk.symbols:
101         * gdk/gdkpango.h:
102         * gdk/gdkpango.c: Bug 355343.  Add a GdkPangoAttrEmbossColor.
103           (gdk_pango_layout_get_clip_region): Remove an unused variable.
104           (gdk_pango_attr_embossed_new): Fix documentation.
105
106 Tue Sep 19 17:00:04 2006  Tim Janik  <timj@imendio.com>
107
108         * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to 
109         control the arrow/border ratio within the allocation.
110
111         * tests/testgtk.c: added a GtkArrow to handle box test.
112
113         * tests/testgtkrc: test ::arrow-scaling property.
114
115 2006-09-19  Matthias Clasen  <mclasen@redhat.com>
116
117         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
118         Display an error when we come to the root.  
119
120 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
121
122         * gtk/gtkfilechooserbutton.c: Use bookmark labels in 
123         the combobox. 
124
125         * gtk/gtkfilechooserbutton.c: Don't add remote volumes and 
126         bookmarks to the model in local-only mode, to avoid 
127         authentication dialogs pop up for invisible bookmarks, and
128         to fix issues with separators not being hidden when
129         they should.  (#354887, Dennis Cranston)
130
131 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
132
133         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the
134         treeview use in list mode.  (#355732, Richard Hult)
135
136         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Send
137         change notification for the right property.  (#355308,
138         Torsten Schoenfeld)
139
140 2006-09-15  Michael Natterer  <mitch@imendio.com>
141
142         * gtk/gtktreeview.c (gtk_tree_view_key_press): refactored column
143         header navigation/resizing/reordering to be more readable and lose
144         one level of nesting.
145
146 2006-09-15  Kristian Rietveld  <kris@imendio.com>
147
148         * gtk/gtktreeview.c (gtk_tree_view_key_press): actually directly
149         return after handling column button focus; we disable wrap around
150         with this (which actually happened via a really weird code path).
151         (Michael Natterer)
152
153 2006-09-15  Kristian Rietveld  <kris@imendio.com>
154
155         * gtk/gtktreeview.c (gtk_tree_view_key_press): make column resizing
156         code RTL aware, also break from the loops after we have seen the
157         focussed column button (Michael Natterer).
158
159 Thu Sep 14 12:28:51 2006  Tim Janik  <timj@imendio.com>
160
161         * tests/testrichtext.c (main): intialize random number generator state
162         upon program start, to enable truely random testing.
163
164 2006-09-13 Michael Emmel <mike.emmel@gmail.com>
165
166         * gdk/directfb/gdkcolor-directfb.c small clean ups include order
167         * gdk/directfb/gdkwindow-directfb.c fixed beep compile error
168         * gdk/directfb/Makefile.am removed GDK_PIXBUF_DISABLE_DEPRECATED
169                 GDK_DISABLE_DEPRECATED to allow compile per Behdad
170         * gdk/quartz/Makefile.am same change as directfb Makefile
171         * gtk/Makefile.am fixed typo that cause socket stubs not to compile
172
173 2006-09-13 Matthias Clasen <mclasen@redhat.com>
174
175         * gtk/gtkcolorsel.c: Use a GtkWindow instead of a GtkInvisible
176         for the grab widget, to make the color picker work with window
177         groups.  
178
179 2006-09-12 Hong Jen Yee <pcman.tw@gmail.com>
180
181         signed off by: Dom Lachowicz
182         
183         * modules/engines/ms-windows/msw_style.c: Bug 340201. This contains
184         a large number of improvements to the Microsoft Windows theme engine
185         which are fully described in the bug report.
186         
187 Mon Sep 11 14:22:39 2006  Tim Janik  <timj@imendio.com>
188
189         * tests/testgtk.c: fixed compiler warnings.
190
191 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
192
193         * gtk/gtkfilechooserbutton.c (model_add_special): Request
194         the display name too, otherwise "Desktop" does not appear
195         in the file chooser button. 
196
197 2006-09-10  Tor Lillqvist  <tml@novell.com>
198
199         * gdk/win32/gdkprivate-win32.h
200         * gdk/win32/gdkmain-win32.c
201         * gdk/win32/gdkwindow-win32.c: Define WINVER and _WIN32_WINNT as
202         0x0500 in gdkprivate-win32.h instead of doing it in two source
203         files. (#355212, Mike Edenfield)
204
205         * gdk/win32/gdkwindow-win32.c: We can also remove the ersatz
206         GetAncestor() for the _MSC_VER && WINVER < 0x0500 case, I hope.
207
208 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
209
210         * Commit a patch by Behdad to fix typos, omissions and other
211         errors in the symbol aliasing, and add checks for local PLT
212         entries.  (#354687, Behdad Esfahbod)
213
214         * gtk/gtktreeview.c (gtk_tree_view_search_scroll_event): Renew
215         the flush timeout.  (#354043, Nelson Benitez)
216         
217         * gtk/gtkfilechoosersettings.c (set_unexpected_element_end_error): 
218         Improve wording. String change!  (#355126, David Lodge)
219
220         * gtk/updateiconcache.c: Improve wording. String change!  (#355128,
221         David Lodge)
222
223         * gtk/paper_names_offsets.c: Fix a typo. String change!  (#355134,
224         David Lodge)
225
226 2006-09-09  Matthias Clasen <mclasen@redhat.com>
227
228         * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks.
229         (#353916, Chris Wilson)
230
231         * gtk/gtksettings.c (_gtk_settings_reset_rc_values):
232         Don't leak the to_reset list.  (#353914, Chris Wilson)
233
234         * gtk/gtkwidget.c: Add docs for the parent-set signal.
235         (#353772, Mariano Suárez-Alvarez)
236
237 2006-09-08  Matthias Clasen <mclasen@redhat.com>
238
239         * gtk/gtktextbuffer.c (remove_all_selection_clipboards):
240         Don't clear clipboards here, since we are called from finalize
241         and can't emit signals.
242
243         * configure.in: Set version to 2.11.0
244
245 2006-09-06  Richard Hult  <richard@imendio.com>
246
247         * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Special-case 
248         shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.
249
250 2006-09-04  Kristian Rietveld  <kris@imendio.com>
251
252         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
253         if setting the given folder failed, try setting the parent folder
254         until we succeed; display an error box at the end.
255
256 2006-09-04  Kristian Rietveld  <kris@imendio.com>
257
258         * gtk/gtkpathbar.c (gtk_path_bar_dispose): don't cancel the
259         operations spawned by buttons here,
260         (set_button_image_get_info_cb): bail out if button is NULL, but
261         do free button_data,
262         (button_data_free): only free the data if non NULL (since this
263         function can be called multiple times for the same data), cancel
264         handle if pending but don't free button_data in this case (will
265         happen in the callback).
266
267 2006-09-04  Michael Natterer  <mitch@imendio.com>
268
269         * gtk/gtkrc.c (rc_parse_token_or_compound)
270         (gtk_rc_parse_assignment): serialize floating point values using
271         locale-independent functions. (#346751, Frederic Crozat)
272
273 2006-09-04  Tor Lillqvist  <tml@novell.com>
274
275         * gdk/win32/gdkevents-win32.c
276         * gdk/win32/gdkwindow-win32.c: Use wide-char API for message and
277         window handling (PeekMessage, PostMessage, SendMessage,
278         DispatchMessage, DefWindowProc, RegisterClassEx,
279         CreateWindowEx). (#321597)
280
281 2006-09-03  Kristian Rietveld  <kris@imendio.com>
282
283         * gtk/gtkfilechooserdefault.c (save_entry_get_info_cb),
284         (file_exists_get_info_cb), (gtk_file_chooser_default_should_respond):
285         change file_exists_and_is_not_folder checks to get the file info
286         for the path directly instead of querying the current file folder
287         of the save entry.
288
289         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): add
290         new field.
291
292         * tests/autotestfilechooser.c (wait_for_idle_idle), (wait_for_idle),
293         (test_reload_sequence), (test_button_folder_states_for_action): wait
294         for idle after setting a folder to ensure the async operations to load
295         the folder are finished,
296         (test_confirm_overwrite), (test_confirm_overwrite_for_path):
297         factor out test_confirm_overwrite code so we can add tests for more
298         paths more easily.
299
300 2006-09-03  Richard Hult  <richard@imendio.com>
301
302         * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
303         exposure isn't in the event mask, plug a leak, and check that the
304         window isn't destroyed.
305         (isOpaque): Check that the window isn't destroyed, fixes bug 
306         #353028.
307
308 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
309
310         * gtk/gtkwidget.c (gtk_widget_class_init): Fix a typo.  
311         (#354035, Mariano Suárez-Alvarez)
312
313         * gtk/gtkmain.c (post_parse_hook): 
314         * gdk/gdk.c (gdk_init): Handle display_name being NULL.
315         (#354004, Chris Wilson)
316
317 2006-09-03  Tor Lillqvist  <tml@novell.com>
318
319         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): No
320         GDK_WINDOW_DISPLAY in the Win32 backend.
321
322         * gtk/gtkfilesystemwin32.c: Copy what Kris did to
323         gtkfilesystemunix.c
324
325 2006-09-02  Kristian Rietveld  <kris@imendio.com>
326
327         First part of file chooser fixes.
328
329         * gtk/gtkfilechooserbutton.c (model_add_special): also set the
330         handle in the model for the desktopdir case.
331
332         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder): free
333         volume in case we retrieved it but don't pass it on to insert_path,
334         (shortcuts_model_create): change the column type for the handles
335         to pointer instead of GObject so our handle ref counting is not
336         disturbed,
337         (show_and_select_paths_finished_loading): don't forget to unref
338         the dialog.
339
340         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_class_init),
341         (gtk_file_system_unix_init), (gtk_file_system_unix_dispose):
342         remove pending execute_callbacks_idle during dispose, also
343         execute all callbacks waiting to be run in the next idle,
344         (queue_*callback), (execute_callbacks_idle): refactor to maintain
345         a list of callbacks to call per file system instead of globally,
346         guard the file system during callback invocation,
347         (gtk_file_system_unix_get_folder): only add load folder idle if
348         none has been added yet.
349
350 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
351
352         * gtk/gtkentry.c: Don't unnecessarily reset the im context
353         when deleting the selection.  (#353803, Alex Larsson)
354
355 2006-09-01  Abel Cheung  <abel@oaka.org>
356
357         * configure.in: Added 'ang' 'dz' to ALL_LINGUAS.
358
359 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
360
361         Stop cursor blinking after a configurable timeout.
362         (#353670, #352442, Arjan van de Ven, Manu Cornet)
363         
364         * gtk/gtksettings.c (gtk_settings_class_init): Add a 
365         gtk-cursor-blink-timeout setting, which specifies the number
366         of seconds that the cursor should blink after a user interaction.
367         The default value is G_MAXINT to preserve the current behaviour.
368
369         * gtk/gtkentry.c (blink_cb): Stop blinking after blink-timeout
370         seconds.
371
372         * gtk/gtkentry.c (gtk_entry_completion_key_press) 
373         (gtk_entry_button_press, gtk_entry_focus_in): Reset the
374         blink timer.
375
376         * gtk/gtktextview.c (blink_cb): Stop blinking after blink-timeout
377         seconds. 
378
379         * gtk/gtktextview.c (gtk_text_view_key_press_event) 
380         (gtk_text_view_button_press_event, gtk_text_view_focus_in_event): 
381         Reset the blink timer.
382         
383 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
384
385         * gtk/gtkprintoperation-unix.c (get_print_dialog): Don't specify
386         explicit format capabilities.  (#346505, Christian Persch)
387
388         * modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error. 
389
390 2006-08-31  Michael Natterer  <mitch@imendio.com>
391
392         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
393
394 2006-08-30  Richard Hult  <richard@imendio.com>
395
396         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
397
398 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
399
400         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Only use XKB
401         for beeping if we are using XKB.  
402
403 2006-08-29  Matthias Clasen  <mclasen@redhat.com>
404
405         * gdk/gdkwindow.h: 
406         * gdk/gdk.symbols: 
407         * gdk/directfb/gdkwindow-directfb.c (gdk_window_beep): 
408         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): 
409         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): 
410         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
411         to beep on a window. For X11, implement this with
412         XkbBell.  (#353455, Mariano Suárez-Alvarez)
413         
414 2006-08-29  Tor Lillqvist  <tml@novell.com>
415
416         Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
417         since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
418         it isn't being maintained anyway. If somebody is interested, it
419         can always be found in older GTK+ versions, and in CVS.
420
421         * configure.in
422         * acconfig.h
423         * gdk/Makefile.am
424         * gdk/win32/Makefile.am
425         * gdk/win32/libie55uid.la
426         * gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure
427         switch and associated stuff. Active IMM and the <dimm.h> header
428         was used for IM support on NT4 and Win9x. Win2k and later have IM
429         support built-in.
430
431         * gdk/win32/gdkcursor-win32.c
432         * gdk/win32/gdkdnd-win32.c
433         * gdk/win32/gdkdrawable-win32.c
434         * gdk/win32/gdkevents-win32.c
435         * gdk/win32/gdkgc-win32.c
436         * gdk/win32/gdkglobals-win32.c
437         * gdk/win32/gdkkeys-win32.c
438         * gdk/win32/gdkmain-win32.c
439         * gdk/win32/gdkproperty-win32.c
440         * gdk/win32/gdkselection-win32.c
441         * gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED()
442         and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
443         branches, and any variables or static functions used only by the
444         Win9x branches.
445
446         * gdk/win32/gdkprivate-win32.h: Remove backup definitions for
447         constants that aren't missing from current mingw and MSVC6
448         headers.
449
450         * gdk/win32/gdkmain-win32.c
451         * gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
452         function. On NT-based Windows GetLastError() returns error codes
453         also for failed GDI calls, so we can use _gdk_win32_api_failed()
454         always.
455
456 2006-08-29  Emmanuele Bassi  <ebassi@gnome.org>
457
458         * gtk/gtkrecentchoosermenu.c
459         (gtk_recent_chooser_menu_set_current_uri): Break when an item
460         is found and activated. (#353449, based on a patch by Jan Arne
461         Petersen)
462
463 Fri Jul 14 16:13:37 2006  Tim Janik  <timj@gtk.org>
464
465         * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style 
466         properties which make all hardcoded padding and spacing values
467         configurable. properly swap ::text-xalign treatment for RTL widgets.
468
469         * gtk/gtkprogress.c: fixed style property blurbs. made alignment 
470         proeprty more consistent with GtkMisc alignment blurbs. mention
471         RTL treatment for text-xalign.
472
473 Tue Aug 29 11:57:40 2006  Tim Janik  <timj@imendio.com>
474
475         * tests/testgtk.c: allow (most) windows to be resizable.
476         added ellipsization settings to progress bars. 
477
478 2006-08-28  Matthias Clasen   <mclasen@redhat.com>
479
480         * modules/printbackend/cups/gtkprintbackendcups.c: Use a
481         resonable timeout of 3 seconds when polling for printer
482         list updates, instead of 300000 seconds...
483
484 2006-08-28  Michael Natterer  <mitch@imendio.com>
485
486         * gtk/gtktextbufferserialize.c (serialize_text): don't write out
487         </apply_tag> for tags that have already been closed by the logic
488         which turns overlapping spans into XML-able trees. Fixes broken
489         XML when there are overlapping tags in the buffer. Also free two
490         leaked GLists and did some cleanup.
491
492         * tests/Makefile.am
493         * tests/testrichtext.c: new test which creates randomly tagged
494         GtkTextBuffers and serializes/deserializes them.
495
496 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
497
498         * gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data): 
499         Don't leak pixbufs.  (#352264, Ross Burton)
500
501         * gtk/gtklinkbutton.c (set_link_underline): Don't leak
502         PangoAttributes.  (#352391, Paolo Borelli)
503
504 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
505
506         * demos/gtk-demo/Makefile.am:
507         * demos/gtk-demo/textscroll.c: Add an example of automatic
508         scrolling, thanks to Yevgen Muntyan.  (#351206)
509         
510         * gtk/gtkmodules.c (find_module): Use local binding when
511         loading modules.  (#351868)
512
513 2006-08-24  Michael Natterer  <mitch@imendio.com>
514
515         * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return
516         the hostname instead of NULL.
517
518 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
519
520         * gtk/gtkprinteroptionwidget.[hc]: Fix confusion about
521         names and values in comboboxes, and clean up some
522         coding style issues.
523
524 2006-08-23  Tor Lillqvist  <tml@novell.com>
525
526         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
527         Revert unintended translatable string addition. Use same string
528         in GError as in gtkfilesystemunix.c.
529
530         * gtk/gtkfilesystemwin32.c (_gtk_file_system_win32_path_compare):
531         Fix logic at the end of strings. 
532
533         * gtk/gtkfilesystemwin32.c: Maintain a hash table of live
534         handles and check that we have no outstanding handles at
535         finalization time. (Copying what Matthias did for
536         gtkfilesystemunix.c)
537
538 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
539
540         * gtk/gtkfilesystemunix.c: Maintain a hash table
541         of live handles and check that we have no outstanding
542         handles at finalization time. (Copying what
543         Federico did for gtkfilesystemgnomevfs.c)
544
545 2007-08-22  Matthias Clasen  <mclasen@redhat.com> 
546
547         * Branch for 2.10
548