Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
garcon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
garcon
Commits
2dd01460
Commit
2dd01460
authored
15 years ago
by
Jannis Pohlmann
Browse files
Options
Downloads
Patches
Plain Diff
Make test applications compile and run again.
parent
bd9c268f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test-menu-parser.c
+3
-3
3 additions, 3 deletions
tests/test-menu-parser.c
tests/test-menu-spec.c
+3
-6
3 additions, 6 deletions
tests/test-menu-spec.c
with
6 additions
and
9 deletions
tests/test-menu-parser.c
+
3
−
3
View file @
2dd01460
...
...
@@ -228,10 +228,12 @@ main (int argc,
gint
result
=
EXIT_SUCCESS
;
gint
n
;
g_type_init
();
if
(
!
g_thread_supported
())
g_thread_init
(
NULL
);
garcon_
ini
t
(
"XFCE"
);
garcon_
set_environmen
t
(
"XFCE"
);
if
(
argc
>
1
)
file
=
g_file_new_for_path
(
argv
[
1
]);
...
...
@@ -300,7 +302,5 @@ main (int argc,
g_object_unref
(
parser
);
garcon_shutdown
();
return
result
;
}
This diff is collapsed.
Click to expand it.
tests/test-menu-spec.c
+
3
−
6
View file @
2dd01460
...
...
@@ -84,7 +84,7 @@ print_menu (GarconMenu *menu,
&&
garcon_menu_element_get_visible
(
iter
->
data
))
{
g_printf
(
"%s
\t
%s
\t
%s
\n
"
,
name
,
garcon_menu_item_get_desktop_id
(
iter
->
data
),
garcon_menu_item_get_
filename
(
iter
->
data
));
garcon_menu_item_get_
path
(
iter
->
data
));
}
}
...
...
@@ -111,8 +111,8 @@ main (int argc,
g_set_prgname
(
"test-menu-spec"
);
/* Initialize
menu library
*/
g
arcon
_init
(
NULL
);
/* Initialize
the type system
*/
g
_type
_init
();
/* Try to get the root menu */
menu
=
garcon_menu_new_applications
();
...
...
@@ -138,8 +138,5 @@ main (int argc,
#endif
}
/* Shut down the menu library */
garcon_shutdown
();
return
exit_code
;
}
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