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
dfce81c3
Commit
dfce81c3
authored
Jun 17, 2024
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some code cleanup
parent
5e037957
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
option.c
src/option.c
+4
-4
util.c
src/util.c
+4
-2
yad.h
src/yad.h
+1
-1
No files found.
src/option.c
View file @
dfce81c3
...
...
@@ -1015,12 +1015,12 @@ add_file_filter (const gchar * option_name, const gchar * value, gpointer data,
for
(
i
=
0
;
value
[
i
]
!=
'\0'
;
i
++
)
{
if
(
value
[
i
]
==
'|'
)
break
;
{
name
=
g_strstrip
(
g_strndup
(
value
,
i
));
break
;
}
}
if
(
value
[
i
]
==
'|'
)
name
=
g_strstrip
(
g_strndup
(
value
,
i
));
if
(
name
)
{
gtk_file_filter_set_name
(
filter
,
name
);
...
...
src/util.c
View file @
dfce81c3
...
...
@@ -56,7 +56,7 @@ const YadStock yad_stock_items[] = {
};
gboolean
stock_lookup
(
gchar
*
key
,
YadStock
*
it
)
stock_lookup
(
const
gchar
*
key
,
YadStock
*
it
)
{
gint
i
;
gboolean
found
=
FALSE
;
...
...
@@ -859,7 +859,9 @@ create_search_bar ()
{
YadSearchBar
*
sb
;
GtkWidget
*
b
;
#ifndef STANDALONE
gint
e_width
=
-
1
;
#endif
sb
=
g_new0
(
YadSearchBar
,
1
);
sb
->
new_search
=
TRUE
;
...
...
@@ -876,9 +878,9 @@ create_search_bar ()
#ifndef STANDALONE
e_width
=
g_settings_get_int
(
settings
,
"search-width"
);
#endif
if
(
e_width
>
0
)
gtk_widget_set_size_request
(
sb
->
entry
,
e_width
,
-
1
);
#endif
sb
->
next
=
gtk_button_new_from_icon_name
(
"go-down"
,
GTK_ICON_SIZE_BUTTON
);
gtk_widget_set_focus_on_click
(
sb
->
next
,
FALSE
);
...
...
src/yad.h
View file @
dfce81c3
...
...
@@ -719,7 +719,7 @@ gchar **split_arg (const gchar *str);
YadNTabs
*
get_tabs
(
key_t
key
,
gboolean
create
);
gboolean
stock_lookup
(
gchar
*
key
,
YadStock
*
it
);
gboolean
stock_lookup
(
const
gchar
*
key
,
YadStock
*
it
);
GtkWidget
*
get_label
(
gchar
*
str
,
guint
border
,
GtkWidget
*
w
);
...
...
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