NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1985 most downloaded on crates.io
Rust bindings for the GDK X11 library
Latest stable
0.19.0
Last release 2 months ago
08 Sep 2026
Ships fairly regularly
a new release about every 6 months
Some releases are documented
notes for 5 of 9 stable releases
1 version withdrawn
withdrawn after publishing
6 years old
10 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Update rust version to 1.70 by @GuillaumeGomez in https://github.com/gtk-rs/gtk3-rs/pull/831
anyhow dependency by @Kijewski in https://github.com/gtk-rs/gtk3-rs/pull/830GtkWindow:type property by @kelnos in https://github.com/gtk-rs/gtk3-rs/pull/889Full Changelog: https://github.com/gtk-rs/gtk3-rs/compare/0.18.1...0.19.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
gtk::CellEditablegtk::CellLayoutgtk::Editablegtk::Gridgtk::ListStoregtk::Orientablegtk::Scrollablegtk::TreeDragDestgtk::TreeDragSourcegtk::TreeModelFiltergtk::TreeModelSortgtk::TreeStoregtk::MessageDialog::with_markup(), a constructor whose message is
interpreted as Pango markupgtk::Clipboard::connect_owner_change()gtk::EntryExt::connect_toggle_direction() and
gtk::EntryExt::emit_toggle_direction()atk::AtkObjectExt::accessible_help_text(),
set_accessible_help_text(),
connect_accessible_help_text_notify(), and
connect_accessible_id_notify()accessible_id() and accessible_help_text() on the builders for
gtk::HeaderBarAccessible, gtk::PlugAccessible, and
gtk::SocketAccessiblegtk::EventControllerKey,
gtk::EventControllerMotion, gtk::EventControllerScroll,
gtk::FileChooserWidgetAccessible, gtk::GestureStylus,
gtk::Settings, and gtk::ShortcutLabel.atk's v2_52 adds atk::AtkObjectExt::help_text(),
set_help_text(), connect_attribute_changed(), and
atk::DocumentExt::connect_document_attribute_changed().gtk's gio_v2_80 adds a version() method to
gtk::Application's builder.gtk's v3_22 enables gtk::FileChooserExtManual::add_choice(),
which was previously unreachable because no crate defined the
feature.atk::Role has a new Switch variant.*ExtManual and subclass *ImplExt traits are no
longer sealed with a private sealed::Sealed supertrait, matching
the generated *Ext traits. They still cannot be implemented
downstream, as the blanket impls already prevent it. *ImplExt
traits are now declared as FooImplExt: FooImpl, so their
parent_*() methods are reached through the blanket impl rather than
as supertrait methods. Code that uses gtk::subclass::prelude::* is
unaffected, but code that imports subclassing traits individually
must also import FooImplExt to call parent_*().gtk::Container: ContainerImpl can now declare and implement
child properties:
child_properties()child_property()set_child_property()gtk::TreeView: this used to be subclassable, but no vfuncs were
overridable; now all are.gtk::Widget: WidgetImpl gained overrides for many
previously-missing vfuncs:
can_activate_accel()event()focus()focus_in_event()focus_out_event()grab_broken_event()grab_focus()grab_notify()hide()hierarchy_changed()key_press_event()key_release_event()keynav_failed()map_event()mnemonic_activate()move_focus()parent_set()popup_menu()preferred_height_and_baseline_for_width()property_notify_event()proximity_in_event()proximity_out_event()query_tooltip()queue_draw_region()screen_changed()selection_clear_event()selection_get()selection_notify_event()selection_received()selection_request_event()show()show_all()show_help()state_flags_changed()style_updated()touch_event()unmap_event()visibility_notify_event()WidgetClassSubclassExt::set_accessible_type() and
WidgetClassSubclassExt::set_accessible_role() allow a subclass
to declare the accessibility type and role it presents.WidgetClassSubclassExt::enable_baseline_support() opts a
subclass into baseline support. Subclasses must call this in
order for WidgetImpl::preferred_height_and_baseline_for_width()
to be used instead of the non-baseline vfuncs.gtk-rs-core crates. Applications
using gtk3-rs 0.18 or below must update any references to those
crates.atk::Role::PushButton is now atk::Role::Button, following the
rename in ATK itself. The value is unchanged, and atk-sys still
exports ATK_ROLE_PUSH_BUTTON alongside ATK_ROLE_BUTTON.LastDefined variants have been removed from atk::RelationType,
atk::Role, atk::TextAttribute, and atk::ValueType, along with
the corresponding ATK_*_LAST_DEFINED constants in atk-sys. These
are sentinels marking the end of the value range, and aren't useful in
Rust code.gtk::Stack must now implement
gtk::subclass::prelude::StackImpl. Its IsSubclassable impl was
bounded on ContainerImpl, so implementing StackImpl was documented
but not actually enforced.Impl trait now requires the implementing type to
name the matching class in its glib::wrapper! @extends list. For
example, ContainerImpl is now declared as `ContainerImpl: WidgetImpl
. A subclass whose @extends`
list skips an ancestor still compiled before, but no longer does;
add the missing types to it.gtk::Application's builder no longer has an action_group() method.
GIO now marks the action-group property deprecated since 2.32, which
is below the GIO version gtk3-rs requires, so gir no longer
generates it. Use the gio::prelude::ActionMapExt methods on the
built gtk::Application instead.gtk::RecentInfo::added(), gtk::RecentInfo::modified(), and
gtk::RecentInfo::visited() now return libc::time_t instead of
libc::c_long, as does the last element of the tuple returned by
gtk::RecentInfo::application_info(). The two are the same type on
64-bit Linux and on macOS, but differ on Windows and on 32-bit targets
with a 64-bit time_t, where the previous signature was wrong.gtk::Widget::can_activate_accel() now takes a SignalId for the
signal_id argument instead of u32.gtk::Widget::connect_can_activate_accel() now
takes a SignalId for the signal_id argument instead of a u32.can_activate_accel() and connect_can_activate_accel() have moved
from gtk::prelude::WidgetExt to gtk::prelude::WidgetExtManual.
Code using gtk::prelude::* is unaffected, but code that imports
WidgetExt by name, or that calls either method through it, must be
updated.gtk::WindowExt::type_() has been removed, because it awkwardly
conflicts with glib::ObjectExt::type_(). Use
gtk::WindowExt::window_type() instead.MessageDialogExt has been renamed to
MessageDialogExtManual, and its methods now match the C functions
they call: set_secondary_markup() is now
format_secondary_markup(), and set_secondary_text() is now
format_secondary_text(). It previously shared its name with the
generated MessageDialogExt while being re-exported as
gtk::MessageDialogExt instead of through the prelude, so importing
it silently replaced the generated trait. Both are now in the
prelude. Note that format_secondary_text() also clears
secondary-use-markup, which the generated set_secondary_text()
property setter does not.atk-sys, gdk-sys,
and gdkx11-sys are no longer pointers. For example,
GdkFrameClockClass is now _GdkFrameClockClass rather than *mut _GdkFrameClockClass.gdkx11-sys: the optional cairo feature is gone. cairo-sys is
now an unconditional dependency, and v3_24_2 no longer enables it.Nothing published for this version
Update crate versions to 0.18.0 by @GuillaumeGomez in https://github.com/gtk-rs/gtk3-rs/pull/807
--generate-link-to-definition option when building on docs.rs by @GuillaumeGomez in https://github.com/gtk-rs/gtk3-rs/pull/829Full Changelog: https://github.com/gtk-rs/gtk3-rs/compare/0.17.1...0.18.0
examples: Adapt to glib-build-tools breaking change by @RealKC in https://github.com/gtk-rs/gtk3-rs/pull/798
Object<T>::as_mut() without unsafe, and a couple other small things by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/16cargo fmt by @GuillaumeGomez in https://github.com/gtk-rs/gtk3-rs/pull/22black by @MarijnS95 in https://github.com/gtk-rs/gtk3-rs/pull/176Settings::bind_with_mapping() binding by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/210Object::new_subclass() function by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/219glib-compile-resources wrapper, and macro to include by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/261GBoxed not require importing BoxedType by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/275enter_notify_event and leave_notify_event to WidgetImpl by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/334#[object_subclass] proc macro. by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/335type_data() and get_type() to new unsafe trait by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/338drag-motion and drag-drop signals return bool instead of Inhibit by @SolraBizna in https://github.com/gtk-rs/gtk3-rs/pull/361Gir.toml files instead of using "-d" by default on gir by @GuillaumeGomez in https://github.com/gtk-rs/gtk3-rs/pull/366DBusProxy as send+sync and regenerate by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/422WidgetClassSubclassExt::{css_name,set_css_name} by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/476glib::StaticType is in scope in the gener… by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/482components to install clippy by @MarijnS95 in https://github.com/gtk-rs/gtk3-rs/pull/485From and TryFrom implementations for working with Char by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/494gtk_container_class_handle_border_width() by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/497ButtonImpl depend on BinImpl by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/629impl Trait instead of named types by @MarijnS95 in https://github.com/gtk-rs/gtk3-rs/pull/547Widget) by @GuillaumeGomez in https://github.com/gtk-rs/gtk3-rs/pull/669#[must_use] usage by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/687impl_ to imp by @Hofer-Julian in https://github.com/gtk-rs/gtk3-rs/pull/694gdkwayland pkg name in README.md snippets by @Jaakkonen in https://github.com/gtk-rs/gtk3-rs/pull/696Foo::from_instance(foo) with foo.imp() by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/715u32 as underlying type for the stock-size property of CellRendererPixbuf by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/722gdk::Geometry by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/721Send closures for GIO-style async functions by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/725Atk.Role to manual to generate some more bindings by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/731glib-build-tools by @RealKC in https://github.com/gtk-rs/gtk3-rs/pull/749unsafe-assume-initialized feature by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/762gdk_event_get_state by @ids1024 in https://github.com/gtk-rs/gtk3-rs/pull/769imp.instance() to imp.obj() by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/784gio::SimpleAction constructor took … by @sdroege in https://github.com/gtk-rs/gtk3-rs/pull/797Full Changelog: https://github.com/gtk-rs/gtk3-rs/commits/0.17.0
Merge pull request #780 from GuillaumeGomez/0-16-release
Merge pull request #780 from GuillaumeGomez/0-16-release
Ready crates for 0.16 release
``` Guillaume Gomez (1): Fix windows CI
Guillaume Gomez (1):
Fix windows CI
Paolo Borelli (3):
subclass support for GtkEntry
Update gir to the latest 0.15 branch revision
Regenerate
Sebastian Dröge (5):
Add rustfmt.toml to allow some editors to auto-format the code on save
gdkwayland: Fix new clippy warning
gtk: Fix new clippy warning
Update versions to 0.15.5
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.