-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
gio: Add subclassing support to AppLaunchContext & FileMonitor #1012
base: main
Are you sure you want to change the base?
Conversation
|
2fb69cd
to
ff2f049
Compare
ff2f049
to
d191b45
Compare
self.parent_to_tokens() | ||
} | ||
|
||
fn from_tokens(tokens: &[String], version: i32) -> Result<Icon, Error> { |
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.
This and above is a StrV
if you want to avoid all the copying
use crate::{subclass::prelude::*, File, FileMonitor, FileMonitorEvent}; | ||
use glib::{prelude::*, translate::*}; | ||
|
||
pub trait FileMonitorImpl: ObjectImpl { |
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.
Is this actually useful?
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.
Today it is not for sure. My intention is to cover up whatever APIs we can manually to have a better understanding of what is needed for an automatically generated of the subclassing code in the future
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.
I mean, is this actually intended to be subclasses? The API exposed here looks quite incomplete for implementing a new file monitor
let instance = &*(ptr as *mut T::Instance); | ||
let imp = instance.imp(); | ||
|
||
imp.launch_failed(&GString::from_glib_borrow(startup_id)) |
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.
Should maybe be a &GStr
?
No description provided.