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