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
15b5b153
Commit
15b5b153
authored
Mar 03, 2018
by
Victor Ananjesky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use icon names instead of stocks in entry icons
parent
03ded931
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
form.c
src/form.c
+2
-2
html.c
src/html.c
+1
-1
No files found.
src/form.c
View file @
15b5b153
...
...
@@ -936,7 +936,7 @@ form_create_widget (GtkWidget * dlg)
case
YAD_FIELD_MDIR
:
e
=
gtk_entry_new
();
gtk_widget_set_name
(
e
,
"yad-form-entry"
);
gtk_entry_set_icon_from_
stock
(
GTK_ENTRY
(
e
),
GTK_ENTRY_ICON_SECONDARY
,
"gtk-directory
"
);
gtk_entry_set_icon_from_
icon_name
(
GTK_ENTRY
(
e
),
GTK_ENTRY_ICON_SECONDARY
,
"document-open
"
);
g_signal_connect
(
G_OBJECT
(
e
),
"icon-press"
,
G_CALLBACK
(
select_files_cb
),
GINT_TO_POINTER
(
fld
->
type
));
g_signal_connect
(
G_OBJECT
(
e
),
"activate"
,
G_CALLBACK
(
form_activate_cb
),
dlg
);
#if !GTK_CHECK_VERSION(3,0,0)
...
...
@@ -954,7 +954,7 @@ form_create_widget (GtkWidget * dlg)
case
YAD_FIELD_DIR_CREATE
:
e
=
gtk_entry_new
();
gtk_widget_set_name
(
e
,
"yad-form-entry"
);
gtk_entry_set_icon_from_
stock
(
GTK_ENTRY
(
e
),
GTK_ENTRY_ICON_SECONDARY
,
"gtk-directory
"
);
gtk_entry_set_icon_from_
icon_name
(
GTK_ENTRY
(
e
),
GTK_ENTRY_ICON_SECONDARY
,
"document-open
"
);
g_signal_connect
(
G_OBJECT
(
e
),
"icon-press"
,
G_CALLBACK
(
create_files_cb
),
GINT_TO_POINTER
(
fld
->
type
));
g_signal_connect
(
G_OBJECT
(
e
),
"activate"
,
G_CALLBACK
(
form_activate_cb
),
dlg
);
#if !GTK_CHECK_VERSION(3,0,0)
...
...
src/html.c
View file @
15b5b153
...
...
@@ -249,7 +249,7 @@ open_cb (GtkWidget * w, gpointer d)
gtk_box_pack_start
(
GTK_BOX
(
cnt
),
lbl
,
TRUE
,
FALSE
,
2
);
entry
=
gtk_entry_new
();
gtk_entry_set_icon_from_
stock
(
GTK_ENTRY
(
entry
),
GTK_ENTRY_ICON_SECONDARY
,
"gtk-directory
"
);
gtk_entry_set_icon_from_
icon_name
(
GTK_ENTRY
(
entry
),
GTK_ENTRY_ICON_SECONDARY
,
"document-open
"
);
gtk_widget_show
(
entry
);
gtk_box_pack_start
(
GTK_BOX
(
cnt
),
entry
,
TRUE
,
FALSE
,
2
);
...
...
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