Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
yad
Commits
5693a990
Unverified
Commit
5693a990
authored
May 31, 2023
by
Victor Ananjevsky
Committed by
GitHub
May 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "add new branch for implementing extended actions on USR1 and USR2 sig…"
parent
9a2de1c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
20 deletions
+2
-20
main.c
src/main.c
+2
-6
option.c
src/option.c
+0
-10
yad.h
src/yad.h
+0
-4
No files found.
src/main.c
View file @
5693a990
...
...
@@ -60,9 +60,7 @@ YadNTabs *tabs;
static
void
sa_usr1
(
gint
sig
)
{
if
(
options
.
common_data
.
usr1_action
)
run_command_async
(
options
.
common_data
.
usr1_action
);
else
if
(
options
.
plug
!=
-
1
)
if
(
options
.
plug
!=
-
1
)
yad_print_result
();
else
yad_exit
(
options
.
data
.
def_resp
);
...
...
@@ -71,9 +69,7 @@ sa_usr1 (gint sig)
static
void
sa_usr2
(
gint
sig
)
{
if
(
options
.
common_data
.
usr2_action
)
run_command_async
(
options
.
common_data
.
usr2_action
);
else
if
(
options
.
plug
!=
-
1
)
if
(
options
.
plug
!=
-
1
)
gtk_main_quit
();
else
yad_exit
(
YAD_RESPONSE_CANCEL
);
...
...
src/option.c
View file @
5693a990
...
...
@@ -236,12 +236,6 @@ static GOptionEntry common_options[] = {
N_
(
"Disable search in text and html dialogs"
),
NULL
},
{
"file-op"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
options
.
common_data
.
file_op
,
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)
{
"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
},
...
...
@@ -1690,10 +1684,6 @@ yad_options_init (void)
options
.
common_data
.
scroll
=
FALSE
;
options
.
common_data
.
enable_search
=
TRUE
;
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)
options
.
common_data
.
size_fmt
=
G_FORMAT_SIZE_DEFAULT
;
#endif
...
...
src/yad.h
View file @
5693a990
...
...
@@ -536,10 +536,6 @@ typedef struct {
gboolean
enable_search
;
gboolean
file_op
;
gboolean
scroll
;
#ifndef G_OS_WIN32
gchar
*
usr1_action
;
gchar
*
usr2_action
;
#endif
#if GLIB_CHECK_VERSION(2,30,0)
GFormatSizeFlags
size_fmt
;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment