Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
3eafaae4
Commit
3eafaae4
authored
5 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[gui] better alignment in submenus
parent
927c2a8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/gui/project_manager.ml
+7
-6
7 additions, 6 deletions
src/plugins/gui/project_manager.ml
with
7 additions
and
6 deletions
src/plugins/gui/project_manager.ml
+
7
−
6
View file @
3eafaae4
...
@@ -38,7 +38,7 @@ let projects_list ?(filter=fun _ -> true) () =
...
@@ -38,7 +38,7 @@ let projects_list ?(filter=fun _ -> true) () =
module
PrjRadiosSet
=
module
PrjRadiosSet
=
FCSet
.
Make
FCSet
.
Make
(
struct
(
struct
type
t
=
(
Project
.
t
*
string
)
*
G
Menu
.
radio_
menu_item
*
GMenu
.
menu_item
type
t
=
(
Project
.
t
*
string
)
*
G
Button
.
radio_
button
*
GMenu
.
menu_item
let
compare
(
p1
,
_
,
_
)
(
p2
,
_
,
_
)
=
compare_prj
p1
p2
let
compare
(
p1
,
_
,
_
)
(
p2
,
_
,
_
)
=
compare_prj
p1
p2
end
)
end
)
...
@@ -221,18 +221,19 @@ and mk_project_entry window menu ?group p =
...
@@ -221,18 +221,19 @@ and mk_project_entry window menu ?group p =
let
item
=
GMenu
.
menu_item
~
packing
:
menu
#
append
()
in
let
item
=
GMenu
.
menu_item
~
packing
:
menu
#
append
()
in
let
_label
=
GMisc
.
label
~
markup
~
xalign
:
0
.
~
packing
:
item
#
add
()
in
let
_label
=
GMisc
.
label
~
markup
~
xalign
:
0
.
~
packing
:
item
#
add
()
in
let
submenu
=
GMenu
.
menu
~
packing
:
item
#
set_submenu
()
in
let
submenu
=
GMenu
.
menu
~
packing
:
item
#
set_submenu
()
in
let
p_item
=
GMenu
.
radio_menu_item
let
current
=
GMenu
.
menu_item
~
packing
:
submenu
#
append
()
in
let
p_item
=
GButton
.
radio_button
?
group
?
group
~
active
:
(
Project
.
is_current
p
)
~
active
:
(
Project
.
is_current
p
)
~
packing
:
subm
en
u
#
a
ppen
d
~
packing
:
curr
en
t
#
a
d
d
~
label
:
"Set current"
~
label
:
"Set current"
()
()
in
in
let
callback
()
=
if
p_item
#
active
then
Project
.
set_current
p
in
let
callback
()
=
Project
.
set_current
p
in
ignore
(
p_item
#
connect
#
toggled
~
callback
);
ignore
(
current
#
connect
#
activate
~
callback
);
project_radios
:=
PrjRadiosSet
.
add
((
p
,
pname
)
,
p_item
,
item
)
!
project_radios
;
project_radios
:=
PrjRadiosSet
.
add
((
p
,
pname
)
,
p_item
,
item
)
!
project_radios
;
let
add_action
stock
text
callback
=
let
add_action
stock
text
callback
=
let
image
=
GMisc
.
image
~
stock
()
in
let
image
=
GMisc
.
image
~
xalign
:
0
.
~
stock
()
in
let
image
=
image
#
coerce
in
let
image
=
image
#
coerce
in
let
item
=
let
item
=
Gtk_helper
.
image_menu_item
~
image
~
text
~
packing
:
submenu
#
append
Gtk_helper
.
image_menu_item
~
image
~
text
~
packing
:
submenu
#
append
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment