1 2009-01-30 Matthias Clasen <mclasen@redhat.com>
3 * gtk/gtktextview.c (preedit_changed_handler): Be more careful
4 with the beeps, since preedit-changed is occasionally emitted
5 without actual input. Pointed out by Tor Lillqvist.
7 2009-01-30 Matthias Clasen <mclasen@redhat.com>
9 Bug 569918 – 64bit portability issue in gtkrecentchooser.c
11 * gtk/gtkrecentchooser.c (gtk_recent_chooser_set_use_action_appearance):
12 Avoid a compiler warning. Patch by Magnus Boman.
14 2009-01-30 Matthias Clasen <mclasen@redhat.com>
16 Bug 359288 – Toolbar items are not shown after hiding
18 * gtk/gtktoolbar.c (slide_idle_handler): Make sure we queue
19 at least one resize. This fixes a problem with toolitems remaining
20 invisible when they shouldn't that was reported by Christian Weiske.
22 2009-01-30 Matthias Clasen <mclasen@redhat.com>
24 * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
27 2009-01-29 Tor Lillqvist <tml@novell.com>
29 Bug 559408 - Transparency lost when images are copied between GTK+
30 and the clipboard on Windows
32 The code in gdkselection-win32.c is simplified quite a lot. When
33 an image is stored on the clipboard from GTK+, only the "PNG" and
34 CF_DIB formats are advertised. PNG is our preferred format because
35 it can losslessly represent any image that gdk-pixbuf can handle,
36 even with alpha, unambiguously. CF_DIB is also advertised because
37 of its ubiquitous support in Windows software.
39 Delayed rendering is used as before, so for other data than text
40 nothing is actually stored on the clipboard until some app asks
43 It's pointless to advertise images formats like "image/png" or
44 "image/x-MS-bmp" that no other Windows application is going to
45 look for anyway. Likewise it's pointless to store text under
46 formats like "text/plain" or "UTF8_STRING". Just store
47 CF_UNICODETEXT. CF_TEXT will be available as a synthesized format
50 Office 2007 offers and asks for images in PNG format using the
51 registered clipboard format name "PNG", so we do likewise. If the
52 "PNG" format is available that is preferred when copying to GTK+
55 Unfortunately Word 2007 still uses CF_DIB without handling
56 alpha. But PowerPoint 2007 uses PNG if available and handles alpha
57 correctly. Both Word and Powerpoint offer PNG with alpha nicely.
59 Firefox and IE7 offer images that contain alpha as 32-bit version
60 3 BI_RGB DIBs with the undocumented "extra" bytes actually being
61 alpha. Also, alpha is premultiplied into the RGB bytes, presumably
62 because that is how AlphaBlend() wants such DIBs. That is also
63 taken care of. At least for Firefox it easy to be sure that a
64 CF_DIB on the clipboard is from Firefox.
66 Also some general stylistic cleanup, comment improvements, and
67 improvements of debugging printout especially in the clipboard
68 handling. Those are not detailled below.
70 * gdk/win32/gdkprivate-win32.h
71 * gdk/win32/gdkglobals-win32.c
72 * gdk/win32/gdkgmain-win32.c: Move some globals that were used
73 only in gdkselection-win32.c to be local to that file.
75 * gdk/win32/gdkproperty-win32.c (gdk_property_change): Don't
76 bother checking if text to be placed on the clipboard consists of
79 * gdk/win32/gdkselection-win32.c: Add static variables for a list
80 of GdkPixbuf-supported formats, well-known registered clipboard
81 formats for images, and for GdkAtoms for well-known image and text
84 (_gdk_win32_selection_init): Initialize above static variables.
86 (selection_property_store) (gdk_selection_property_get)
87 (_gdk_selection_property_delete): Don't use a FIFO of GdkSelProps
88 for a window after all, it breaks testtext. See bug #163844.
90 (gdk_selection_convert): When converting to the TARGETS format,
91 i.e. when the caller wants to know what clipboard formats are
92 available, if PNG is available we report just that and skip
93 CF_DIB, JPEG and GIF even if advertised.
95 If CF_UNICODETEXT is available, report only UTF8_STRING.
97 When converting to the UTF8_STRING format, i.e. when the caller
98 wants text from the clipboard, try just CF_UNICODETEXT. There is
99 no point in trying CF_TEXT as Windows will synthesize
100 CF_UNICODETEXT from CF_TEXT anyway, if some app has stored just
103 When converting to the image/bmp format, i.e. when the caller
104 wants an CF_DIB image from the clipboard, we check if the DIB is a
105 version 3 32-bit BI_RGB one that is likely to actually contain
106 alpha in the "extra" bytes. Such a DIB is likely to have
107 premultiplied alpha even, at least in the case of Firefox 3 and
108 IE7. We then edit the DIB in-place into a version 5 one in
109 BI_BITFIELDS format and undo the alpha premultiplication.
111 In any case, prepend a BMP file header before letting go of the
112 data which will be fed to the gdk-pixbuf bmp loader by upper
115 (gdk_win32_selection_add_targets): If some kind of pixmap image
116 format is being added, actually advertise just PNG and
117 CF_DIB. Note that alpha won't be stored on the clipboard through
118 CF_DIB. This is because gdk-pixbuf's bmp loader doesn't save
119 alpha. Furthermore, few if any non-GTK+ Windows apps seem to
120 understand a version 5 DIB with proper alpha anyway.
122 (_gdk_win32_selection_convert_to_dib): Simplified muchly.
124 2009-01-29 Tor Lillqvist <tml@novell.com>
126 Bug 145058 - Inputting "^^" requires four keystrokes on Win32,
127 differs from platform default behaviour
129 * gtk/gtkimcontextsimple.c
130 (check_win32_special_case_after_compact_match): New
131 function. Called from check_compact_table() after a table-based
132 match has committed a character. In case there was two identical
133 dead accents in the input, another copy of the spacing accent that
134 was already committed is committed. This fixes #145058.
136 (check_win32_special_cases): New function. Called first from
137 gtk_im_context_simple_filter_keypress(). This fixes another
138 problem: a dead accent followed by a space should commit the
139 corresponding spacing accent. The compose tables from X commit
140 another character in two cases and we want to override that on
143 Add GTK_NOTE (MISC) debugging output to this code.
145 2009-01-29 Claudio Saavedra <csaavedra@igalia.com>
147 Bug 569435 – make maintainer-clean removes non-generated sources
149 * gdk/Makefile.am: Do not remove gdkprivate.h and gdkwindowimpl.h
150 during make maintainer-clean, as these files are not generated.
152 2009-01-28 Philip Withnall <philip@tecnocode.co.uk>
154 * gtk/gtktreeview.c: Small documentation fix.
156 2009-01-27 Matthias Clasen <mclasen@redhat.com>
158 * gtk/gtkentry.c: Use the get_text_area_size vfunc to make
159 alignment and icons in spin buttons work correctly.
161 2009-01-27 Matthias Clasen <mclasen@redhat.com>
163 Bug 569336 – change in gtkbutton klass is causing crash when
166 * gtk/gtktogglebutton.c: Don't chain the clicked handler
169 2009-01-27 Matthias Clasen <mclasen@redhat.com>
171 * configure.in: Bump version
173 2009-01-27 Matthias Clasen <mclasen@redhat.com>
175 * === Released 2.15.2 ===
179 2009-01-26 Matthias Clasen <mclasen@redhat.com>
181 Bug 322932 – Always show icons on panel menus
184 * gtk/gtkimagemenuitem.[hc]: Add a property to override the
185 show-menu-images setting for individual menuitems. Patch by
188 2009-01-26 Matthias Clasen <mclasen@redhat.com>
190 * gtk/gtkbutton.c: Activate the action in a regular clicked
191 handler instead of the default handler, to make it work with
192 derived classes which don't chain up their clicked handler.
194 2009-01-26 Matthias Clasen <mclasen@redhat.com>
196 Bug 569104 – Toggle menu entries showed as check menu entries
199 * gtk/gtkactivatable.c (gtk_activatable_do_set_related_action):
200 Block the previous action when calling reset() to prevent
201 accidental activation of the previous action.
203 * gtk/gtkaction.c (gtk_action_activate): Don't compare booleans.
205 * gtk/gtktoggleaction.c (gtk_toggle_action_set_active): Remove
208 2009-01-26 Bastien Nocera <hadess@hadess.net>
210 Bug 569240 - Crasher when using markers
212 * gtk/gtkrange.c (gtk_range_destroy): Avoid crashes when destroying
213 a GtkRange with markers
215 2009-01-26 Richard Hult <richard@imendio.com>
217 Bug 566628 – gdk_display_close always asserts on win32 and quartz
219 * gdk/quartz/gdkdisplay-quartz.c
220 (_gdk_windowing_set_default_display): Copy fix for bug #566628
221 from the win32 backend: Allow also a NULL parameter in the
224 2009-01-25 Matthias Clasen <mclasen@redhat.com>
226 * gtk/gtktoolitem.[hc]: Export the function to create a proxy
227 menuitem from the action for use in subclasses.
229 * gtk/gtktoolbutton.c:
230 * gtk/gtktoggletoolbutton.c: Use it here.
232 * gtk/gtkrecentchoosermenu.c: Avoid temporary empty state that
233 can lead to a recent action proxy menu being erroneously hidden.
235 2009-01-25 Matthias Clasen <mclasen@redhat.com>
237 * gtk/gtkradioaction.c: Set draw-as-radio to TRUE.
239 2009-01-24 Matthias Clasen <mclasen@redhat.com>
241 Revert changes for bug 567124. Instead of trying to avoid
242 setting up the im context before the widget is realized, just
243 reset it when the client window is set.
245 * gtk/gtkimmulticontext.c: Reset the slave when a client window
249 * gtk/gtktextview.c: Revert changes for bug 567124.
251 2009-01-25 Claudio Saavedra <csaavedra@igalia.com>
253 * gtk/gtktreeview.c: Use gtk-doc syntax to refer to properties in
256 2009-01-25 Claudio Saavedra <csaavedra@igalia.com>
258 * gtk/gtkiconview.c: More docstrings improvements
259 regarding reorderable property.
261 2009-01-24 Claudio Saavedra <csaavedra@igalia.com>
263 Bug 559420 – gtk_icon_view_enable_model_drag_[source|dest] docs
264 wrt. reorderable property
266 * gtk/gtkiconview.c: Improve docstrings regarding reorderable
267 property. Based on a patch by Björn Lindqvist.
269 2009-01-24 Matthias Clasen <mclasen@redhat.com>
271 * gtk/gtktoolbutton.c (gtk_tool_button_activatable_reset):
272 Fall back from stock ids to icon names like the old code
273 did. Patch by Tristan van Berkom.
275 2009-01-24 Matthias Clasen <mclasen@redhat.com>
277 * tests/testactions.c: Add a testcase for toolitems using
280 2009-01-24 Matthias Clasen <mclasen@redhat.com>
282 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
283 Don't update blank cursors.
285 2009-01-24 Claudio Saavedra <csaavedra@igalia.com>
287 * gtk/gtktreeview.c: (gtk_tree_view_class_init): Slightly
288 improve ::search-column property description.
290 2009-01-23 Matthias Clasen <mclasen@redhat.com>
292 * configure.in: Bump version
294 2009-01-23 Matthias Clasen <mclasen@redhat.com>
296 * === Released 2.15.1 ===
298 2009-01-23 Matthias Clasen <mclasen@redhat.com>
300 * gtk/gtkactivatable.c: Make the section docs produce some valid
303 2009-01-23 Matthias Clasen <mclasen@redhat.com>
305 * gtk/gtkactivatable.c: Fix the section docs so gtk-doc finds them.
307 2009-01-23 Matthias Clasen <mclasen@redhat.com>
309 * gtk/gtkrecentchooser.c:
310 * gtk/gtkuimanager.c: Fix issues found by pltcheck
312 2009-01-23 Matthias Clasen <mclasen@redhat.com>
316 2009-01-23 Matthias Clasen <mclasen@redhat.com>
318 Bug 560228 – Add "action-controller" property to GtkWidgetClass
320 Rework the way actions and proxies interact, to make the
321 interaction less ad hoc, more extensible, and better suited
322 for support in GUI builders like glade.
324 To be used as a proxy, a widget must now implement the
325 GtkActivatable interface, and GtkActivatable implementations
326 are responsible for syncing their appearance with the action
327 and for activating the action.
329 All the widgets that are commonly used as proxies implement
332 Patch by Tristan van Berkom.
334 * gtk/gtkactivatable.[hc]: The GtkActivatable interface.
337 * gtk/gtktogglebutton.c:
339 * gtk/gtktoolbutton.c:
340 * gtk/gtktoggletoolbutton.c:
342 * gtk/gtkcheckmenuitem.c:
343 * gtk/gtkimagemenuitem.c:
344 * gtk/gtkradiomenuitem.c:
345 * gtk/gtkrecentchooserprivate.h:
346 * gtk/gtkrecentchooser.c:
347 * gtk/gtkrecentchooserdefault.c:
348 * gtk/gtkrecentchoosermenu.c: Implement GtkActivatable.
349 * gtk/gtkaction.[hc]: Move appearance synchronization to
350 GtkActivatable implementations.
352 * gtk/gtkradioaction.c:
353 * gtk/gtkrecentaction.c:
354 * gtk/gtktoggleaction.c:
355 * gtk/gtkactiongroup.c: Adapt.
357 * gtk/gtk.h: Include gtkactivatable.h
358 * gtk/gtk.symbols: Add new functions
360 2009-01-23 Matthias Clasen <mclasen@redhat.com>
362 Bug 567124 – proposal to delay doing something related to
363 immodule until widgets realized
365 Delay setting up immodules until the widget is realized.
368 * gtk/gtktextview.c: Don't set up im stuff if the widget
371 * gtk/gtkimmodule.c: Assert that we have a window.
373 2009-01-23 Matthias Clasen <mclasen@redhat.com>
375 Skip Desktop if it equals the home folder
376 Patch by Christian Dywan
378 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Skip
379 Desktop if it equals the home folder.
381 2009-01-23 Matthias Clasen <mclasen@redhat.com>
383 Bug 536965 – GtkPlug: crash on theme change
385 Keep GtkPlug in sync with the global list of toplevels.
386 Patch by Federico Mena Quintero
389 * gtk/gtkwindow.c (_gtk_window_set_is_toplevel): New internal
390 function used when a GtkPlug parents/unparents itself by an
391 in-process GtkSocket. This keeps the plug's GTK_TOPLEVEL flag in
392 sync with the global toplevel_list.
394 * gtk/gtkplug.c (gtk_plug_set_is_child): Call
395 _gtk_window_set_is_toplevel() to keep the toplevel list updated,
396 instead of just setting/unsetting the GTK_TOPLEVEL flag.
398 2009-01-23 Matthias Clasen <mclasen@redhat.com>
400 Bug 568744 – Spellfixes in GtkTreeView's documentation
402 * gtk/gtktreeview.c: Fix typos in the docs.
404 2009-01-23 Matthias Clasen <mclasen@redhat.com>
406 Bug 567761 – Spellfixes in GTK+ documentation
408 * gdk/x11/gdkselection-x11.c:
409 * gtk/gtktestutils.c: Fix typos in the docs.
411 2009-01-23 Matthias Clasen <mclasen@redhat.com>
413 Bug 567021 – gtkimage accessors docs
415 * gtk/gtkimage.c: Improve docs by mentioning allowed NULL values.
416 Patch by Christian Persch
418 2009-01-23 Matthias Clasen <mclasen@redhat.com>
420 Bug 566535 – gtk_widget_get_snapshot does not work if double buffered
423 * gtk/gtkwidget.c (gtk_widget_get_snapshot): Use a different approach
424 to snapshotting that is in line with what is done in the client-side
425 windows branch, and that works for widgets regardless if they are
426 double-buffered or not. Patch by Alex Larsson.
428 * gdk/gdkwindow.c (_gdk_window_calculate_full_clip_region): Clip
431 2009-01-22 Federico Mena Quintero <federico@novell.com>
433 * gtk/gtkfilechooserentry.c (autocomplete): Relax the assertion;
434 just do nothing if the folder is not loaded or if the cursor position
435 is not at the end of the text. A very slow-to-load folder can get
436 us into the latter state if the user starts typing first.
438 2008-01-22 Matthias Clasen <mnclasen@redhat.com>
440 * gtk/gtkaction.c: Revert the last change, since it breaks
443 2009-01-22 Federico Mena Quintero <federico@novell.com>
445 Fix the computation of "complete but unique" in
446 GtkFileChooserEntry. Fix the case where "/" was not appended to a
447 unique directory name during explicit Tab completion.
449 * gtk/gtkfilechooserentry.c (maybe_append_separator_to_file):
450 Return whether anything was appended as well as the new string
452 (find_common_prefix): Oops, only turn on
453 is_complete_not_unique_ret if we had a unique match!
454 (append_common_prefix): If we appended a directory separator, we
455 *did* expand the common prefix, so we are not in the "nothing
458 2009-01-22 Federico Mena Quintero <federico@novell.com>
460 Return an error code when refreshing the entry from the user's
461 input. We use this in the completion code to know when completion
462 can't happen due to (for example) having a non-local URI in a file
463 chooser that is local_only=TRUE.
465 Also, we start maintaining an invariant that
466 chooser_entry->current_folder_file != NULL implies that:
468 * what the user entered is valid
470 * we are loading that folder (chooser_entry->load_folder_cancellable != NULL)
472 * or we are done loading that folder, or we have a handle
473 to it at least (chooser_entry->current_folder != NULL)
475 The invariant also says that all of the above are NULL (and
476 chooser_entry->current_folder_file == NULL) implies that the user
477 typed something invalid. This makes
478 _gtk_file_chooser_entry_get_current_folder() not able to return
481 * gtk/gtkfilechooserentry.c (RefreshStatus): New enum.
482 (refresh_current_folder_and_file_part): Return a RefreshStatus.
483 We filter out incomplete hostnames here (typing
484 "sftp://incompl[tab]" will error out), as well as completely
486 (start_explicit_completion): Process the result from refresh...().
487 Here we present the actual feedback about only being able to
488 display local folders for local_only=TRUE.
489 (commit_completion_and_refresh): Don't do anything with the result
490 of refresh...(), since this function doesn't get called during
491 completion-related interaction.
492 (start_autocompletion): Process the result from refresh...(). We
493 only do completion in the REFRESH_OK case. For the error cases,
494 we don't do anything, as this is autocompletion and must not
495 result in non-asked-for errors popping up.
496 (discard_loading_and_current_folder_file): Factor out function to
497 cancel the cancellable and discard the current_folder_file,
498 i.e. to reset the invariant to the "nothing valid is loaded" case.
499 (gtk_file_chooser_entry_dispose): Use
500 discard_loading_and_current_folder_file().
501 (reload_current_folder): Likewise.
502 (refresh_current_folder_and_file_part): Likewise, and ensure that
503 the error cases result in the invariant being held.
504 (start_loading_current_folder): Check if the folder to be loaded
505 is non-native for the local_only=TRUE case; if so, return an error
506 as we are configured to load only local folders.
507 (reload_current_folder): Pass on errors from
508 start_loading_current_folder(). Tighten the preconditions, as we
509 are sure that we can only receive non-NULL folder-files to load.
510 (refresh_current_folder_and_file_part): Pass on errors from
511 reload_current_folder(). At the very end, assert the invariant
514 2009-01-22 Matthew Barnes <mbarnes@redhat.com>
516 Bug 568334 – Constructor properties for GtkAction
518 * gtk/gtkaction.c (gtk_action_class_init): Make all properties
519 G_PARAM_CONSTRUCT except "action-group".
521 2009-01-22 Michael Natterer <mitch@imendio.com>
523 * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): g_return_if_fail()
524 on icon_name != NULL so we get a warning instead of a crash here.
526 2009-01-21 Matthias Clasen <mclasen@redhat.com>
530 2009-01-21 Matthias Clasen <mclasen@redhat.com>
532 * gtk/gtkentry.c: Don't show windows that may not exist
534 2009-01-21 Matthias Clasen <mclasen@redhat.com>
536 * gtk/gtklabel.c: Implement select-by-words for selectable labels.
538 2009-01-21 Tor Lillqvist <tml@novell.com>
540 * gdk/win32/gdkcursor-win32.c: Rename static local functions and
541 variables to not have any unnecessary _ or _gdk_win32 prefix.
543 * gdk/win32/gdkcursor-win32.c (hcursor_from_type): Implement
544 creating a GDK_BLANK_CURSOR.
546 2009-01-21 Matthias Clasen <mclasen@redhat.com>
548 * gtk/gtkentry.c: Change the Caps Lock warning to the more
549 neutral "Caps Lock is on". Requested by Wouter Bolsterlee
551 2009-01-21 Matthias Clasen <mclasen@redhat.com>
553 Bug 568552 – gtk_combo + gtk entry in invisible mode takes 100% cpu
555 * gtk/gtkentry.c: Fix an expose loop caused by raising windows out
556 of an expose handler. Also, don't show the 'Caps Lock' warning for
557 activated input methods, since that makes it permanently shown
558 for some locales. It should not be that necessary, now that we
559 do show preedit text even in password entries. Pointed out by
561 (start_loading_current_folder): Check if the folder to be loaded
562 is non-native for the local_only=TRUE case; if so, return an error
563 as we are configured to load only local folders.
564 (reload_current_folder): Pass on errors from
565 start_loading_current_folder(). Tighten the preconditions, as we
566 are sure that we can only receive non-NULL folder-files to load.
567 (refresh_current_folder_and_file_part): Pass on errors from
568 reload_current_folder(). At the very end, assert the invariant
570 (start_explicit_completion): Add comments for translators, to
571 explain the purpose of the various feedback messages used during
574 2009-01-21 Federico Mena Quintero <federico@novell.com>
576 * gtk/gtkfilechooserdefault.c (save_widgets_create): Set
577 local_only on the location entry when we create it...
578 (set_local_only): ... and set it here only if the location entry
581 2009-01-21 Marek Kasik <mkasik@redhat.com>
583 Bug 561801 - "scheduled printing" doesn't function as expected
585 * gtk/gtkprintunixdialog: Add tooltip.
586 * modules/printbackends/cups/gtkprintbackendcups.c: Add conversion
587 from local time to utc time for scheduled printing.
589 2009-01-20 Federico Mena Quintero <federico@novell.com>
591 http://bugzilla.gnome.org/show_bug.cgi?id=545980 -
592 GtkFileChooserEntry should handle URIs
594 * gtk/gtkfilesystem.c (_gtk_file_system_parse): Detect URI schemes
595 and parse the full URI.
596 (has_uri_scheme): New function, stolen from the old
597 gtkfilesystemgnomevfs.c.
599 Patch by Carlos Garnacho <carlos@imendio.com>:
601 * gtk/gtkfilechooserentry.c (discard_current_folder): New
602 function, factored out for when we need to get rid of the
604 (gtk_file_chooser_entry_dispose): Use discard_current_folder().
605 (finished_loading_cb): Fix prototype.
606 (load_directory_get_folder_callback): Discard the completion
607 store, as well as clearing the completion feedback, if we find an
608 error while loading the folder. Also, use
609 discard_current_folder().
610 (reload_current_folder): Use discard_current_folder().
612 Patch by Carlos Garnacho <carlos@imendio.com> - add a local_only
613 property to GtkFileChooserEntry:
615 * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Add a
617 (_gtk_file_chooser_entry_init): Default to local_only being true.
618 (start_explicit_completion): Don't allow completion of non-native
619 files if local_only is turned on.
620 (start_loading_current_folder): Don't start loading non-native
621 folders if local_only is turned on.
622 (_gtk_file_chooser_entry_set_local_only): New function.
623 (_gtk_file_chooser_entry_get_local_only): New function.
625 * gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_set_local_only,
626 _gtk_file_chooser_entry_get_local_only): New prototypes.
628 * gtk/gtkfilechooserdefault.c (set_local_only): Set the local_only
629 property on the entry.
631 Fix completion so it doesn't pop up for every character in a URI
634 * gtk/gtkfilechooser.h (GtkFileChooserError): Add a
635 GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME.
637 * gtk/gtkfilesystem.c (_gtk_file_system_parse): Return an
638 "incomplete hostname" error if the user has not typed a full
639 hostname yet in an URI.
641 * gtk/gtkfilechooserentry.c (append_common_prefix): If we get an
642 incomplete hostname, just don't pop up an error, since that is a
643 transient state and the user doesn't need to be notified about it.
644 (refresh_current_folder_and_file_part): Don't revert to showing
645 the base folder if we have an incomplete hostname.
646 (reload_current_folder): Handle the passed folder being NULL, even
647 if we must force a reload. Also, reload the folder if we didn't
648 have a cancellable for it (i.e. we hadn't started to load it
651 2009-01-20 Matthias Clasen <mclasen@redhat.com>
654 * gtk/gtkaction.[hc]: Add setters and getters for GtkAction
655 properties, in preparation for bug 560228.
657 2009-01-21 Christian Dywan <christian@twotoasts.de>
659 Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal
662 * gtk/gtkcombobox.c (gtk_combo_box_set_active): Return only if index
663 is set. Patch by Carl-Anton Ingmarsson.
665 2009-01-20 Torsten Schoenfeld <kaffeetisch@gmx.de>
667 * gtk/gtkstyle.c: Add a "Since: 2.16" tag to gtk_style_get.
669 2009-01-20 Matthias Clasen <mclasen@redhat.com>
671 Bug 565656 – Add marks to scales
673 * gtk/gtkrange.[hc]: Add internal api to define 'stop values'
674 that have a little resistance when dragging the slider over it.
677 * gtk/gtkscale.[hc] (gtk_scale_add_mark): New function to add
678 a 'mark' to a scale, which will draws a tick, plus optionally
679 some text, and makes the value a stop value.
680 (gtk_scale_clear_values): Removes all marks.
682 * tests/testscale.c: Test for marks on scales
683 * tests/Makefile.am: Integrate it
685 2009-01-19 Matthias Clasen <mclasen@redhat.com>
688 * gtk/gtkfilechooserentry.c:
689 * gtk/gtktextview.c: Replace several implementation of
690 blank cursor setting by GDK_BLANK_CURSOR.
692 2009-01-19 Matthias Clasen <mclasen@redhat.com>
695 * gdk/gdkwindow.c: Update docs on how to create blank cursors.
697 2009-01-19 Matthias Clasen <mclasen@redhat.com>
699 Cache cursors to avoid libXcursor theme lookup overhead.
700 Patch by David Alan Gilbert.
702 * gdk/gdkcursor.h: Add a GDK_BLANK_CURSOR cursor type.
704 * gdk/x11/gdkcursor-x11.c: Cache font cursors and named cursors.
706 * gdk/x11/gdkprivate-x11.h:
707 * gdk/x11/gdkcdisplay-x11.c: Remove cached cursors when a
708 display if finalized.
710 2009-01-18 Matthias Clasen <mclasen@redhat.com>
712 Bug 568263 – gtk can't recognize the wrong X Selection TARGETS'
713 type "TARGETS" by java applications
715 * gtk/gtkselection.c (gtk_selection_data_get_targets): Accept
716 a type of TARGETS instead of ATOM, too. Based on a patch by
719 2009-01-18 Matthias Clasen <mclasen@redhat.com>
721 Bug 568233 – Wrong statement about GtkEntry's "activate" signal
725 * gtk/gtktextview.c: Correct some copy-and-paste mistakes in
726 keybinding signal docs. Pointed out by Pascal Terjan.
728 2009-01-18 Matthias Clasen <mclasen@redhat.com>
731 * gtk/gtkentry.[hc]: Add properties and getters for icon tooltips.
733 2009-01-18 Matthias Clasen <mclasen@redhat.com>
735 Bug 563280 – stock items & translation context
737 * gtk/gtkstock.c: Solve the msgctxt problem a bit more
738 elegantly, and add some hints about this to the docs of
739 gtk_stock_set_translate_func. Proposed by Christian Persch
741 2009-01-18 Matthias Clasen <mclasen@redhat.com>
743 Bug 568196 – Please change context of Forward stock label
745 * gtk/gtkstock.c: Reinstate separate translation contexts for
746 navigation and media labels (these were lost in the transition
747 to msgctxt. Pointed out by Gabor Kelemen.
749 2009-01-18 Matthias Clasen <mclasen@redhat.com>
751 Bug 567887 – gtk_entry_get_storage_type() should be
752 gtk_entry_get_icon_storage_type()
755 * gtk/gtkentry.[hc]: Use the last chance to get the api right,
756 and rename things for consistency, requested by Murray Cumming.
758 gtk_entry_get_stock -> gtk_entry_get_icon_stock
759 gtk_entry_get_pixbuf -> gtk_entry_get_icon_pixbuf
760 gtk_entry_get_gicon -> gtk_entry_get_icon_gicon
761 gtk_entry_get_storage_type -> gtk_entry_get_icon_storage_type
762 ::prelight -> ::icon-prelight
763 ::pixbuf-primary -> ::primary-icon-pixbuf
764 ::stock-primary -> ::primary-icon-stock
765 ::icon-name-primary -> ::primary-icon-name
766 ::gicon-primary-> ::primary-icon-gicon
767 ::storage-type-primary -> ::primary-icon-storage-type
768 ::activatable->primary -> ::primary-icon-activatable
769 ::sensitive-primary -> ::primary-icon-sensitive
770 (and similar for secondary properties)
772 2009-01-18 Matthias Clasen <mclasen@redhat.com>
774 Bug 567655 – gtk_status_icon_set_tooltip_text and
775 gtk_status_icon_set_tooltip_markup should use gchar*
777 * gtk/gtkstatusicon.h: Use "const gchar*" in new tooltip api.
778 Pointed out by Torsten Schoenfeld.
780 2009-01-18 Matthias Clasen <mclasen@redhat.com>
782 * demos/gtk-demo/search_entry.c: End the search if the window
785 * demos/gtk-demo/search_entry.c:
786 * demos/gtk-demo/entry_completion.c: Group the entry examples
789 2009-01-18 Christian Dywan <christian@twotoasts.de>
791 Remove a redundant include from gtktoolbar.c
793 * gtk/gtktoolbar.c: Remove second inclusion of gtktoolbar.h.
794 Patch by Enrico Tröger.
796 2009-01-16 Cody Russell <bratsche@gnome.org>
798 Bug 567944 – [Win32] Sorted treeview columns can be unreadable
800 * modules/engines/ms-windows/msw_style.c: Draw selected treeview
801 cells according to treeview focus, but ignore whether it is in
802 a sorted column or not. Otherwise the intersection of a selected
803 row and a sorted column looks very strange if the treeview does
806 2009-01-16 Daniel Elstner <danielk@openismus.com>
808 * modules/input/gtkimcontextmultipress.[ch]: Remove the namespace
809 prefix from functions defined locally only. Clean up the code and
810 change indentation to match the GTK+ coding style.
811 (_GtkImContextMultipress::key_sequences): Replace array of pointers
812 by GHashTable. Adapt the implementation accordingly.
813 (passthrough_enabled_for_window): Remove. The passthrough hack is
814 no longer necessary thanks to the recently introduced "im-module"
815 property of GtkEntry and GtkTextView.
816 (load_config): Rework to implement an improved configuration file
817 format. Just fetch all keys of the group instead of expecting the
818 keys to be named a certain way. This also allows interpreting the
819 config key itself as the GDK key name to bind the character sequence
820 to, thereby making it independent of the sequence itself.
822 * modules/input/im-multipress.conf: New example configuration using
823 the new syntax. The example sequences are now bound to the numeric
824 keypad and imitate the behavior of a standard mobile phone.
826 2009-01-15 Murray Cumming <murrayc@murrayc.com>
828 * gtk/gtkimcontext.c: documentation description: Mention the various
829 properties and the environment variable, with links to their
832 * gtk/gtktextview.c: Make the im-module property documentation more
835 2009-01-15 Diego Escalante Urrelo <diegoe@gnome.org>
837 Bug 562701 – GtkEntryCompletion popup sizes its rows wrong
838 when they span for more than one line.
840 Don't assume actions and results have equal height, this causes
841 negative size requisitions when results are more than one
844 * gtk/gtkentrycompletion.c: change the formula used to calculate
845 the size of the completion popup.
847 2009-01-14 Federico Mena Quintero <federico@novell.com>
849 Remember the file chooser's geometry across invocations.
851 * gtk/gtkfilechoosersettings.h (struct _GtkFileChooserSettings):
852 New fields geometry_x, geometry_y, geometry_width, geometry_height.
853 (_gtk_file_chooser_settings_get_geometry): New prototype.
854 (_gtk_file_chooser_settings_set_geometry): New prototype.
856 * gtk/gtkfilechoosersettings.c (GEOMETRY_X_KEY, GEOMETRY_Y_KEY,
857 GEOMETRY_WIDTH_KEY, GEOMETRY_HEIGTH_KEY): New key names.
858 (ensure_settings_read): Read the geometry keys.
859 (_gtk_file_chooser_settings_save): Save the geometry keys.
860 (_gtk_file_chooser_settings_init): Initialize the geometry keys to
861 "don't have this value".
862 (_gtk_file_chooser_settings_get_geometry): New public function.
863 (_gtk_file_chooser_settings_set_geometry): New public function.
865 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_map):
866 Don't change the default size in ::map() so we don't flicker...
867 (gtk_file_chooser_default_realize): ... so do it in ::realize()
868 instead, when the window is not yet visible. This avoids a
869 dialog-that-resizes when you first pop up the file chooser.
870 (emit_default_size_changed): Just emit the signal; don't check for
871 the widget's state so we can be emitted during the initial
872 ::realize() when we are not mapped yet.
873 (update_preview_widget_visibility): Only emit default_size_changed
874 if the widget is not mapped, to avoid resizing the dialog while it
877 * gtk/gtkfilechooserdialog.c
878 (file_chooser_widget_default_size_changed): Simply resize the
879 dialog to the default size without any fancy clamping. Also,
880 leave in place ifdef-ed out code to restore the file chooser's
881 position in addition to its size. The code to restore the
882 position doesn't quite work yet, but we'll leave it in as a
885 * gtk/gtkfilechooserdefault.c (save_dialog_geometry): New function.
886 (settings_save): Save the dialog's geometry.
887 (gtk_file_chooser_default_get_default_size): Load the geometry
888 from the settings. If it was already saved, return that instead
889 of computing an ad-hoc size.
891 2009-01-13 Matthias Clasen <mclasen@redhat.com>
893 Bug 450716 – New API to change global IM
895 Requested by Daniel Elstner.
898 * gtk/gtkimmulticontext.[hc] (gtk_im_multicontext_set_context_id):
899 New function to set the context id on a GtkIMMulticontext.
902 * gtk/gtktextview.c: Add a ::im-module property that can be
903 set to override the global setting for the im module to be used.
905 2009-01-13 Christian Dywan <christian@imendio.com>
907 Bug 566532 – GtkScaleButton implementation of GtkOrientable
910 * gtk/gtkscalebutton.c (gtk_scale_button_class_init),
911 (gtk_scale_button_set_property):
912 * gtk/gtkscalebutton.h: Deprecate gtk_scale_button_get_orientation
913 in favour of implementing GtkOrientable. Patch by Bruce Cowan.
915 2009-01-13 Tor Lillqvist <tml@iki.fi>
917 Bug 164002 - query scripts don't work uninstalled on windows
919 * gtk/gtkmain.c (_gtk_get_libdir): If the gtk DLL is in a ".libs"
920 folder, assume we are running uninstalled, and use the
921 configure-time GTK_LIBDIR.
923 2009-01-12 Matthias Clasen <mclasen@redhat.com>
925 * NEWS: Refer to tray icon spec, instead of a random email.
927 2009-01-12 Matthias Clasen <mclasen@redhat.com>
929 * gtk/gtkwindow.c (gtk_window_set_icon_name): Don't cause lots
930 of X traffic when the icon name doesn't actually change. Some
931 apps like to reset their window icon frequently, without actually
932 changing the icon name...
934 2009-01-12 Paolo Borelli <pborelli@katamail.com>
936 Bug 492794 – Pasting external text at end of view yields wrong
939 * gtk/gtktextbuffer.[ch]:
941 Add a "paste-done" signal and use it to propelry scroll the
942 view at the end of the pasted text in the case of an async
943 paste. Patch by Ignacio Casal Quintero based on a patch by
946 2009-01-12 Tor Lillqvist <tml@iki.fi>
948 * gdk/gdk.c (gdk_arg_debug_cb) (gdk_arg_no_debug_cb): A
949 GOptionArgFunc should return gboolean and take also a GError
950 pointer parameter, so make these two functions do that. Return
951 FALSE (and set the GError) if the parsing of the debug string
952 failed completely. Note that g_parse_debug_string() doesn't really
953 have any way to return parsing status, and accepts partially
954 incorrect strings, though.
956 2009-01-12 Claudio Saavedra <csaavedra@igalia.com>
958 Bug 567468 – no check for trailing != NULL in
959 gtk_text_layout_get_iter_at_position()
961 * gtk/gtktextlayout.c: (gtk_text_layout_get_iter_at_position):
962 Check for trailing to be non-NULL.
963 * gtk/gtktextview.c: (gtk_text_view_get_iter_at_position): document
964 that trailing may be NULL.
966 2009-01-11 Tor Lillqvist <tml@iki.fi>
968 Bug 523554 - Copy from GIMP to Word broken
970 * gdk/win32/gdkselection-win32.c
971 (_gdk_win32_selection_convert_to_dib): The DIB stored in the
972 Windows Clipboard was for some unknown reason truncated by one
975 2009-01-11 Matthias Clasen <mclasen@redhat.com>
977 Bug 567024 – gtktoolbutton doesn't create right proxy menu item
980 * gtk/gtktoolbutton.c: Properly create a menu proxy from a GIcon.
981 Patch by Christian Persch
983 * tests/testtoolbar.c: Add an example with a GIcon
985 2009-01-09 Christian Dywan <christian@imendio.com>
987 Fail in gdk_window_new if _gdk_window_new failed
989 * gdk/gdkwindow.c (gdk_window_new): Add g_return_val_if_fail
990 in case _gdk_window_new is NULL. Approved by Tim Janik
992 2009-01-08 Matthias Clasen <mclasen@redhat.com>
994 Bug 566733 – Add GIcon to GtkAction, GtkToolButton
996 * gtk/gtkaction.c: Add a ::gicon property to GtkAction and set the
997 icon from it if specified. The stock icon is preferred if a stock id
998 is given. Based on a patch by A. Walton
1000 2009-01-04 Matthias Clasen <mclasen@redhat.com>
1002 * gtk/stock-icons/{16,24}/gtk-caps-lock-warning.png: New icons
1003 * gtk/gtkstock.h: Add GTK_STOCK_CAPS_LOCK_WARNING.
1004 * gtk/gtkiconfactory.c (get_default_icons): Register the stock icon.
1005 * gtk/gtkentry.c (show_capslock_feedback): Use the new stock icon.
1007 2009-01-05 Tor Lillqvist <tml@novell.com>
1009 Bug 566628 - gdk_display_close always asserts on win32
1011 * gdk/win32/gdkdisplay-win32.c
1012 (_gdk_windowing_set_default_display): Allow also a NULL parameter
1013 in the g_assert(). Still don't actually do anything in this
1016 2009-01-04 Matthias Clasen <mclasen@redhat.com>
1018 Bug 566568 – gtk_tree_model_get_value docs typo
1020 * gtk/gtktreemodel.c (gtk_tree_model_get_value): Fix a typo
1021 in the docs, pointed out by Christian Persch.
1023 2009-01-04 Matthias Clasen <mclasen@redhat.com>
1025 Bug 566391 – gtk_about_dialog_set_url_hook should activate
1026 pre-existing website links
1028 * gtk/gtkaboutdialog.c: Make setting website, website-label and
1029 url hook work independent of their order. Reported by Steven
1032 2009-01-03 Matthias Clasen <mclasen@redhat.com>
1034 * gdk/x11/gdkscreen-x11.h:
1035 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window): Recheck
1036 _NET_SUPPORTING_WM_CHECK every now and then to avoid getting
1037 stuck on the id of a former wmcheck window that got reused by
1038 another client (see RH bug 471927)
1040 2009-01-03 Matthias Clasen <mclasen@redhat.com>
1042 * gtk/gtktreesortable.c: Improve the docs
1044 * gtk/gtktreemodelsort.c: Don't assert when using the "unsorted"
1047 2009-01-02 Matthias Clasen <mclasen@redhat.com>
1049 Bug 565998 – configure script doesn't check for cairo-xlib.pc
1051 * configure.in: Check for cairo-xlib when looking for
1052 gdk dependencies. Requested by Alberto Ruiz
1054 2009-01-02 Matthias Clasen <mclasen@redhat.com>
1056 Bug 566334 – compile failure for gtk+ on Mac OS X
1058 * gtk/gtkstatusicon.c: Fix the build on OS X.
1059 Reported by Bart Cortooms.
1061 2009-01-02 Matthias Clasen <mclasen@redhat.com>
1063 Bug 566083 – Icon pixmap hardcoded during DnD
1066 * gtk/gtkentry.c: Add docs about using ::drag-begin for setting
1067 a custom drag icon. Reported by Xan Lopez
1069 2009-01-01 Matthias Clasen <mclasen@redhat.com>
1071 * configure.in: Bump version
1073 * === Released 2.15.0 ===
1075 2009-01-01 Matthias Clasen <mclasen@redhat.com>
1077 * gtk/gtkentry.c (gtk_entry_set_icon_sensitive): Fix default
1080 * gtk/tests/builder.c: Clean up asserts, make domain
1081 test work with current GtkBuilder behaviour.
1083 * Makefile.decl: Start Xvfb with -ac -noreset to try
1084 and get the gui tests working.
1086 2009-01-01 Matthias Clasen <mclasen@redhat.com>
1088 * gtk/gtk.symbols: Add a few forgotten symbols
1089 * gtk/gtkprintoperation.c:
1090 * gtk/gtktrayicon-x11.c: Make some functions static
1092 2008-12-31 Matthias Clasen <mclasen@redhat.com>
1096 2008-12-31 Matthias Clasen <mclasen@redhat.com>
1099 * gtk/gtkruler.[hc]: Some more
1101 2008-12-31 Matthias Clasen <mclasen@redhat.com>
1104 * gtk/gtkpaned.[hc]:
1105 * gtk/gtkscale.[hc]:
1106 * gtk/gtkscrollbar.[hc]:
1107 * gtk/gtkseparator.[hc]: Keep these all abstract for now.
1109 2008-12-30 Matthias Clasen <mclasen@redhat.com>
1111 * gtk/gtkentry.c: Rename the icon signals to ::icon-press and
1112 ::icon-release to avoid clashes with the existing SexyIconEntry
1113 signals. Also annotate the GdkEvent parameters as static-scope.
1115 * tests/testentryicons.c: Adapt
1116 * demos/gtk-demo/search-entry.c: Adapt
1118 2008-12-30 Matthias Clasen <mclasen@redhat.com>
1120 Bug 565846 – "va_end(args);" should be added into gtk_tree_store_new
1122 * gtk/gtktreestore.c (gtk_tree_store_new): Add a missing
1123 va_end() call. Pointed out by Jiwon Lee.
1125 2008-12-30 Matthias Clasen <mclasen@redhat.com>
1127 * gtk/gtkentry.c: Code cleanups; get rid of get_text_area_size,
1128 replace get_icon_allocation by get_icon_allocations, don't
1129 pass allocation to place_windows; other stylistic changes to
1130 the icon-related code.
1132 2008-12-30 Matthias Clasen <mclasen@redhat.com>
1134 * gtk/gtkentry.c: Avoid size allocation loops.
1136 2008-12-30 Matthias Clasen <mclasen@redhat.com>
1138 * gtk/gtkentry.c: Fix errors in property definitions and
1139 get_property implementation.
1141 2008-12-30 Matthias Clasen <mclasen@redhat.com>
1143 * gtk/gtkentry.c: Redo the Caps Lock warning using an icon.
1145 2008-12-30 Matthias Clasen <mclasen@redhat.com>
1147 Bug 558694 – Paned window splitter keynav broken
1149 * gtk/gtkpaned.c (get_child_panes): Don't add unrealized
1152 2008-12-30 Matthias Clasen <mclasen@redhat.com>
1155 * gtk/gtkmenutooltbutton.c:
1156 * gtk/gtkprintoperationpreview.c: Doc additions
1158 2008-12-29 Matthias Clasen <mclasen@redhat.com>
1160 * gtk/gtkiconview.c:
1163 * gtk/gtktextview.c:
1164 * gtk/gtkeditable.c:
1165 * gtk/gtktextbuffer.c: Doc additions.
1167 2008-12-29 Tor Lillqvist <tml@novell.com>
1169 * gtk/gtk.symbols: Add missing symbols from gtkentry.c.
1171 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1174 * gtk/gtkstyle.c: Doc additions
1176 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1178 * gtk/gtk[hv]scrollbar.c: Document gtk_[hv]scrollbar_new.
1180 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1182 * gtk/gtkwidget.c: Document gtk_mnemonic_activate.
1184 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1186 * gtk/gtktextlayout.c: Un-doc-commentize non-public api
1188 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1190 * gtk/gtkprogress.h: Fix a typo
1192 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1195 * gtk/gtkentry.c: Doc fixes
1197 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1200 * gtk/gtktextutil.c: Un-doc-commentize non-exported functions
1201 to make gtk-doc happy.
1203 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1206 * gtk/gtkimagemenuitem.c: Doc fixes
1208 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1210 * gtk/gtkeditable.h: Match parameter names to make gtk-doc happy.
1212 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1214 * tk/gtkfontsel.c: Merge docs inline.
1216 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1218 * gtk/gtkprintsettings.c:
1219 * gtk/gtkbindings.c:
1220 * gtk/gtkstyle.c: Doc fixes
1222 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1224 * gtk/gtkscrolledwindow.c:
1225 * gtk/gtkscale.c: Merge docs inline.
1227 2008-12-28 Ryan Lortie <desrt@desrt.ca>
1229 small fix for "Paned Window Widgets" example
1231 * docs/tutorial/gtk-tut.sgml: use gtk_container_add rather than
1232 add_with_viewport for putting a GtkTreeView into a ScrolledWindow
1234 Spotted by Benjamin Herrenschmidt
1236 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1238 * gtk/gtkimmodule.c:
1239 * gtk/gtkseparatortoolitem.c: Doc fixes
1242 * gtk/gtkeditable.c: Merge docs inline.
1244 2008-12-28 Matthias Clasen <mclasen@redhat.com>
1248 * gtk/gtkaccelgroup.c: Documentation fixes
1250 * gtk/gtkstatusicon.c:
1252 * gtk/gtkeditable.[hc]: Make parameter names match to make gtk-doc
1255 2008-12-27 Matthias Clasen <mclasen@redhat.com>
1257 * gtk/gtkentry.c: Expand the docs some more.
1259 2008-12-26 Matthias Clasen <mclasen@redhat.com>
1261 * gtk/gtkentry.c: Don't emit ::icon-pressed on nonactivatable
1262 icons. Fix up docs to match actual api.
1264 * tests/testentryicons.c: Reshuffle tests a bit. Add a DND test.
1266 2008-12-26 Matthias Clasen <mclasen@redhat.com>
1268 * gtk/gtkentry.c: Fix interaction between icons and widget sensitivity.
1269 Also fix a few typos.
1271 * tests/testentryicons.c: Add property editors.
1272 * tests/Makefile.am: Glue
1274 2008-12-26 Matthias Clasen <mclasen@redhat.com>
1276 * gtk/gtkentry.c: Allow builtin icons when loading themed icons,
1277 and don't leak a GtkIconInfo.
1279 2008-12-26 Matthias Clasen <mclasen@redhat.com>
1281 * gtk/gtkentry.c: Emit ::icon-pressed regardless which button was
1282 pressed. Also make it explicit in the signal signature that the
1283 position parameter is a GtkEntryIconPosition.
1285 2008-12-26 Matthias Clasen <mclasen@redhat.com>
1287 * gtk/gtkentry.c: Emit property notification for the text-length
1290 2008-12-26 Matthias Clasen <mclasen@redhat.com>
1292 * demos/gtk-demo/search_entry.c: Add a demo for new entry features.
1293 * demos/gtk-demo/Makefile.am: Glue
1295 2008-12-25 Matthias Clasen <mclasen@redhat.com>
1297 * gdk/gdkapplaunchcontext.c:
1299 * gdk/x11/gdkdnd-x11.c:
1300 * gdk/x11/gdkkeyx-x11.c:
1301 * gdk/x11/gdktestutils-x11.c: Typo fixes and other small
1304 2008-12-23 Li Yuan <li.yuan@sun.com>
1306 * gtk/gtkiconview.c: (gtk_icon_view_accessible_model_row_changed):
1307 Bug #549251. No need to set name if there is no a11y item object.
1309 2008-12-21 Yair Hershkovitz <yairhr@gmail.com>
1311 Bug 565203: RTL locales: icons are misplaced when horizontal
1312 gtkiconview is contained in a gtkscrolledwindow.
1314 * gtk/gtkiconview.c (gtk_icon_view_layout_single_row):
1315 Fix horizontal icon positions when in RTL locale.
1317 2008-12-19 Matthias Clasen <mclasen@redhat.com>
1321 2008-12-19 Matthias Clasen <mclasen@redhat.com>
1323 Bug 564881 – gtkstatusicon.c: 'event' bug again
1325 * gtk/gtkstatusicon.c (button_callback): Fix the build.
1326 Patch by Christian Dywan.
1328 2008-12-19 Cody Russell <bratsche@gnome.org>
1330 Bug 85292 – add an icon to gtkentry
1332 * gtk/gtkmarshalers.list: Add VOID:INT,BOXED
1333 * tests/testentryicons.c: Initial icon entry test
1334 * tests/Makefile.am: Add testentryicons
1335 * gtk/gtkentry.[ch]: Add API for setting primary/secondary icons
1336 and other features related to them.
1338 2008-12-19 Marek Kasik <mkasik@redhat.com>
1340 Bug 339318 - Allow page rendering to (optionally) happen in a thread
1342 * gtk/gtk.symbols: API change
1343 * doc/reference/gtk/gtk-sections.txt: API change
1344 * gtk/gtkprintoperation-private.h
1345 * gtk/gtkprintoperation.h
1346 * gtk/gtkprintoperation.c: Adds 2 new functions
1347 gtk_print_operation_set_defer_drawing()
1348 - Sets up the GtkPrintOperation to wait for calling of
1349 gtk_print_operation_draw_page_finish() from application. It can
1350 be used for drawing page in another thread.
1351 This function must be called in the callback of "draw-page"
1353 gtk_print_operation_draw_page_finish()
1354 - Signalize that drawing of particular page is complete.
1355 It is called after completion of page drawing (e.g. drawing
1357 If gtk_print_operation_set_defer_drawing() was called before,
1358 then this function has to be called by application. In another
1359 case it is called by the library itself.
1361 2008-12-15 Matthias Clasen <mclasen@redhat.com>
1363 * gtk/gtkprintunixdialog.c: Don't export emit_ok_response
1365 2008-12-15 Tomas Bzatek <tbzatek@redhat.com>
1367 * gtk/gtkfilechooserdefault.c: (list_row_activated):
1368 * gtk/gtkfilesystem.c: (_gtk_file_info_consider_as_directory):
1369 Mask G_FILE_TYPE_SHORTCUT as a directory (#561494)
1371 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1373 * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
1374 Mount the enclosing volume if the folder we're switching to is not
1375 mounted. Patch by Tomas Bzatek, based on work by Carlos Garnacho
1377 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1379 Bug 561494 – FileChooser network browsing and authentication support
1381 * gtk/gtkfilesystem.[hc] (_gtk_file_info_consider_as_directory):
1382 Privately export this method. It classifies directories and mountables
1385 * gtk/gtkfilesystem.c (enclosing_volume_mount_cb): Silently drop
1386 G_IO_ERROR_ALREADY_MOUNTED error for gvfs backends without visible
1389 * gtk/gtkfilesystemmodel.c:
1390 * gtk/gtkfilechooserbutton.c:
1391 * gtk/gtkfilechooserentry.c:
1392 * gtk/gtkfilechooserdefault.c: Use the new function instead of
1393 direct checks for G_FILE_TYPE_DIRECTORY throughout.
1395 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1397 Bug 562579 – Remove error dialog when directory does not exist
1399 * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
1400 Don't show an error dialog when changing to a non-existing folder,
1401 since this is ususally just an annoyance.
1403 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1405 Bug 556233 – local-only causes G_IS_FILE warning
1407 * gtk/gktfilechooserdefault.c (set_local_only): Avoid a warning
1408 in tests. Patch by Christian Dywan
1410 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1412 Bug 563158 – CellRendererProgress pulsing and progressing rows can
1413 not be used together
1415 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_pulse):
1416 Don't try to keep state in a cell renderer between two paint
1417 calls. It doesn't work. Patch by Kristian Mueller
1419 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1421 Bug 555560 – gtk_combo_box_set_active fails with no model
1423 * gtk/gtkcombobox.c: Allow out-of-order setting of model and active.
1424 Patch by Christian Dywan
1426 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1428 Bug 558306 – Cannot build gdk (gtk+ 2.14.4) on Solaris 8
1430 * gdk/x11/gdktestutils-x11.c (gdk_test_simulate_button):
1431 Remove a C99ism. Pointed out by Eric Lamarque
1433 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1435 Bug 549251 – GTK icon view accessible issue.
1437 * gtk/gtkiconview.c (gtk_icon_view_accessible_model_row_changed):
1438 Handle separate append/set for rows. Patch by Li Yuan
1440 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1442 Bug 556839 – Crash when opening a link
1444 * gtk/gtkstatusicon.c (gtk_status_icon_finalize): Destroy the
1445 image too. Patch by Carlos Garcia Campos
1447 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1449 Bug 563751 – xatom cache is prefilled too late
1451 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize the
1452 XAtom cache earlier. Patch by Christian Persch
1454 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1456 Bug 564212 – gtk_icon_view_accessible_model_rows_reordered explain
1457 new_order in the wrong way
1459 * gtk/gtkiconview.c (gtk_icon_view_accessible_model_rows_reordered):
1460 Use the new order correctly. Patch by Li Yuan
1462 2008-12-13 Matthias Clasen <mclasen@redhat.com>
1464 Bug 563835 – Typo in gtk_widget_has_screen() docs
1466 * gdk/directfb/gdkwindow-directfb.c:
1468 * gdk/x11/gdkwindow-x11.c:
1469 * gtk/gtkmenushell.c:
1471 * gtk/tests/builder.c:
1472 * tests/testdnd.c: s/heirarchy/hierarchy/ in docs and comments.
1473 Pointed out by Wouter Bolsterlee
1475 2008-12-12 Matthias Clasen <mclasen@redhat.com>
1477 Bug 564066 – Crash in gtk_rc_parse_default_files
1479 * gtk/gtkrc.c (gtk_rc_parse_default_files): Handle being called
1480 early. Bug report by Andrés G. Aragoneses
1482 2008-12-12 Matthias Clasen <mclasen@redhat.com>
1484 * gtk/gtkmountoperation.c: Set an empty title on password dialogs.
1485 Pointed out by Máirín Duffy.
1487 2008-12-11 Sven Herzberg <sven@imendio.com>
1489 Document the "set-scroll-adjustments" signal
1491 Reviewed by Kristian Rietveld.
1493 * gtk/gtkiconview.c,
1495 * gtk/gtktextview.c,
1496 * gtk/gtktreeview.c,
1497 * gtk/gtkviewport.c: added proper documentation for the signal
1499 2008-12-11 Daniel Elstner <danielk@openismus.com>
1501 Bug 563994 – Input method module interface not documented
1503 * gtk/gtkimcontext.h: Add public/private markers.
1504 * gtk/gtkimcontext.c: Add section documentation which explains how
1505 to add a new input method module to GTK+. Document the signals and
1506 virtual functions of GtkIMContextClass.
1507 * gtk/gtkimmodule.c: Document struct GtkIMContextInfo.
1508 * docs/reference/gtk/gtk-sections.txt: Add GtkIMContextClass and
1509 GtkIMContextInfo to section GtkIMContext.
1510 * docs/reference/gtk/Makefile.am (IGNORE_HFILES): Remove
1511 gtkimmodule.h from the list in order to pick up GtkIMContextInfo.
1512 * docs/reference/gtk/tmpl/gtkimcontext.sgml: Remove file from
1513 repository since all the hand-edited content has been migrated to
1514 source file comments.
1516 2008-12-10 Matthias Clasen <mclasen@redhat.com>
1518 Bug 563991 – gtk_file_chooser_button_new_with_backend is deprecated
1519 -- but what should be used instead?
1521 * gtk/gtkfilechooserbutton.c: Enhanced deprecation annotation.
1523 2008-12-10 Daniel Elstner <danielk@openismus.com>
1525 Maintenance of Multipress input method by Openismus GmbH:
1527 * modules/input/gtkimcontextmultipress.[ch]: Clean up the code
1528 a bit to follow the GTK+ coding style more closely. Fix the code
1529 to emit "preedit-start" and "preedit-end", too, rather than only
1531 (GTK_IM_CONTEXT_MULTIPRESS*): Rename incorrectly spelled macros
1532 gtk_im_context_multipress*. Shouldn't break API or ABI as it's
1533 only used internally.
1534 * modules/input/immultipress.c: More cleanup,
1535 * modules/input/README.multipress: ditto.
1537 2008-12-09 Michael Natterer <mitch@imendio.com>
1539 * gdk/gdk.symbols: add missing #ifndef GDK_DISABLE_DEPRECATED.
1541 2008-12-09 Michael Natterer <mitch@imendio.com>
1543 * gtk/gtkcontainer.c (struct PackingPropertiesData): add missing
1546 * gtk/gtkcontainer.c (attributes_text_element): "value" is a
1547 gchar*, not const gchar*.
1549 2008-12-07 Matthias Clasen <mclasen@redhat.com>
1551 Bug 546378 – GtkAssistant page title is not translatable
1553 * gtk/gtkbuilderparser.c: Make gtk_builder_get_translation_domain()
1554 useful for subparsers.
1556 * gtk/gtkcontainer.c: Make the child property parser support
1557 translatable child properties. Patch by Antti Kaijanmäki
1559 2008-12-07 Matthias Clasen <mclasen@redhat.com>
1561 Bug 554274 – Add default hook for GtkLinkButton
1563 * gtk/gtklinkbutton.c: Call gtk_show_uri() if no uri hook has
1564 been set. Patch by Emmanuele Bassi
1566 2008-12-07 Matthias Clasen <mclasen@redhat.com>
1568 Bug 559325 – documentation for gdk_display_get_window_at_pointer()
1571 * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): Correct
1572 the documentation. Patch by Paul Davis
1574 2008-12-07 Matthias Clasen <mclasen@redhat.com>
1576 Bug 563285 – test print backend does not compile
1578 * modules/printbackends/test/gtkprintbackendtest.c: Clean up
1581 2008-12-07 Behdad Esfahbod <behdad@gnome.org>
1583 Bug 563547 – Update gdkx11 atom precache table
1585 * gdk/x11/gdkdisplay-x11.c: Add more atoms to precache.
1587 2008-12-05 Michael Natterer <mitch@imendio.com>
1589 Bug 546285 – Allow GtkEntry to draw progress
1591 * gtk/gtkentry.[ch]: add new API similar to GtkProgressBar which
1592 allows to set the entry's progress_fraction, its progress_pulse_step
1593 and to let the entry's progress pulse.
1595 * gtk/gtk.symbols: updated.
1597 * tests/testgtk.c: add progress demo code to the "Entry" window.
1599 2008-12-04 Johan Dahlin <jdahlin@async.com.br>
1601 * gtk/gtkstatusicon.c:
1602 Add missing space in gtk-doc deprecated syntax
1604 2008-12-03 Simos Xenitellis <simos@gnome.org>
1606 Bug 557420 – Some compose sequences don't work anymore (or only in
1609 * gtk/gtkimcontextsimple.c: Update of table size, keysym boundary,
1610 to match the gtkimcontextsimpleseqs.h table.
1611 * gtk/gtkimcontextsimpleseqs.h: Update with older gtk+ compose
1612 sequences that went missing due to table update with upstream.
1613 * gtk/compose-parse.py: Updated to include gtk-compose-lookaside.txt
1614 * gtk/gtk-compose-lookaside.txt: Older gtk+ compose sequences that
1615 are not found in the X.Org Compose file.
1617 2008-12-03 Sven Herzberg <sven@imendio.com>
1619 Bug 562998 – GtkFontButton documentation improvements
1621 * gtk/gtkfontbutton.c: mention the way the font string should be used.
1622 Patch by Sven Herzberg and Nelson Benitez
1624 2008-12-03 Marek Kasik <mkasik@redhat.com>
1626 Bug 559914 – eog doesn't apply paper setup.
1628 * gtk/gtkpapersize.c: Call the gtk_paper_size_new_from_ppd() with width
1629 and height in points.
1631 2008-12-02 Carlos Garcia Campos <carlosgc@gnome.org>
1633 Bug 562878 – password save incorrectly set in gtkmountoperation
1635 * gtk/gtkmountoperation.c (remember_button_toggled),
1636 (gtk_mount_operation_ask_password): Remember the password save
1637 flags only when the radio button becomes active. Set also the
1638 default state of the radio buttons depending on the current value
1639 of password save flags.
1641 2008-12-01 Matthias Clasen <mclasen@redhat.com>
1643 Bug 555334 – connected server feature
1645 * gtk/gtkfilesystem.c (get_volumes_list): Filter out shadow mounts.
1646 Patch by David Zeuthen.
1648 2008-12-01 Matthias Clasen <mclasen@redhat.com>
1650 * gtk/gtkentry.c: Revert an accidental change that sneaked
1651 in with the last commit.
1653 2008-12-01 Paul Bolle <pebolle@tiscali.nl>
1655 Bug 562817 – GtkDialog: typo
1657 * gtk/gtkdialog.c: Fix typo
1659 2008-11-29 Matthias Clasen <mclasen@redhat.com>
1661 Bug 554453 – "typeahead find" widget of GtkTreeView appears on
1662 wrong monitor in a multi-head environment
1664 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
1665 Make sure the typeahead window follows screen changes of the
1666 treeview. Noticed by Rainer Stransky
1668 2008-11-30 Christian Dywan <christian@imendio.com>
1670 Bug 559622 – GdkDevice test segfaults
1672 * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose):
1673 * gdk/x11/gdkinput.c (gdk_device_class_init), (gdk_device_dispose):
1674 Free and reset device in dispose. Patch by Michael Natterer and myself.
1676 2008-11-30 Christian Dywan <christian@imendio.com>
1678 Bug 554076 – eventually release g_new-ed supported_atoms
1680 * gdk/x11/gdkevents-x11.c (cleanup_atoms),
1681 (gdk_x11_screen_supports_net_wm_hint): Set cleanup callback.
1682 Patch by Caolan McNamara.
1684 2008-11-30 Christian Dywan <christian@imendio.com>
1686 Bug 539263 – Deprecate gdk_window_get_toplevels
1689 * gdk/gdkwindow.h: Deprecate gdk_window_get_toplevels
1691 2008-11-29 Federico Mena Quintero <federico@novell.com>
1693 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): If tree lines are
1694 enabled, flip them around for the right-to-left case. Fixes
1695 https://bugzilla.novell.com/show_bug.cgi?id=447004. Patch by
1696 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt>
1698 2008-11-29 Christian Persch <chpe@gnome.org>
1700 * gtk/gtkselection.c: Typo fix.
1702 2008-11-29 Matthias Clasen <mclasen@redhat.com>
1704 * gtk/gtkselection.c:
1707 * gtk/gtkcolorsel.c:
1708 * gtk/gtkbindings.c: Improve deprecation annotations.
1710 2008-11-26 Christian Dywan <christian@imendio.com>
1712 Bug 561504 – testgtk should load rc file from sub folder
1714 * tests/testgtk.c (main):
1715 Make testgtk look in subfolder and warn if not found
1717 2008-11-25 Johan Dahlin <jdahlin@async.com.br>
1719 Bug 559947 – Unchecked dependency on python>=2.4
1721 * gtk/gtk-builder-convert:
1722 Avoid using sorted() which is only present in python 2.
1724 2008-11-24 Tristan Van Berkom <tvb@gnome.org>
1726 * gtk/gtkalignment.c: Bug 561539 - Fix warnings when size allocations
1727 fall short of border width and padding.
1729 2008-11-22 Paul Bolle <pebolle@tiscali.nl>
1731 Bug 561335 - Fix typos in GtkToolItem documentation
1733 * gtk/gtktoolitem.c: Fix typos in GtkToolItem documentation
1735 2008-11-21 Matthias Clasen <mclasen@redhat.com>
1737 * configure.in: Bump gtk-doc dependency to 1.11 for
1738 nicer index-generation.
1740 2008-11-21 Matthias Clasen <mclasen@redhat.com>
1742 * gtk/gtkmountoperation.[hc]: Declare structs in a way that
1743 gtk-doc understands.
1745 2008-11-17 Christian Dywan <christian@imendio.com>
1747 Bug 377699 – realizing gtk.Progress() causes SEGV
1749 * gtk/gtkprogress.c: Define GtkProgress as an abstract type
1751 2008-11-13 Christian Dywan <christian@imendio.com>
1753 Bug 560602 – Wrong GtkMenuItem default value (test fails)
1755 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
1756 Correct default "label" value to ""
1758 2008-11-12 Christian Dywan <christian@imendio.com>
1760 Bug 560139 – GtkEntry doesn't paint with the right state
1762 * gtk/gtkentry.c (gtk_entry_class_init), (gtk_entry_draw_frame),
1763 (gtk_entry_expose): Reflect the right state if state-hint is set
1765 2008-11-12 Christian Dywan <christian@imendio.com>
1767 Bug 559619 – invisible-char default cannot be tested
1769 * gtk/tests/defaultvalue.c (test_type):
1770 Skip invisible-char when testing
1772 2008-11-12 Richard Hult <richard@imendio.com>
1774 * gtk/gtkdnd-quartz.c: (gtk_drag_set_icon_pixmap): Implement,
1775 patch from Paul Davis.
1777 2008-11-12 Christian Dywan <christian@imendio.com>
1779 Bug 525550 – GTK+ 2.13.0 GtkCurve test fails
1781 * gtk/tests/object.c (list_ignore_properties),
1782 (object_test_property), (main): Ignore GtkCurve when testing
1784 2008-11-12 Richard Hult <richard@imendio.com>
1786 Bug 550942 – [patch] Rework of gdkeventloop-quartz.c
1789 * gdk/gdkinternals.h: Add eventloop debug facility.
1790 * gdk/quartz/gdkeventloop-quartz.c: Big rework of the quartz
1791 mainloop integration, patch from Owen Taylor. See bug #550942 for
1794 2008-11-12 Richard Hult <richard@imendio.com>
1796 Bug 558586 – handling of keyboard under darwin (quartz)
1798 * gdk/quartz/gdkkeys-quartz.c: Follow up on this bug, only use the
1799 new API when building on 64-bit, since there are still old non-xml
1800 layouts used out there we don't want to break them. (For 64-bit
1801 those layouts doesn't work so we don't have a choice there.)
1803 2008-11-11 Matthias Clasen <mclasen@redhat.com>
1805 * gtk/gtkspinbutton.c: Chain up in enter and leave notify handlers.
1807 2008-11-11 Michael Natterer <mitch@imendio.com>
1809 Bug 553765 – Add orientation API to GtkRange
1811 * gtk/gtkrange.[ch]: implement the GtkOrientable interface. Add
1812 evil code that makes sure that the stepper_detail and slider_detail
1813 set in GtkRangeClass continue to work with the hacked subclasses
1816 * gtk/gtkscale.[ch]: swallow all code from GtkHScale and GtkVScale
1817 and add gtk_scale_new() and gtk_scale_new_with_range() which take
1818 a GtkOrientation argument. Set slider_detail to "Xscale" so above
1821 * gtk/gtkscrollbar.[ch]: add gtk_scrollbar_new() which takes a
1822 GtkOrientation argument. Set stepper_detail to "Xscrollbar" so
1823 above evil code works.
1827 * gtk/gtkhscrollbar.c
1828 * gtk/gtkvscrollbar.c: remove all code except the constructor and
1829 call gtk_orientable_set_orientation() in init().
1831 * gtk/gtk.symbols: changed accordingly.
1833 2008-11-11 Michael Natterer <mitch@imendio.com>
1835 * gtk/gtktoolbar.h: move deprecated functions together, move
1836 setters and getters together, some indentation cleanup.
1838 2008-11-11 Michael Natterer <mitch@imendio.com>
1840 * gtk/gtktoolbar.[ch]: implement the GtkOrientable interface
1841 and deprecate gtk_toolbar_get,set_orientation().
1843 * gtk/gtk.symbols: changed accordingly.
1845 2008-11-10 Marek Kasik <mkasik@redhat.com>
1847 Bug 560135 - Print when the user double clicks a printer
1849 * gtk/gtkprintunixdialog.c: add handling of double click to
1852 2008-11-07 Michael Natterer <mitch@imendio.com>
1854 * gtk/gtkpaned.c: argh, actually call the newly added private
1855 gtk_paned_calc_position() instead of the deprecated public
1858 2008-11-07 Michael Natterer <mitch@imendio.com>
1860 Bug 553586 – Add orientation API to GtkPaned
1862 * gtk/gtkpaned.[ch]: implement the GtkOrientable interface
1863 and swallow all code from GtkHPaned and GtkVPaned. Add
1864 gtk_paned_new() which takes a GtkOrientation argument. Deprecate
1865 gtk_paned_compute_position() for good (also for GTK_COMPILATION).
1867 * gtk/gtkhpaned.[ch]
1868 * gtk/gtkvpaned.[ch]: remove all code except the constructor and
1869 call gtk_orientable_set_orientation() in init().
1871 * gtk/gtk.symbols: add gtk_box_new().
1873 2008-11-07 Johan Dahlin <jdahlin@async.com.br>
1875 * gtk/gtkcontainer.c (gtk_container_buildable_add_child):
1876 Check for child->parent instead of GTK_WIDGET_TOPLEVEL.
1878 2008-11-07 Michael Natterer <mitch@imendio.com>
1880 * gtk/gtkscrollbar.c: remove bogus newlines in the middle of
1881 function calls, fix broken indentation and remove trailing
1884 2008-11-06 Tristan Van Berkom <tvb@gnome.org>
1886 * gtk/gtkmenuitem.c: Made buildable and added support for adding
1887 children of type "submenu"
1889 * gtk/gtkwindow.c: Added support for custom tag "accel-groups" to
1890 add GtkAccelGroups to the window.
1892 * gtk/gtkcontainer.c: Added builder contextual warnings in
1893 buildable_add_child()
1895 * gtk/tests/builder.c: Added tests for buildable menus (test that
1896 accelerators are properly connected on stock items, test the menu
1897 hierarchy, test permission to add alien/custom menuitem children).
1899 * docs/reference/gtk/tmpl/gtkbuilder.sgml
1900 * docs/reference/gtk/tmpl/gtkwindow.sgml
1901 * docs/reference/gtk/tmpl/gtkmenuitem.sgml: Updated docs for
1902 buildable submenus and accel groups.
1904 2008-11-06 Tristan Van Berkom <tvb@gnome.org>
1906 * gtk/gtkmenuitem.[ch]: added new apis
1907 gtk_menu_item_[set/get]_label() and
1908 gtk_menu_item_[set/get]_use_underline() with "label" and
1909 "use-underline" properties, constructors cleaned up to use
1910 g_object_new(). GtkMenuItemClass take new vfuncs
1913 * gtk/gtkcheckmenuitem.c: constructors cleaned up to use
1916 * gtk/gtkimagemenuitem.[ch]: added new apis
1917 gtk_image_menu_item_[get/set]_use_stock() and
1918 gtk_image_menu_item_set_accel_group() with "use-stock" and
1919 write-only "accel-group" properties. constructors cleaned up to
1922 2008-11-06 Tristan Van Berkom <tvb@gnome.org>
1924 * gtk/gtkbuilder.h: Fixed a crasher in
1925 GTK_BUILDER_WARN_INVALID_CHILD_TYPE()
1927 2008-11-06 Tristan Van Berkom <tvb@gnome.org>
1929 * gtk/gtklabel.c: gtk_label_set_attributes() now applies attributes
1930 on top of any markup or mnemonic attributes (bug 558409).
1932 * README: Updated and added release notes for 2.16
1934 2008-11-06 Richard Hult <richard@imendio.com>
1936 Bug 558586 – handling of keyboard under darwin (quartz)
1938 * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Patch from
1939 Arnaud Charlet to replace use of deprecated keyboard layout API
1940 with the new TIS API available in 10.5. The old code is still used
1941 when building for 10.4.
1943 2008-11-05 Richard Hult <richard@imendio.com>
1945 * gdk/quartz/gdkevents-quartz.c:
1946 (get_keyboard_modifiers_from_ns_event), (create_key_event): Revert
1947 (at least for now) the alt/cmd switching since it breaks the
1948 "alt-gr" functionality of alt which makes it impossible to input
1951 2008-11-05 Christian Dywan <christian@imendio.com>
1953 Bug 559404 – gtk_editable_insert_text counts length in bytes
1955 * gtk/gtkeditable.c:
1956 Document new_text_length as the number of bytes
1958 2008-11-05 Richard Hult <richard@imendio.com>
1960 * gdk/quartz/gdkwindow-quartz.c:
1961 (gdk_window_impl_quartz_begin_paint_region): Set the fill color
1964 2008-11-05 Richard Hult <richard@imendio.com>
1966 * gtk/gtkstatusicon.c: (gtk_status_icon_set_has_tooltip),
1967 (gtk_status_icon_get_tooltip_markup): Fix build for win32 and
1970 2008-11-04 Tor Lillqvist <tml@novell.com>
1972 Bug 557212 - Problem with which window gains focus and is visible
1974 * gdk/win32/gdkevents-win32.c (ensure_stacking_on_activate_app):
1975 Only do the restacking for the active window of the
1976 application. Seems to fix the problem.
1978 (gdk_event_translate): Only call ensure_stacking_on_activate_app()
1979 when the application is being activated, not deactivated.
1981 2008-11-03 Matthias Clasen <mclasen@redhat.com>
1984 * gtk/gtkstatusicon.[hc]: Add new tooltip api.
1986 2008-11-03 Christian Persch <chpe@gnome.org>
1988 Bug 558001 – gtk_icon_view_enable_model_drag_[source|dest] problem
1990 * gtk/gtkiconview.c: Make gtk_drag_*_add_*_targets() usable with
1993 2008-11-02 Matthias Clasen <mclasen@redhat.com>
1995 Bug 558929 – gtkstatusicon.c: 'event' is a member of the structure
1997 * gtk/gtkstatusicon.c: Fix the build.
1999 2008-11-02 Matthias Clasen <mclasen@redhat.com>
2001 * gtk/gtkimagemenuitem.c: Make it possible to overrule the
2002 gtk-menu-images setting.
2004 * gtk/gtkaction.c (connect_proxy): Show the image before adding
2005 it to the image menu item.
2007 2008-11-01 Tor Lillqvist <tml@novell.com>
2009 Bug 558278 - Crash when calling a callback set by
2010 gdk_add_client_message_filter()
2012 * gdk/win32/gdkevents-win32.c (apply_event_filters): Rename from
2013 apply_filters() so that it is clear that this function is for
2014 GdkEventFilters only.
2016 (print_event): Print more information for GDK_CLIENT_EVENT events.
2018 (gdk_event_translate): When handling client filters, don't use
2019 apply_event_filters(). Use similar code as in the X11 backend,
2020 although not exactly, as the parameter list and return value
2021 semantics of gdk_event_translate() is different.
2023 * tests/testclientmessage.c: New interactive test program to
2024 verify client message functionality.
2026 * tests/Makefile.am: Add it.
2028 2008-11-01 Matthias Clasen <mclasen@redhat.com>
2030 Bug 409435 – GtkStatusIcon enhancements: DnD, scroll events,
2031 middle click, rich tooltips
2033 * gtk/gtkstatusicon.[hc]: Add support for button press/release and
2034 scroll events. Patch by Ed Catmur
2036 2008-11-01 Matthias Clasen <mclasen@redhat.com>
2038 Bug 322934 – Replace menu's proxy icons with empty space hiding icons
2040 * gtk/gtkmenu.c (gtk_menu_size_request): Use consistent padding
2041 regardless of imagees or checks being in the menu. Also add
2042 padding on the right edge.
2043 Proposal by Luca Ferretti, patch by Jon McCann
2045 2008-11-01 Matthias Clasen <mclasen@redhat.com>
2047 Bug 412134 – Add API to query style properties from the style
2050 * gtk/gtkstyle.[hc]: Add getters for style properties to
2051 avoid the need for ugly workarounds with dummy widget instances.
2052 Patch by Mariano Suárez-Alvarez
2054 2008-10-31 Christian Dywan <christian@imendio.com>
2056 Bug 558667 – gtk_font_selection_dialog_get_apply_button - deprecate?
2061 Deprecate gtk_font_selection_dialog_get_apply_button
2063 2008-10-31 Matthias Clasen <mclasen@redhat.com>
2065 Bug 558323 – glitches when popping up combos in treeviews
2067 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_set_property):
2068 Don't set the model property on the combo box, since that leads
2071 2008-10-31 Christian Dywan <christian@imendio.com>
2073 Bug 347230 – testicontheme shortcomings
2075 * tests/testicontheme.c (main):
2076 Use theme for "display" and quit on window closing
2078 2008-10-30 Matthias Clasen <mclasen@redhat.com>
2080 Bug 558522 – scroll arrow painted insensitive even though there
2081 are pages beyond the edge
2083 * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Redraw
2084 arrows. Pointed out by Christian Persch
2086 2008-10-30 Michael Natterer <mitch@imendio.com>
2088 * gtk/gtkcellrenderertext.h
2090 * gtk/gtkimcontext.h
2092 * gtk/gtkstyle.h: <pango/pango.h> is pulled in by <gdk/gdk.h>,
2093 remove its inclusion here.
2095 2008-10-30 Michael Natterer <mitch@imendio.com>
2097 * gtk/*.h: no need to include <gtk/gtkenums.h> in headers which
2098 somehow include gtkobject.h or another header which includes it.
2100 2008-10-30 Marek Kasik <mkasik@redhat.com>
2102 Bug 339714 - Set printer dpi on cairo ps/pdf surfaces when printing
2105 * gtk/gtkprintsettings.c
2106 * gtk/gtkprintsettings.h
2107 * docs/reference/gtk/gtk-sections.txt
2108 * modules/printbackends/file/gtkprintbackendfile.c
2109 * modules/printbackends/test/gtkprintbackendtest.c
2110 * modules/printbackends/cups/gtkprintbackendcups.c
2111 * modules/printbackends/lpr/gtkprintbackendlpr.c:
2112 Added lpi (lines per inch) setting to GtkPrintSettings and support
2113 for anamorphic dpi. Surface fallback resolution is set to 2*lpi.
2115 2008-10-30 Michael Natterer <mitch@imendio.com>
2117 * gtk/*.h: no need to include <gdk/gdk.h> in any widget header,
2118 it's included via gtkwidget.h anyway.
2120 2008-10-30 Sven Neumann <sven@gimp.org>
2122 * gtk/gtkwidget.c (gtk_widget_get_property): removed redundant
2125 2008-10-30 Christian Dywan <christian@imendio.com>
2127 Bug 557316 – GtkLinkButton should consider user-defined tooltip
2129 * gtk/gtklinkbutton.c (gtk_link_button_query_tooltip_cb):
2130 Only override the tooltip if not previously set
2132 2008-10-29 Christian Dywan <christian@imendio.com>
2134 Bug 557762 – Misleading error message in GDK DirectFB
2136 * gdk/directfb/gdkdisplay-directfb.c (gdk_display_open):
2137 Correctly say GetInputDevice instead of GetDisplayLayer
2139 2008-10-29 Christian Dywan <christian@imendio.com>
2141 Bug 558397 – gtk_widget_error_bell undefined without a screen
2143 * gtk/gtkwidget.c (gtk_widget_error_bell): Test the settings
2144 instance and return silently if unset
2146 2008-10-28 Michael Natterer <mitch@imendio.com>
2148 * gdk/keyname-table.h: fix small typo.
2150 2008-10-27 Richard Hult <richard@imendio.com>
2152 Bug 557894 – Wrong return value for
2153 gdk_pointer_grab_info_libgtk_only()
2155 * gdk/quartz/gdkevents-quartz.c:
2156 (gdk_pointer_grab_info_libgtk_only): Return TRUE when there is a
2157 pointer grab. Patch by Owen Taylor.
2159 2008-10-26 Matthias Clasen <mclasen@redhat.com>
2161 * gtk/gtktoolshell.c:
2162 * gtk/gtktoolitem.c: Remove markup from short descriptions.
2164 2008-10-26 Matthias Clasen <mclasen@redhat.com>
2166 * gdk/keyname-table.h:
2167 * gtk/gen-paper-names.c:
2168 * gtk/paper_names_offsets.c:
2169 * gtk/gtkpapersize.c:
2170 * gtk/gtkaccellabel.c:
2171 * gtk/gtkprintoperation.c:
2172 * gtk/gtkstock.c: More conversion to C_().
2174 2008-10-26 Matthias Clasen <mclasen@redhat.com>
2176 * gtk/gtkaccellabel.c:
2177 * gtk/gtkcalendar.c:
2178 * gtk/gtkcellrendereraccel.c:
2179 * gtk/gtkcellrendererprogress.c:
2180 * gtk/gtkimmulticontext.c:
2181 * gtk/gtkrecentchoosermenu.c:
2182 * gtk/gtkvolumebutton.c: Use C_() instead of Q_(). String change!
2184 2008-10-26 Christian Persch <chpe@gnome.org>
2186 Bug 557065 – gtkcellrendererpixbuf spams console over and over with
2187 'could not load image' warnings
2189 * gtk/gtkcellrendererpixbuf.c:
2190 (gtk_cell_renderer_pixbuf_create_themed_pixbuf): Remove noisy
2193 2008-10-26 Philip Withnall <philip@tecnocode.co.uk>
2195 Bug 530454 – Clarify page_nr when printing
2197 * gtk/gtkprintoperation.c (gtk_print_operation_class_init): Point out
2198 that page_nr is 0-based in the documentation.
2200 2008-10-25 Matthias Clasen <mclasen@redhat.com>
2202 Bug 557315 – stale clipboard target cache
2204 * gtk/gtkclipboard.c (gtk_clipboard_set_contents): Remove cached
2205 targets. Pointed out by Evan Stade
2207 2008-10-24 Tristan Van Berkom <tvb@gnome.org>
2209 * gtk/gtkwidget.c: Added a note about GtkWidget:has-tooltip in
2210 the docs for GtkWidget::query-tooltip.
2212 2008-10-24 Matthias Clasen <mclasen@redhat.com>
2214 * gtk/gtkmountoperation.c: The "screen" property ought to have
2215 type GdkScreen, not GtkWindow. Found by Cosimo Cecchi
2217 2008-10-24 Matthias Clasen <mclasen@redhat.com>
2219 Bug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching
2220 allocation and deallocation
2222 * gtk/gtkrecentchooserdefault.c (remove_selected_from_list): Don't
2223 free a strdup'ed string by g_free. Pointed out by Daniel Marjamäki
2225 2008-10-24 Matthias Clasen <mclasen@redhat.com>
2227 Bug 556835 – gtkentry.c: variable is declared at middle of block
2229 * gtk/gtkentry.c (gtk_entry_copy_clipboard): Fix a C99ism pointed
2230 out by Kazuki Iwamoto
2232 2008-10-24 Matthias Clasen <mclasen@redhat.com>
2234 Bug 557524 – "va_end(args);" should be added into
2235 gtk_text_buffer_insert_with_tags_by_name( )
2237 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_with_tags_by_name):
2238 Don't forget to call va_end. Pointed out by Boram Park
2240 2008-10-23 Alexander Larsson <alexl@redhat.com>
2242 Bug 528320 - Incorrect icons displayed for files with custom
2245 * gtk/gtkfilesystem.c:
2246 (_gtk_file_info_render_icon):
2247 Fall back on default file icon if there was no icon or it
2248 was not found in the theme. This goes with the corresponding
2249 change in glib to not add the fallback icon, but is useful
2252 2008-10-22 Behdad Esfahbod <behdad@gnome.org>
2254 Bug 555920 – gtkentry.c passes wrong enum to
2255 pango_layout_set_alignment()
2257 * gtk/gtkentry.c (gtk_entry_create_layout): Don't set layout
2260 2008-10-22 Matthias Clasen <mclasen@redhat.com>
2262 * gdk/x11/gdkscreen-x11.c: Only emit size-changed if the screen
2263 size actually changed.
2265 2008-10-21 Michael Natterer <mitch@imendio.com>
2270 * gdk/gdkwindow.c: replace assertions for obj != NULL by
2271 GDK_IS_OBJ(), remove redundant != NULL checks when there is
2272 already a type check, add some g_return_if_fail() that were
2273 missing entirely, fix some broken indentation and spacing.
2275 2008-10-21 Tor Lillqvist <tml@novell.com>
2277 Bug 557266 - Window Management Problem
2279 Also reported in mail to gtk-list, and of course it has been well
2280 known in general that window state management is messy and buggy
2281 in various ways in gdk/win32.
2283 * gdk/win32/gdkwindow-win32.c (show_window_internal): Correct
2284 handling of GDK_WINDOW_STATE_ABOVE windows. It doesn't work to set
2285 the WS_EX_TOPMOST extended style bit using SetWindowLong(). We
2286 must call SetWindowPos() on the window using HWND_TOPMOST
2287 instead. The description for WS_EX_TOPMOST in the documentation
2288 for CreateWindowEx() even implies that if you read it carefully.
2290 2008-10-21 Michael Natterer <mitch@imendio.com>
2292 * gdk/gdkapplaunchcontext.c: reorder functions to be in standard
2293 order, add prototypes and namespace to static functions, add
2294 g_return_if_fail()s which were missing all over the place.
2296 2008-10-20 Christian Persch <chpe@gnome.org>
2298 Bug 557059 – crash when compositing emblems with icon
2300 * gtk/gtkicontheme.c: (apply_emblems): Copy the pixbuf before using it
2301 with gtk_pixbuf_composite, in case its pixdata is read-only (mmaped
2302 from icon cache or builtins).
2304 2008-10-20 Murray Cumming <murrayc@murrayc.com>
2306 * gtk/gtkiconview.c: gtk_icon_view_set_tooltip_row(),
2307 gtk_icon_view_set_tooltip_item():
2308 * gtk/gtktreeview.c: gtk_icon_view_set_tooltip_row(),
2309 gtk_icon_view_set_tooltip_cell():
2310 Documentation: Mention the simple set_tooltip_column()
2313 2008-10-18 Tor Lillqvist <tml@novell.com>
2315 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2316 WM_WINDOWPOSCHANGING, don't dereference windowpos in the debugging
2317 output without setting it first.
2319 2008-10-18 Tor Lillqvist <tml@novell.com>
2321 Bug 556578 - GIMP windows stay on top of other windows
2323 * gdk/win32/gdkevents-win32.c (ensure_stacking_on_unminimize)
2324 (ensure_stacking_on_window_pos_changing)
2325 (ensure_stacking_on_activate_app): Ignore unmapped windows in the
2326 loops where we look for the lowest "transient-type" window.
2328 (gdk_event_translate): Don't call
2329 ensure_stacking_on_window_pos_changing() or
2330 ensure_stacking_on_activate_app() for unmapped windows.
2332 2008-10-16 Marek Kasik <mkasik@redhat.com>
2334 Bug 556527 - The current page property is not passed to
2337 * gtk/gtkprintoperation-unix.c: pass current-page property
2338 to GtkPrintUnixDialog
2340 2008-10-15 Michael Natterer <mitch@imendio.com>
2342 * gdk/gdkapplaunchcontext.h (GDK_IS_APP_LAUNCH_CONTEXT): fix typo
2343 in the type name so the macro becomes usable.
2345 2008-10-14 Christian Dywan <christian@imendio.com>
2347 556150 – gtk 'object' property test fixing
2349 * gtk/tests/object.c (list_ignore_properties):
2350 Remove some recently fixed properties from the exception list
2352 2008-10-13 Matthias Clasen <mclasen@redhat.com>
2354 Bug 555779 – GtkCellRendererPixbuf crashed on failed GIcon lookup
2356 * gtk/gtkcellrendererpixbuf
2357 (gtk_cell_renderer_pixbuf_create_themed_pixbuf): Don't crash
2358 if a GIcon is not present in the current theme. Patch by
2361 2008-10-13 Matthias Clasen <mclasen@redhat.com>
2363 Bug 552318 – menubar mnemonics consumed even when
2364 gtk-enable-mnemonics=false
2366 * gtk/gtkwindow.c (gtk_window_activate_key): Don't let mnemonic
2367 entries block accelerator activation when gtk-enable-mnemonics is
2368 FALSE. Problem reported by Andreas Moog.
2370 2008-10-13 Cody Russell <cody@jhu.edu>
2372 * test/testfilechooser.c: Fix option parsing so that -a and
2373 --action work correctly.
2375 2008-10-13 Christian Persch <chpe@gnome.org>
2377 Bug 555386 – format not a string literal and no format arguments
2379 * gtk/gtkiconfactory.c
2380 * gtk/gtkprintbackend.c
2381 * gtk/gtkprintoperation.c
2383 * gtk/tests/builder.c
2384 * modules/other/gail/gailtextview.c
2385 * tests/testmerge.c: Use printf safely.
2387 2008-10-13 Christian Persch <chpe@gnome.org>
2389 Bug 555724 – gtkcellrendereraccel not initialised correctly
2391 * gtk/gtkcellrendereraccel.c: Initialise the cell text.
2393 2008-10-12 Simos Xenitellis <simos@gnome.org>
2395 Bug 555625 – Updated gtk_compose_seqs_compact table
2396 (gtkimcontextsimpleseqs.h)
2398 * gtk/gtkimcontextsimpleseqs.c: Updated the compose sequence table.
2399 In this update we removed a further set of compose sequences that
2400 are otherwise covered by check_algorithmically().
2402 * gtk/gtkimcontextsimple.c: Updated table value that shows how many
2403 distinct first values exist in the compose sequences.
2404 Change from 22 to 20.
2406 2008-10-11 Matthias Clasen <mclasen@redhat.com>
2408 * gtk/gtktoolbar.c: Revert the GtkSettings::gtk-toolbar-icon-size
2409 part of the previous change, since it doesn't work correctly without
2410 extra complication, and using custom icon sizes doesn't make too
2411 much sense in a desktop-wide setting.
2413 2008-10-11 Matthias Clasen <mclasen@redhat.com>
2415 Bug 555186 – Setting gtk-toolbar-icon-size with custom icon_size
2417 * gtk/gtktoolbar.c: Turn GtkToolbar::icon-size and
2418 GtkSettings::gtk-toolbar-icon-size into int properties, to
2419 allow the use of app-registered icon sizes.
2421 2008-10-11 Christian Dywan <christian@imendio.com>
2423 Bug 555676 – gtk_widget_real_grab_focus assumes toplevel == window
2425 * gtk/gtkwidget.c (gtk_widget_real_grab_focus):
2426 Actually test for GTK_IS_WINDOW *and* GTK_WIDGET_TOPLEVEL
2428 2008-10-10 Behdad Esfahbod <behdad@gnome.org>
2430 Bug 551355 – [PATCH] Make glib build with libtool 2.2
2432 * autogen.sh: Accept libtool 2.2. We are moving towards having
2435 2008-10-10 Richard Hult <richard@imendio.com>
2437 * gdk/quartz/gdkkeys-quartz.c: (gdk_keymap_get_caps_lock_state)
2438 Add empty stub to fix linking.
2440 2008-10-10 Simos Xenitellis <simos@gnome.org>
2442 Bug 555000 – Wrong treatment on non-spacing marks dead keys in
2445 * gtk/gtkimcontextsimple.c: Change IS_DEAD_KEY() macro so that
2446 it only checks if input is a deadkey keysym.
2448 2008-10-09 Christian Dywan <christian@imendio.com>
2450 Bug 555676 – gtk_widget_real_grab_focus assumes toplevel == window
2452 * gtk/gtkwidget.c (gtk_widget_real_grab_focus):
2453 Test for GTK_IS_WINDOW instead of GTK_WIDGET_TOPLEVEL
2455 2008-10-09 Christian Dywan <christian@imendio.com>
2457 Bug 555573 – gtk_font_selection_set_font_name
2458 shouldn't require a screen
2460 * gtk/gtkfontsel.c (gtk_font_selection_set_font_name):
2461 Don't warn if there is no screen, just return FALSE
2463 2008-10-09 Christian Dywan <christian@imendio.com>
2465 Bug 555523 – gtk_scale_button_set_adjustment should accept NULL
2467 * gtk/gtkscalebutton.c (gtk_scale_button_set_adjustment):
2468 Create a new adjustment if NULL is passed, like other widgets
2470 2008-10-09 Christian Dywan <christian@imendio.com>
2472 Bug 555578 – GtkTable propertiy maxima are wrong
2474 * gtk/gtktable.c (gtk_table_class_init), (gtk_table_resize):
2475 Always use 65535 instead of G_MAXUINT since that is
2476 the actually supported maximum number of columns and rows
2478 2008-10-09 Richard Hult <richard@imendio.com>
2480 Bug 550342 – Splash screens have a caption
2482 * gdk/quartz/gdkwindow-quartz.c: (_gdk_window_new),
2483 (gdk_window_set_decorations): Patch from Marianne Gagnon to make
2484 splash windows borderless.
2486 2008-10-09 Michael Natterer <mitch@imendio.com>
2488 Bug 516425 – Optionally display accelerators in popups
2490 * gtk/gtkuimanager.h (enum GtkUIManagerItemType): add value
2491 GTK_UI_MANAGER_POPUP_WITH_ACCELS which works like _POPUP but
2492 shows the actions' accelerators.
2494 * gtk/gtkuimanager.c: honor the new enum value for programmatically
2495 created UIs, and support <popup accelerators="true"> in the XML
2496 for the same purpose.
2498 2008-10-09 Simos Xenitellis <simos@gnome.org>
2500 Bug 554192 – double press on the "circumflex" dead key
2501 (standard french 105 keyboard) no longer produces the "^" character
2503 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
2504 Changed the order, put check_compact_table() first, then
2505 check_algorithmically().
2507 2008-10-08 Christian Persch <chpe@gnome.org>
2509 Bug 554702 – gtkfilesystem leaks GError
2511 * gtk/gtkfilesystem.c (_gtk_file_system_init): Free the GError.
2513 2008-10-08 Matthias Clasen <mclasen@redhat.com>
2515 * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
2516 Don't forget to reset reload_state when current_folder is already
2517 correct. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=465992
2519 2008-10-08 Christian Dywan <christian@imendio.com>
2521 Bug 555270 – Allow unsetting a MessageDialog's image
2523 * gtk/gtkmessagedialog.c (gtk_message_dialog_set_property),
2524 Remove a superfluous cast to GtkWidget*
2525 (gtk_message_dialog_set_image): Accept NULL for the image
2526 and unset the image in that case.
2528 2008-10-08 Christian Dywan <christian@imendio.com>
2530 Bug 436533 – Allow more space efficient scroll arrows placement
2532 * gtk/gtkenums.h: Add GtkArrowPlacement
2533 * gtk/gtkmenu.c (gtk_menu_class_init), (get_arrows_border),
2534 (get_arrows_visible_area), (get_double_arrows),
2535 (get_arrows_sensitive_area): Implement GtkMenu::arrow-placement
2536 to allow scrolling arrows to be placed at the start, end or both
2537 Patch by Tommi Komulainen and myself
2539 2008-10-08 Christian Dywan <christian@imendio.com>
2541 Bug 555387 – Changing the sensitivity of a statusbar
2542 mistakenly requires a display
2544 * gtk/gtkstatusbar.c (set_grip_cursor): Only change the cursor
2545 of the resize grip if there is a grip window.
2547 2008-10-06 Matthias Clasen <mclasen@redhat.com>
2549 * gtk/gtktooltip.c (gtk_tooltip_show_tooltip): Avoid unitialized
2550 memory warnings from valgrind.
2552 2008-10-07 11:03:30 Tim Janik <timj@imendio.com>
2554 * gtk/gtkbox.h: keep GtkBox as an abstract type and keep _gtk_box_new()
2555 as private function until we settle on the exact semantics.
2556 renamed _gtk_box_set_old_defaults() as suggested by Mitch.
2558 2008-10-07 Michael Natterer <mitch@imendio.com>
2560 * gtk/gtkbox.c: reindent static prototypes.
2562 2008-10-07 Michael Natterer <mitch@imendio.com>
2564 Bug 553573 – Add orientation API to GtkBox
2566 * gtk/gtkbox.[hh]: implement the GtkOrientable interface and
2567 swallow all code from GtkHBox and GtkVBox. Add gtk_box_new()
2568 which takes a GtkOrientation argument. Also move the newly
2569 added "spacing_set" boolean from struct GtkBox to the new
2573 * gtk/gtkvbox.[ch]: remove all code except the constructor and
2574 call gtk_orientable_set_orientation() in init().
2576 * gtk/gtk.symbols: add gtk_box_new().
2578 2008-10-06 Björn Lindqvist <bjourne@gmail.com>
2580 Bug 539464 – gtk_cell_view_get_model is missing in GtkCellView
2582 * gtk/gtkcellview.c (gtk_cell_view_get_model): Add
2583 gtk_cell_view_get_model.
2585 2008-10-06 Matthias Clasen <mclasen@redhat.com>
2587 * gtk/gtkprintunixdialog.c (create_main_page): Show the tooltip
2588 on the range entry itself, too.
2590 2008-10-04 Tor Lillqvist <tml@novell.com>
2592 Bug 132501 - Make utility window translate to tool window in win32
2594 Implement the utility window type hint. Such windows are kept on
2595 top of other windows of the same process. Makes GIMP's toolbox and
2596 dock windows behave more like in GNOME under metacity. Apply the
2597 same logic also to windows marked with the dialog window type
2598 hint, and windows that are transient for some other window. I'll
2599 call such windows "transient-type" below.
2601 * gdk/win32/gdkevents-win32.c (doesnt_want_key): Drop unused
2604 (ensure_stacking_on_unminimize)
2605 (ensure_stacking_on_window_pos_changing)
2606 (ensure_stacking_on_activate_app): New functions to implement the
2607 desired stacking order. Make sure that a window that is not
2608 transient-type stays below any transient-type windows of the
2609 application. When activating a non-transient-type window make sure
2610 it rises as high as possible while still staying below the lowest
2611 transient-type window.
2613 (gdk_event_translate): Call above functions on
2614 WM_WINDOWPOSCHANGING, WM_ACTIVATEAPP and on WM_SIZE when
2615 unminimizing. Improve debugging printout.
2617 * gdk/win32/gdkwindow-win32.c (get_effective_window_decorations):
2618 Handle utility windows like toolbar windows.
2620 (gdk_window_new_internal) (update_style_bits): Give utility
2621 windows the WS_EX_TOOLWINDOW extended style.
2623 (gdk_window_set_title): If debugging "misc" or "events", make the
2624 handle of top-level windows show up in their title bars. Very
2625 useful when looking at debugging output.
2627 (gdk_window_set_transient_for) (gdk_window_set_keep_above)
2628 (gdk_window_set_keep_below) (gdk_window_set_modal_hint)
2629 (gdk_window_set_skip_taskbar_hint)
2630 (gdk_window_set_skip_pager_hint): Add and improve debugging
2633 (gdk_window_set_type_hint): Print hint symbolically in GDK_NOTE().
2635 2008-10-04 Tor Lillqvist <tml@novell.com>
2637 * gdk/win32/gdkmain-win32.c (_gdk_win32_window_exstyle_to_string)
2638 (_gdk_win32_window_pos_bits_to_string): New debugging printout
2639 functions. Decode the WS_EX_* and SWP_* bits.
2641 * gdk/win32/gdkprivate-win32.h: Declare them. Define
2642 GDK_DEBUG_MISC_OR_EVENTS for use in GDK_NOTE() to match either
2645 2008-10-03 Matthias Clasen <mclasen@redhat.com>
2647 * gtk/gtkmodules.c (_gtk_modules_settings_changed): Add some
2650 2008-10-02 Matthias Clasen <mclasen@redhat.com>
2652 Bug 96431 – Can't cut and paste / DND within invisible entry
2654 * gtk/gtkentry.c: Disable cut, copy and drag out of an invisible
2655 entry. Proposed by Owen Taylor
2657 2008-10-02 Matthias Clasen <mclasen@redhat.com>
2659 Bug 530575 – GtkEntry with invisible chars has a confused cursor in
2662 * gtk/gtkentry.c (gtk_entry_draw_cursor): Use the visible text
2663 in the layout when positioning the cursor, not the actual text
2664 content of the entry. This makes a different when using overwrite
2665 mode in an invisible entry.
2666 Problem noticed by Jonathan Blandford
2668 * gtk/gtktextutil.c: Fix a typo in a comment
2670 2008-10-02 Christian Persch
2672 Bug 554704 – gtkfilesystemmodel does too much work
2674 * gtk/gtkfilesystemmodel.c: Replace g_slist_length()<1 check with a
2677 2008-10-02 Christian Persch
2679 Bug 554701 – filechooser spams console with useless warnings
2681 * gtk/gtkfilesystem.c.c: Don't warn if the async call was simply
2684 2008-10-02 Christian Persch
2686 Bug 554698 – mem leak in filechooser
2688 * gtk/gtkfilechooserdefault.c: Plug a mem leak.
2690 2008-10-02 Christian Persch
2692 Bug 554696 – invalid free function used
2694 * gtk/gtkfilesystemmodel.c: Use the right free func.
2696 2008-10-02 Christian Persch
2698 Bug 554691 – mem leak in filechooser
2700 * gtk/gtkfilesystemmodel.c: Plug a mem leak.
2702 2008-10-02 Christian Persch
2704 Bug 554690 – mem leak in filechooser
2706 * gtk/gtkfilechooserdefault.c: Plug a mem leak.
2708 2008-10-02 Michael Natterer <mitch@imendio.com>
2710 Bug 553585 – Add orientation API to GtkRuler
2712 * gtk/gtkruler.[ch]: implement the GtkOrientable interface and
2713 swallow all code from GtkHRuler and GtkVRuler. Add gtk_ruler_new()
2714 which takes a GtkOrientation argument.
2717 * gtk/gtkvruler.c: remove all code except the constructor and
2718 call gtk_orientable_set_orientation() in init().
2720 * gtk/gtk.symbols: add gtk_ruler_new().
2722 2008-10-01 Torsten Schoenfeld <kaffeetisch@gmx.de>
2724 * docs/reference/gtk/gtk-sections.txt:
2726 * gtk/gtkselection.c:
2727 * gtk/gtkselection.h: Add gtk_selection_data_get_selection to
2728 retrieve the sealed struct field GtkSelectionData.selection.
2730 2008-10-01 Tor Lillqvist <tml@novell.com>
2732 * gtk/gtkscalebutton.c: Don't #define _GNU_SOURCE on Windows as it
2733 confuses newest mingw headers.
2735 2008-10-01 Tor Lillqvist <tml@novell.com>
2737 * gdk/win32/gdkkeys-win32.c (gdk_keymap_get_caps_lock_state):
2738 Implement trivially on Windows. Not sure if something more complex
2739 is actually needed, more specifically whether the function needs
2740 to differentiate between "Caps Lock" and "Shift Lock" semantics?
2742 2008-10-01 Simos Xenitellis <simos@gnome.org>
2744 Bug 554506 – combining diacritics broken, became deadkeys
2746 * gtk/gtkimcontextsimple.c: added check if keysym is greater
2747 than 0x1000000, in this case it is not a dead key.
2749 2008-09-30 Michael Natterer <mitch@imendio.com>
2751 Bug 553582 – Add orientation API to GtkSeparator
2753 * gtk/gtkseparator.[ch]: implement the GtkOrientable interface and
2754 swallow all code from GtkHSeparator and GtkVSeparator. Add
2755 gtk_separator_new() which takes a GtkOrientation argument.
2757 * gtk/gtkhseparator.c
2758 * gtk/gtkvseparator.c: remove all code except the constructor and
2759 call gtk_orientable_set_orientation() in init().
2761 * gtk/gtk.symbols: add gtk_separator_new().
2763 2008-09-30 Marek Kasik <mkasik@redhat.com>
2765 Bug 344522 – support non-local destination files (GtkPrint):
2767 * gtk/gtkprintunixdialog.c
2768 * gtk/gtkprinteroptionwidget.c: Process URI instead of filename.
2769 * modules/printbackends/file/gtkprintbackendfile.c: Add ability
2770 to save files on non-local filesystems.
2772 2008-09-30 Michael Natterer <mitch@imendio.com>
2774 * gtk/gtk.symbols: forgot the G_GNUC_CONST of
2775 gtk_orientable_get_type().
2777 2008-09-30 Michael Natterer <mitch@imendio.com>
2779 Bug 541009 – Get rid of separate subclasses for horizontal and
2780 vertical orientation:
2785 * gtk/gtkorientable.[ch]: add new interface GtkOrientable which
2786 will be implemented by everything that can switch orientation.
2788 2008-09-30 Christian Dywan <christian@imendio.com>
2790 Fix a typo in the tutorial.
2792 * docs/tutorial/gtk-tut.sgml: It's mnemonic, not 'mnemnonic'.
2794 2008-09-29 Matthias Clasen <mclasen@redhat.com>
2796 Bug 553086 – hard to see current immodule
2798 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
2799 Display the actually selected context in the system menuitem.
2800 Complaint by Akira Tagoh.
2802 2008-09-29 Matthias Clasen <mclasen@redhat.com>
2804 Bug 530568 – Entries with visibility=FALSE should warn for caps-lock
2807 * gtk/gtkentry.c: Add a tooltip-like Caps Lock warning for
2808 password entries. The warning is also triggered if an input method
2809 is active. The warning can be turned off using the
2810 GtkEntry::caps-lock-warning property.
2811 Proposed by Owen Taylor
2813 2008-09-29 Matthias Clasen <mclasen@redhat.com>
2816 * gtk/gtkimmulticontext.[hc] (gtk_im_multicontext_get_context_id):
2817 Add a getter for the the sealed context_id field.
2819 2008-09-29 Matthias Clasen <mclasen@redhat.com>
2821 Bug 107000 – Add signals to GdkKeymap for monitoring caps_lock, etc.
2824 * gdk/gdkkeys.[ch]: Add a new GdkKeymap::state-changed signal, and
2825 a gdk_keymap_get_caps_lock_state function.
2827 * gdk/x11/gdkkeys-x11.c: Implement it here. For now, only emit
2828 state-changed when caps lock lockedness changes.
2830 * gdk/x11/gdkdisplay-x11.c: Also select for modifier lock status
2831 changes in the XkbSelectEventDetails call.
2833 2008-09-29 Kristian Rietveld <kris@imendio.com>
2835 Bug 487624 - Tooltips doesn't get updated if ther's no mouse motion
2838 * gtk/gtkwidget.c (gtk_widget_set_property): after updating
2839 tooltip text or markup, call gtk_widget_trigger_tooltip_query()
2840 so that existing visible tooltips are updated.
2842 2008-09-29 Matthias Clasen <mclasen@redhat.com>
2844 Bug 371908 – Password Entry broken
2845 Bug 317002 – Disable input method completely in GtkEntry when it's
2848 * gtk/gtkentry.c (gtk_entry_backspace): Make backspace behave
2849 properly when invisible.
2851 * gtk/gtkentry.c (gtk_entry_create_layout): Show preedit even if
2854 * gtk/gtkentry.c (gtk_entry_set_visibility): Don't disable input
2855 methods when making the entry invisible.
2857 2008-09-29 Emmanuele Bassi <ebassi@linux.intel.com>
2859 * gdk/x11/gdkinput.c:
2860 (gdk_device_class_init), (gdk_device_finalize): Correctly chain
2861 up the finalize implementation.
2863 2008-09-29 Richard Hult <richard@imendio.com>
2865 Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c
2867 * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents):
2868 Patch from Jon A. Cruz to initialize the allocated selection data.
2870 2008-09-27 Matthias Clasen <mclasen@redhat.com>
2872 Bug 339367 – Incorrect spotlocation
2874 * modules/input/gtkimcontextxim.c: Correct the spot location
2875 for on-the-spot style.
2877 2008-09-27 Denis Washington <denisw@svn.gnome.org>
2879 * gtk/gtkiconview.c: only draw keyboard focus when keyboard navigation
2880 is used, like GtkTreeView. (Bug #553575)
2882 2008-09-26 Matthias Clasen <mclasen@redhat.com>
2884 Bug 552959 – GtkTrayIcon: _NET_SYSTEM_TRAY_VISUAL and real
2887 * gtk/gtktrayicon-x11.c: Add support for the _NET_SYSTEM_TRAY_VISUAL
2888 property described in
2889 http://lists.freedesktop.org/archives/xdg/2008-September/009919.html
2890 If _NET_SYSTEM_TRAY_VISUAL is a visual with an alpha channel, the
2891 parent-relative-background hack is skipped and we draw with a real
2892 transparent background.
2894 * gtk/gtkrc.c: Remove the default GtkTrayIcon style, since the
2895 parent-relative background is now set when realizing the tray
2898 Patch by Owen Taylor
2900 2008-09-26 Matthias Clasen <mclasen@redhat.com>
2902 Bug 552956 – Should check composite extension version
2904 * gdk/x11/gdkdisplay-x11.c: Check that the version of the
2905 composite extension is at least 0.4.
2906 Patch by Owen Taylor
2908 2008-09-26 Matthias Clasen <mclasen@redhat.com>
2910 Bug 553803 – eventually call XCloseDevice on XOpenDevice results
2912 * gdk/x11/gdkinput.c: Add a finalize function for device objects,
2913 and call XCloseDevice there.
2915 * gdk/x11/gdkinput-x11.c:
2916 * gdk/x11/gdkdisplay-x11.c: Move freeing of device objects to
2917 the finalize function.
2918 Patch by Caolan McNamara
2920 2008-09-26 Matthias Clasen <mclasen@redhat.com>
2922 Bug 553578 - tabs are not drawn correctly
2924 * gtk/gtknotebook.c: Track the visibility state of notebook tabs
2925 between allocations so that we know to redraw the tab labels if
2926 tabs are hidden and shown without changing position.
2927 Reported by Marek Kašík, patch by Owen Taylor.
2929 2008-09-26 Matthias Clasen <mclasen@redhat.com>
2931 Bug 553133 – GtkFileChooser won't ask to mount a volume
2932 Bug 553211 – GtkFileChooserButton unsets filter after first use
2934 * gtk/gtkfilechooserdefault.c (shortcuts_activate_volume): Use
2935 a GtkMountOperation when mounting, so that we get a password
2936 dialog when required.
2938 * gtk/gtkfilechooserdefault.c (show_and_select_files): Also
2939 get the content-type, since it is used later on.
2940 Pointed out by Davyd Madeley.
2942 2008-09-26 Cody Russell <bratsche@gnome.org>
2944 Bug 553917 – Typo in gdkwindow-win32.c
2946 * gdk/win32/gdkwindow-win32.c: Fixed a typo in
2947 update_system_menu(). Changed GDK_DECOR_ALL to GDK_FUNC_ALL.
2949 Reported by Richard Hult
2951 2008-09-25 Marek Kasik <mkasik@redhat.com>
2953 Bug 553241 – double freed pointer in lpr_write cause firefox3 crash
2955 * modules/printbackends/lpr/gtkprintbackendlpr.c:
2956 The redundant freeing of memory was removed.
2960 2008-09-25 Michael Natterer <mitch@imendio.com>
2962 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
2963 don't unref the file system backend, the newly added
2964 unset_file_system_backend() already does this (bug #553135).
2966 2008-09-24 Michael Natterer <mitch@imendio.com>
2968 * gtk/gtkeventbox.c: events return gboolean not gint, reindented
2971 2008-09-24 Johan Dahlin <johan@gnome.org>
2973 Bug 553385 – gtk-builder-convert creates untranslated combobox models
2975 * gtk/gtk-builder-convert: Set the translatable property on
2976 col tags for converted combos.
2978 2008-09-24 Tor Lillqvist <tml@novell.com>
2980 * gtk-zip.sh.in: Include all of share/man, lib/pkgconfig,
2981 share/aclocal and share/gtk-doc instead of trying to list
2982 individual files or subdirectories. We had missed gail.pc, for
2985 2008-09-24 Christian Dywan <christian@imendio.com>
2987 Bug 538782 – Make GtkMenu's arrow size themable
2989 * gtk/gtkmenu.c (gtk_menu_class_init), (gtk_menu_paint):
2990 Implement "arrow-scaling" style property in GtkMenu.
2992 2008-09-24 Christian Dywan <christian@imendio.com>
2994 Bug 408244 – add GtkDialog::content-area-spacing
2996 * gtk/gtkbox.c (gtk_box_init), (gtk_box_set_spacing),
2997 (_gtk_box_set_spacing_set), (_gtk_box_get_spacing_set):
2999 * gtk/gtkdialog.c (gtk_dialog_class_init), (update_spacings):
3000 Implement "content-area-spacing" style property in GtkDialog
3001 and internal helper _gtk_box_get_spacing_set in GtkBox.
3002 Patch by Tim Janik, Sven Herzberg and myself.
3004 2008-09-24 Christian Dywan <christian@imendio.com>
3006 Bug 541391 – Unfocussable Treeview swallows focus
3008 * gtk/gtktreeview.c (grab_focus_and_unset_draw_keyfocus),
3009 (gtk_tree_view_focus): Honor GTK_WIDGET_CAN_FOCUS properly
3011 2008-09-24 Denis Washington <denisw@svn.gnome.org>
3013 * gtk/gtkiconview.c: draw focus as a rectangle around the
3014 complete item, not just the text. (Bug #38254)
3016 2008-09-23 Michael Natterer <mitch@imendio.com>
3019 * gtk/gtksignal.[ch]: s/GtkType/GType/ and
3020 s/GtkSignalMarshaller/GSignalCMarshaller/.
3022 2008-09-23 Michael Natterer <mitch@imendio.com>
3024 * gdk/x11/gdkevents-x11.c (gdk_event_translate): remove unused
3025 variable and fix indentation.
3027 2008-09-23 Michael Natterer <mitch@imendio.com>
3034 * gtk/gtkoldeditable.h
3038 * gtk/gtktipsquery.h
3040 * gtk/gtktreeitem.h: get rid of GtkType and GTK_CHECK_FOO() also
3041 in all deprecated headers.
3043 2008-09-22 Matthias Clasen <mclasen@redhat.com>
3045 Bug 553135 – eog crash: assertion failed. Gtk error:
3046 shortcuts_remove_rows: code should not be reached
3048 * gtk/gtkfilechooserdefault.c: Disconnect from GtkFileSystem
3049 signals when we are destroyed, in order to avoid nasty surprises.
3050 Patch by Claudio Saavedra
3052 2008-09-22 Emmanuele Bassi <ebassi@linux.intel.com>
3054 Bug 552789 – Show size column in the search and recently used
3057 * gtk/gtkfilechooserdefault.c: Display the file size column
3058 when in OPERATION_MODE_SEARCH. This removes a stat() call
3059 and simplifies the code a little bit by changing the query
3060 for file informations for each search engine hit.
3062 2008-09-22 Michael Natterer <mitch@imendio.com>
3064 * gtk/gtksignal.[ch]
3069 * gtk/gtktreeitem.c: use G_CALLBACK and GCallback instead of
3070 GTK_SIGNAL_FUNC and GtkSignalFunc also in deprecated code.
3072 2008-09-22 Frederic Crozat <fcrozat@mandriva.com>
3074 * gtk/gtkfilesystem.c: use the correct gi18n header.
3077 2008-09-22 Michael Natterer <mitch@imendio.com>
3079 * gtk/gtktoolbar.[ch]: add "Deprecated: 2.4" to all the deprecated
3080 append(), prepend() and insert() functions and recommend to use
3081 gtk_toolbar_insert() instead. Use GCallback instead of
3082 GtkSignalFunc even in deprecated API.
3084 2008-09-20 Matthias Clasen <mclasen@redhat.com>
3086 * gtk/gtkfilechooserbutton.c (filter_model_visible_func): Don't
3089 2008-09-19 Owen Taylor <otaylor@redhat.com>
3091 Small cleanups to debug messages for GtkPlug/GtkSocket
3093 * gtk/gtksocket-x11.c: Fix debug message to say "Socket" not "Plug"
3094 * gtk/gtkplug-x11.c: Remove excess newlines from the ends of debug
3097 2008-09-19 Carlos Garnacho <carlos@imendio.com>
3099 Bug 83935 – GtkEntry's default invisible char should be U+25CF
3101 * gtk/gtkentry.c (find_invisible_char) (gtk_entry_init): Find a
3102 more suitable invisible char than '*' based on the used font.
3103 (gtk_entry_class_init) (gtk_entry_set_property)
3104 (gtk_entry_get_property): Add a "invisible-char-set" property.
3105 (gtk_entry_unset_invisible_char): New function, needed now that the
3106 default invisible char isn't fixed.
3109 * docs/reference/gtk/gtk-sections.txt: Add the new function.
3111 2008-09-19 Christian Persch <chpe@gnome.org>
3113 Bug 552837 – mem leak in gtkimmulticontext
3115 * gtk/gtkimmulticontext.c: (gtk_im_multicontext_get_slave): Plug mem
3118 2008-09-18 Emmanuele Bassi <ebassi@linux.intel.com>
3120 * gtk/gtkfilechooserdefault.c (settings_save): Save the size column
3121 visibility state with the rest of the FileChooser settings.
3123 2008-09-18 Emmanuele Bassi <ebassi@linux.intel.com>
3125 Bug 325095 – show a 'size' column
3127 * gtk/gtkfilechooserdefault.c:
3128 * gtk/gtkfilechooserprivate.h: Add a context menu item controlling
3129 the visibility of the file size column. This works only for the
3130 browse mode, and the column is not visible by default.
3132 * gtk/gtkfilechoosersettings.[ch]: Add a ShowSizeColumn key to the
3135 2008-09-18 Dominic Lachowicz <domlachowicz@gmail.com>
3137 * modules/engines/ms-windows/*: Revert most of previous patch, as
3138 it didn't work as expected; Some work toward #531086 - the new
3139 GtkTooltip widget doesn't theme properly on win32. Now, at least
3140 the background color seems okay
3142 2008-09-18 Dominic Lachowicz <domlachowicz@gmail.com>
3144 * modules/engines/ms-windows/*: MS Windows style should use
3145 pango_win32_font_description_from_logfont; Allows us to rip out a
3146 lot of potentially buggy code, and also get the font specification
3147 from the XP theme (#434987)
3149 2008-09-18 Matthias Clasen <mclasen@redhat.com>
3151 * configure.in: updated version number to 2.15.0 for development.
3153 * ChangeLog.pre-2-14: rotate ChangeLog
3155 === Branch for 2.14 ===