Skip to content

Commit c11345e

Browse files
Rename conflicting traits names
Fixes #1375
1 parent a71258f commit c11345e

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

gdk4/Gir.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ status = "generate"
224224

225225
[[object]]
226226
name = "Gdk.AppLaunchContext"
227+
trait_name = "GdkAppLaunchContextExt" # Conflicts with GAppLaunchContext
227228
status = "generate"
228229
generate_builder = false
229230
final_type = false

gdk4/src/auto/app_launch_context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl AppLaunchContext {
1919
pub const NONE: Option<&'static AppLaunchContext> = None;
2020
}
2121

22-
pub trait AppLaunchContextExt: 'static {
22+
pub trait GdkAppLaunchContextExt: 'static {
2323
#[doc(alias = "gdk_app_launch_context_get_display")]
2424
#[doc(alias = "get_display")]
2525
fn display(&self) -> Display;
@@ -37,7 +37,7 @@ pub trait AppLaunchContextExt: 'static {
3737
fn set_timestamp(&self, timestamp: u32);
3838
}
3939

40-
impl<O: IsA<AppLaunchContext>> AppLaunchContextExt for O {
40+
impl<O: IsA<AppLaunchContext>> GdkAppLaunchContextExt for O {
4141
fn display(&self) -> Display {
4242
unsafe {
4343
from_glib_none(ffi::gdk_app_launch_context_get_display(

gdk4/src/auto/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pub mod functions;
215215

216216
#[doc(hidden)]
217217
pub mod traits {
218-
pub use super::app_launch_context::AppLaunchContextExt;
218+
pub use super::app_launch_context::GdkAppLaunchContextExt;
219219
pub use super::content_provider::ContentProviderExt;
220220
pub use super::device::DeviceExt;
221221
pub use super::device_pad::DevicePadExt;

gtk4/Gir.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ generate = [
156156
"Gtk.MediaFile",
157157
"Gtk.MessageType",
158158
"Gtk.MnemonicAction",
159-
"Gtk.MountOperation",
160159
"Gtk.MovementStep",
161160
"Gtk.Native",
162161
"Gtk.NaturalWrapMode",
@@ -1599,6 +1598,11 @@ name = "Gtk.MnemonicTrigger"
15991598
status = "manual" # to make use of gdk::Key # to make use of gdk::Key
16001599
generate_builder = false
16011600

1601+
[[object]]
1602+
name = "Gtk.MountOperation"
1603+
status = "generate"
1604+
trait_name = "GtkMountOperationExt" # Conflicts with GMountOperation
1605+
16021606
[[object]]
16031607
name = "Gtk.MultiFilter"
16041608
status = "generate"

gtk4/src/auto/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ pub mod traits {
13121312
pub use super::list_item::ListItemExt;
13131313
pub use super::media_file::MediaFileExt;
13141314
pub use super::media_stream::MediaStreamExt;
1315-
pub use super::mount_operation::MountOperationExt;
1315+
pub use super::mount_operation::GtkMountOperationExt;
13161316
pub use super::multi_filter::MultiFilterExt;
13171317
pub use super::native::NativeExt;
13181318
pub use super::native_dialog::NativeDialogExt;

gtk4/src/auto/mount_operation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl MountOperationBuilder {
142142
}
143143
}
144144

145-
pub trait MountOperationExt: 'static {
145+
pub trait GtkMountOperationExt: 'static {
146146
#[doc(alias = "gtk_mount_operation_get_display")]
147147
#[doc(alias = "get_display")]
148148
fn display(&self) -> gdk::Display;
@@ -170,7 +170,7 @@ pub trait MountOperationExt: 'static {
170170
fn connect_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
171171
}
172172

173-
impl<O: IsA<MountOperation>> MountOperationExt for O {
173+
impl<O: IsA<MountOperation>> GtkMountOperationExt for O {
174174
fn display(&self) -> gdk::Display {
175175
unsafe {
176176
from_glib_none(ffi::gtk_mount_operation_get_display(

0 commit comments

Comments
 (0)