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
2afecd82
Commit
2afecd82
authored
Mar 06, 2018
by
step-
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GTK2 warning message
Gtk-CRITICAL **: IA__gtk_misc_set_alignment: assertion 'GTK_IS_MISC (misc)' failed
parent
0660417f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
util.c
src/util.c
+8
-6
No files found.
src/util.c
View file @
2afecd82
...
...
@@ -408,16 +408,18 @@ get_label (gchar * str, guint border)
if
(
vals
[
1
]
&&
*
vals
[
1
])
i
=
gtk_image_new_from_pixbuf
(
get_pixbuf
(
vals
[
1
],
YAD_SMALL_ICON
));
}
#if !GTK_CHECK_VERSION(3,0,0)
gtk_misc_set_alignment
(
GTK_MISC
(
l
),
0
.
0
,
0
.
5
);
#else
gtk_label_set_xalign
(
GTK_LABEL
(
l
),
0
.
0
);
#endif
if
(
i
)
gtk_box_pack_start
(
GTK_BOX
(
t
),
i
,
FALSE
,
FALSE
,
1
);
if
(
l
)
gtk_box_pack_start
(
GTK_BOX
(
t
),
l
,
FALSE
,
FALSE
,
1
);
{
#if !GTK_CHECK_VERSION(3,0,0)
gtk_misc_set_alignment
(
GTK_MISC
(
l
),
0
.
0
,
0
.
5
);
#else
gtk_label_set_xalign
(
GTK_LABEL
(
l
),
0
.
0
);
#endif
gtk_box_pack_start
(
GTK_BOX
(
t
),
l
,
FALSE
,
FALSE
,
1
);
}
/* !!! must check both 1 and 2 values for !NULL */
if
(
vals
[
1
]
&&
vals
[
2
]
&&
*
vals
[
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