mirror of
https://github.com/elementary/gala.git
synced 2024-12-18 23:02:14 +03:00
Use panel-main-menu-action
to open applications menu (#2135)
This commit is contained in:
parent
bb04c32aaf
commit
1e8c8802c5
@ -410,10 +410,12 @@ namespace Gala {
|
|||||||
private void launch_action (string action_key) {
|
private void launch_action (string action_key) {
|
||||||
try {
|
try {
|
||||||
var action = behavior_settings.get_string (action_key);
|
var action = behavior_settings.get_string (action_key);
|
||||||
if (action != null && action != "") {
|
if (action != null) {
|
||||||
Process.spawn_command_line_async (action);
|
Process.spawn_command_line_async (action);
|
||||||
}
|
}
|
||||||
} catch (Error e) { warning (e.message); }
|
} catch (Error e) {
|
||||||
|
warning (e.message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void on_monitors_changed () {
|
private void on_monitors_changed () {
|
||||||
@ -1045,13 +1047,7 @@ namespace Gala {
|
|||||||
current.@delete (Gtk.get_current_event_time ());
|
current.@delete (Gtk.get_current_event_time ());
|
||||||
break;
|
break;
|
||||||
case ActionType.OPEN_LAUNCHER:
|
case ActionType.OPEN_LAUNCHER:
|
||||||
try {
|
launch_action ("panel-main-menu-action");
|
||||||
Process.spawn_command_line_async (
|
|
||||||
behavior_settings.get_string ("panel-main-menu-action")
|
|
||||||
);
|
|
||||||
} catch (Error e) {
|
|
||||||
warning (e.message);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case ActionType.WINDOW_OVERVIEW:
|
case ActionType.WINDOW_OVERVIEW:
|
||||||
if (window_overview == null) {
|
if (window_overview == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user