summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-09-15 12:42:56 +0200
committerinfirit <[email protected]>2015-09-15 12:42:56 +0200
commit437b085f123f3c019bca2481000e936ee87e7c31 (patch)
treec479a7eaf8c8540efe0fd4040998adc8690db71d /src
parentb04c37a7641b474ca066627da27d42e6134c4e17 (diff)
downloadmarco-437b085f123f3c019bca2481000e936ee87e7c31.tar.bz2
marco-437b085f123f3c019bca2481000e936ee87e7c31.tar.xz
Remove unused function handle_run_terminal
Diffstat (limited to 'src')
-rw-r--r--src/core/keybindings.c37
-rw-r--r--src/include/all-keybindings.h2
2 files changed, 0 insertions, 39 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 9e602a91..73966a80 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -3421,40 +3421,3 @@ meta_set_keybindings_disabled (gboolean setting)
meta_topic (META_DEBUG_KEYBINDINGS,
"Keybindings %s\n", all_bindings_disabled ? "disabled" : "enabled");
}
-
-static void
-handle_run_terminal (MetaDisplay *display,
- MetaScreen *screen,
- MetaWindow *window,
- XEvent *event,
- MetaKeyBinding *binding)
-{
- const char *command;
- GError *err;
-
- command = meta_prefs_get_terminal_command ();
-
- if (command == NULL)
- {
- char *s;
-
- meta_topic (META_DEBUG_KEYBINDINGS,
- "No terminal command to run in response to "
- "keybinding press\n");
-
- s = g_strdup_printf (_("No terminal command has been defined.\n"));
- error_on_command (-1, NULL, s, screen->screen_name, event->xkey.time);
- g_free (s);
-
- return;
- }
-
- err = NULL;
- if (!meta_spawn_command_line_async_on_screen (command, screen, &err))
- {
- error_on_command (-1, command, err->message, screen->screen_name,
- event->xkey.time);
-
- g_error_free (err);
- }
-}
diff --git a/src/include/all-keybindings.h b/src/include/all-keybindings.h
index a14777e9..5773a810 100644
--- a/src/include/all-keybindings.h
+++ b/src/include/all-keybindings.h
@@ -186,8 +186,6 @@ keybind (run-command-32, handle_run_command, 31, 0)
keybind (run-command-screenshot, handle_run_command, 32, 0)
keybind (run-command-window-screenshot, handle_run_command, 33, 0)
-keybind (run-command-terminal, handle_run_terminal, 0, 0)
-
/* No description because this is undocumented */
keybind (set-spew-mark, handle_set_spew_mark, 0, 0)