-
-
Notifications
You must be signed in to change notification settings - Fork 131
gio: Allow subclassing DBusProxy #1832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
gio/src/subclass/dbus_proxy.rs
Outdated
+ InitableImpl | ||
+ ObjectSubclass<Type: IsA<DBusProxy>> | ||
{ | ||
fn g_properties_changed( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the g_ prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's how it's called though. The signal is g-properties-changed
for whatever reason :)
gio/src/subclass/dbus_proxy.rs
Outdated
sender_name: Option<&str>, | ||
signal_name: &str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sender_name: Option<&str>, | |
signal_name: &str, | |
sender_name: Option<&glib::GStr>, | |
signal_name: &glib::GStr, |
maybe so we don't have to do heap allocations for all the NUL-termination?
Can you add an example here? |
351609b
to
4fc1bed
Compare
skip-checks: true
type ParentType = DBusProxy; | ||
} | ||
|
||
#[derived_properties] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[derived_properties] | |
#[glib::derived_properties] |
No description provided.