Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
9a4ed97e
Commit
9a4ed97e
authored
9 years ago
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt operator window bugfix, opmenu hierarchies with gave double menu entries
parent
cf36004a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
xtt/lib/cow/gtk/cow_wow_gtk.cpp
xtt/lib/cow/gtk/cow_wow_gtk.cpp
+4
-1
No files found.
xtt/lib/cow/gtk/cow_wow_gtk.cpp
View file @
9a4ed97e
...
@@ -1522,11 +1522,14 @@ pwr_tStatus CoWowGtk::CreateMenuItem( const char *name, void *menu, int pixmap,
...
@@ -1522,11 +1522,14 @@ pwr_tStatus CoWowGtk::CreateMenuItem( const char *name, void *menu, int pixmap,
for
(
GList
*
ch
=
chlist
;
ch
;
ch
=
ch
->
next
)
{
for
(
GList
*
ch
=
chlist
;
ch
;
ch
=
ch
->
next
)
{
GtkWidget
*
labelw
=
gtk_bin_get_child
(
GTK_BIN
(
ch
->
data
));
GtkWidget
*
labelw
=
gtk_bin_get_child
(
GTK_BIN
(
ch
->
data
));
strncpy
(
label
,
(
char
*
)
gtk_label_get_text
(
GTK_LABEL
(
labelw
)),
sizeof
(
label
));
strncpy
(
label
,
(
char
*
)
gtk_label_get_text
(
GTK_LABEL
(
labelw
)),
sizeof
(
label
));
if
(
cdh_NoCaseStrcmp
(
label
,
name_array
[
i
])
==
0
)
{
char
*
label_iso
=
g_convert
(
label
,
-
1
,
"ISO8859-1"
,
"UTF-8"
,
NULL
,
NULL
,
NULL
);
if
(
cdh_NoCaseStrcmp
(
label_iso
,
name_array
[
i
])
==
0
)
{
child
=
GTK_WIDGET
(
ch
->
data
);
child
=
GTK_WIDGET
(
ch
->
data
);
found
=
1
;
found
=
1
;
g_free
(
label_iso
);
break
;
break
;
}
}
g_free
(
label_iso
);
}
}
if
(
!
found
)
{
if
(
!
found
)
{
// Create the menu item
// Create the menu item
...
...
This diff is collapsed.
Click to expand it.
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