mirror of
https://github.com/elementary/gala.git
synced 2024-12-23 17:23:01 +03:00
RDNN behavior schema (#2034)
This commit is contained in:
parent
7058399ddb
commit
320f1fa651
@ -30,7 +30,7 @@
|
|||||||
</key>
|
</key>
|
||||||
</schema>
|
</schema>
|
||||||
|
|
||||||
<schema path="/org/pantheon/desktop/gala/behavior/" id="org.pantheon.desktop.gala.behavior">
|
<schema path="/io/elementary/desktop/wm/behavior/" id="io.elementary.desktop.wm.behavior">
|
||||||
<key enum="GalaActionType" name="hotcorner-topleft">
|
<key enum="GalaActionType" name="hotcorner-topleft">
|
||||||
<default>"none"</default>
|
<default>"none"</default>
|
||||||
<summary>Action for the top left corner</summary>
|
<summary>Action for the top left corner</summary>
|
||||||
@ -86,9 +86,6 @@
|
|||||||
<summary>Automatically move fullscreened windows to a new workspace</summary>
|
<summary>Automatically move fullscreened windows to a new workspace</summary>
|
||||||
<description></description>
|
<description></description>
|
||||||
</key>
|
</key>
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema path="/io/elementary/desktop/wm/behavior/" id="io.elementary.desktop.wm.behavior">
|
|
||||||
<key type="b" name="enable-hotcorners-in-fullscreen">
|
<key type="b" name="enable-hotcorners-in-fullscreen">
|
||||||
<default>false</default>
|
<default>false</default>
|
||||||
<summary>Whether hotcorners should be enabled when fullscreen window is opened</summary>
|
<summary>Whether hotcorners should be enabled when fullscreen window is opened</summary>
|
||||||
|
@ -36,7 +36,6 @@ conf.set_quoted('PKGDATADIR', pkgdata_dir)
|
|||||||
conf.set_quoted('PLUGINDIR', plugins_dir)
|
conf.set_quoted('PLUGINDIR', plugins_dir)
|
||||||
conf.set_quoted('RESOURCEPATH', '/org/pantheon/desktop/gala')
|
conf.set_quoted('RESOURCEPATH', '/org/pantheon/desktop/gala')
|
||||||
conf.set_quoted('VERSION', gala_version)
|
conf.set_quoted('VERSION', gala_version)
|
||||||
conf.set_quoted('SCHEMA', 'org.pantheon.desktop.gala')
|
|
||||||
config_h = configure_file(
|
config_h = configure_file(
|
||||||
output: 'config.h',
|
output: 'config.h',
|
||||||
configuration: conf
|
configuration: conf
|
||||||
|
@ -37,7 +37,7 @@ namespace Gala {
|
|||||||
rects = {rect};
|
rects = {rect};
|
||||||
break;
|
break;
|
||||||
case InputArea.DEFAULT:
|
case InputArea.DEFAULT:
|
||||||
var settings = new GLib.Settings (Config.SCHEMA + ".behavior");
|
var settings = new GLib.Settings ("io.elementary.desktop.wm.behavior");
|
||||||
|
|
||||||
// if ActionType is NONE make it 0 sized
|
// if ActionType is NONE make it 0 sized
|
||||||
ushort tl_size = (settings.get_enum ("hotcorner-topleft") != ActionType.NONE ? 1 : 0);
|
ushort tl_size = (settings.get_enum ("hotcorner-topleft") != ActionType.NONE ? 1 : 0);
|
||||||
|
@ -58,7 +58,7 @@ namespace Gala {
|
|||||||
}
|
}
|
||||||
|
|
||||||
construct {
|
construct {
|
||||||
gala_behavior_settings = new GLib.Settings ("org.pantheon.desktop.gala.behavior");
|
gala_behavior_settings = new GLib.Settings ("io.elementary.desktop.wm.behavior");
|
||||||
style_manager = Drawing.StyleManager.get_instance ();
|
style_manager = Drawing.StyleManager.get_instance ();
|
||||||
|
|
||||||
visible = false;
|
visible = false;
|
||||||
|
@ -134,7 +134,7 @@ namespace Gala {
|
|||||||
|
|
||||||
animations_settings = new GLib.Settings ("io.elementary.desktop.wm.animations");
|
animations_settings = new GLib.Settings ("io.elementary.desktop.wm.animations");
|
||||||
animations_settings.bind ("enable-animations", this, "enable-animations", GLib.SettingsBindFlags.GET);
|
animations_settings.bind ("enable-animations", this, "enable-animations", GLib.SettingsBindFlags.GET);
|
||||||
behavior_settings = new GLib.Settings (Config.SCHEMA + ".behavior");
|
behavior_settings = new GLib.Settings ("io.elementary.desktop.wm.behavior");
|
||||||
new_behavior_settings = new GLib.Settings ("io.elementary.desktop.wm.behavior");
|
new_behavior_settings = new GLib.Settings ("io.elementary.desktop.wm.behavior");
|
||||||
enable_animations = animations_settings.get_boolean ("enable-animations");
|
enable_animations = animations_settings.get_boolean ("enable-animations");
|
||||||
|
|
||||||
|
@ -24,6 +24,5 @@ namespace Config
|
|||||||
public const string PKGDATADIR;
|
public const string PKGDATADIR;
|
||||||
public const string VERSION;
|
public const string VERSION;
|
||||||
public const string PLUGINDIR;
|
public const string PLUGINDIR;
|
||||||
public const string SCHEMA;
|
|
||||||
public const string RESOURCEPATH;
|
public const string RESOURCEPATH;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user