Unverified Commit da0fc03a authored by Victor Ananjevsky's avatar Victor Ananjevsky Committed by GitHub

Merge pull request #239 from v1cont/revert-238-rctl

Revert "add new branch for implementing extended actions on USR1 and USR2 sig…"
parents 9a2de1c2 5693a990
...@@ -60,9 +60,7 @@ YadNTabs *tabs; ...@@ -60,9 +60,7 @@ YadNTabs *tabs;
static void static void
sa_usr1 (gint sig) sa_usr1 (gint sig)
{ {
if (options.common_data.usr1_action) if (options.plug != -1)
run_command_async (options.common_data.usr1_action);
else if (options.plug != -1)
yad_print_result (); yad_print_result ();
else else
yad_exit (options.data.def_resp); yad_exit (options.data.def_resp);
...@@ -71,9 +69,7 @@ sa_usr1 (gint sig) ...@@ -71,9 +69,7 @@ sa_usr1 (gint sig)
static void static void
sa_usr2 (gint sig) sa_usr2 (gint sig)
{ {
if (options.common_data.usr2_action) if (options.plug != -1)
run_command_async (options.common_data.usr2_action);
else if (options.plug != -1)
gtk_main_quit (); gtk_main_quit ();
else else
yad_exit (YAD_RESPONSE_CANCEL); yad_exit (YAD_RESPONSE_CANCEL);
......
...@@ -236,12 +236,6 @@ static GOptionEntry common_options[] = { ...@@ -236,12 +236,6 @@ static GOptionEntry common_options[] = {
N_("Disable search in text and html dialogs"), NULL }, N_("Disable search in text and html dialogs"), NULL },
{ "file-op", 0, 0, G_OPTION_ARG_NONE, &options.common_data.file_op, { "file-op", 0, 0, G_OPTION_ARG_NONE, &options.common_data.file_op,
N_("Enable file operations"), NULL }, N_("Enable file operations"), NULL },
#ifndef G_OS_WIN32
{ "usr1-action", 0, 0, G_OPTION_ARG_STRING, &options.common_data.usr1_action,
N_("Action for USR1 signal"), N_("COMMAND") },
{ "usr2-action", 0, 0, G_OPTION_ARG_STRING, &options.common_data.usr2_action,
N_("Action for USR2 signal"), N_("COMMAND") },
#endif
#if GLIB_CHECK_VERSION(2,30,0) #if GLIB_CHECK_VERSION(2,30,0)
{ "iec-format", 0, G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_CALLBACK, set_size_format, { "iec-format", 0, G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_CALLBACK, set_size_format,
N_("Use IEC (base 1024) units with for size values"), NULL }, N_("Use IEC (base 1024) units with for size values"), NULL },
...@@ -1690,10 +1684,6 @@ yad_options_init (void) ...@@ -1690,10 +1684,6 @@ yad_options_init (void)
options.common_data.scroll = FALSE; options.common_data.scroll = FALSE;
options.common_data.enable_search = TRUE; options.common_data.enable_search = TRUE;
options.common_data.file_op = FALSE; options.common_data.file_op = FALSE;
#ifndef G_OS_WIN32
options.common_data.usr1_action = NULL;
options.common_data.usr2_action = NULL;
#endif
#if GLIB_CHECK_VERSION(2,30,0) #if GLIB_CHECK_VERSION(2,30,0)
options.common_data.size_fmt = G_FORMAT_SIZE_DEFAULT; options.common_data.size_fmt = G_FORMAT_SIZE_DEFAULT;
#endif #endif
......
...@@ -536,10 +536,6 @@ typedef struct { ...@@ -536,10 +536,6 @@ typedef struct {
gboolean enable_search; gboolean enable_search;
gboolean file_op; gboolean file_op;
gboolean scroll; gboolean scroll;
#ifndef G_OS_WIN32
gchar *usr1_action;
gchar *usr2_action;
#endif
#if GLIB_CHECK_VERSION(2,30,0) #if GLIB_CHECK_VERSION(2,30,0)
GFormatSizeFlags size_fmt; GFormatSizeFlags size_fmt;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment