]>
Dogcows Code - chaz/openbox/blob - obt/tests/ddtest.c
5 gcc
-O0
-o
./ddtest `pkg
-config
--cflags
--libs obt
-3.5` ddtest
.c
&& \
10 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
12 ddtest.c for the Openbox window manager
13 Copyright (c) 2010 Dana Jansens
15 This program is free software; you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation; either version 2 of the License, or
18 (at your option) any later version.
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
25 See the COPYING file for a copy of the GNU General Public License.
31 #include "obt/paths.h"
35 gint
main(int argc
, char **argv
)
42 g_print("pass path to .desktop\n");
46 obtpaths
= obt_paths_new();
47 dd
= obt_link_from_ddfile(argv
[1], obtpaths
, "et", NULL
, NULL
);
48 obt_paths_unref(obtpaths
);
53 const GQuark
*c
= obt_link_app_categories(dd
, &n
);
54 for (i
= 0; i
< n
; ++i
)
55 g_print("Category: %s\n",
56 g_quark_to_string(c
[i
]));
This page took 0.035818 seconds and 4 git commands to generate.