parent
5b4baee9fa
commit
997e013d7e
|
|
@ -523,10 +523,18 @@ pub const Surface = extern struct {
|
||||||
priv.font_size_request = font_size_ptr;
|
priv.font_size_request = font_size_ptr;
|
||||||
self.as(gobject.Object).notifyByPspec(properties.@"font-size-request".impl.param_spec);
|
self.as(gobject.Object).notifyByPspec(properties.@"font-size-request".impl.param_spec);
|
||||||
|
|
||||||
// Setup our pwd
|
// Remainder needs a config. If there is no config we just assume
|
||||||
if (parent.rt_surface.surface.getPwd()) |pwd| {
|
// we aren't inheriting any of these values.
|
||||||
priv.pwd = glib.ext.dupeZ(u8, pwd);
|
if (priv.config) |config_obj| {
|
||||||
self.as(gobject.Object).notifyByPspec(properties.pwd.impl.param_spec);
|
const config = config_obj.get();
|
||||||
|
|
||||||
|
// Setup our pwd if configured to inherit
|
||||||
|
if (config.@"window-inherit-working-directory") {
|
||||||
|
if (parent.rt_surface.surface.getPwd()) |pwd| {
|
||||||
|
priv.pwd = glib.ext.dupeZ(u8, pwd);
|
||||||
|
self.as(gobject.Object).notifyByPspec(properties.pwd.impl.param_spec);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue