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
670b2423
Commit
670b2423
authored
Apr 28, 2022
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recreate file filters in open picture dialog since they are destroying with GtkFileChooser
parent
d65da691
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
picture.c
src/picture.c
+7
-14
No files found.
src/picture.c
View file @
670b2423
...
...
@@ -277,23 +277,16 @@ static void
open_file_cb
(
GtkWidget
*
w
,
gpointer
d
)
{
GtkWidget
*
dlg
;
static
GtkFileFilter
*
imgf
=
NULL
;
static
GtkFileFilter
*
allf
=
NULL
;
GtkFileFilter
*
imgf
,
*
allf
;
static
gchar
*
dir
=
NULL
;
if
(
!
imgf
)
{
imgf
=
gtk_file_filter_new
();
gtk_file_filter_set_name
(
imgf
,
_
(
"Images"
));
gtk_file_filter_add_pixbuf_formats
(
imgf
);
}
imgf
=
gtk_file_filter_new
();
gtk_file_filter_set_name
(
imgf
,
_
(
"Images"
));
gtk_file_filter_add_pixbuf_formats
(
imgf
);
if
(
!
allf
)
{
allf
=
gtk_file_filter_new
();
gtk_file_filter_set_name
(
allf
,
_
(
"All files"
));
gtk_file_filter_add_pattern
(
allf
,
"*"
);
}
allf
=
gtk_file_filter_new
();
gtk_file_filter_set_name
(
allf
,
_
(
"All files"
));
gtk_file_filter_add_pattern
(
allf
,
"*"
);
dlg
=
gtk_file_chooser_dialog_new
(
_
(
"YAD - Select Image(s)"
),
GTK_WINDOW
(
gtk_widget_get_toplevel
(
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