mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Fix coding style
This commit is contained in:
parent
4c66004fa8
commit
b967592289
3 changed files with 8 additions and 5 deletions
|
|
@ -94,7 +94,8 @@ find_dir(struct ctx *ctx)
|
||||||
if (!prefix) {
|
if (!prefix) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gchar **prefixes = g_strsplit(prefix, ":", -1);
|
gchar **prefixes;
|
||||||
|
prefixes = g_strsplit(prefix, ":", -1);
|
||||||
for (gchar **p = prefixes; *p; p++) {
|
for (gchar **p = prefixes; *p; p++) {
|
||||||
ctx->build_path_fn(ctx, *p, d.path);
|
ctx->build_path_fn(ctx, *p, d.path);
|
||||||
if (debug) {
|
if (debug) {
|
||||||
|
|
|
||||||
|
|
@ -30,5 +30,5 @@ grab_file(const char *filename)
|
||||||
}
|
}
|
||||||
free(line);
|
free(line);
|
||||||
fclose(stream);
|
fclose(stream);
|
||||||
return (buffer.buf);
|
return buffer.buf;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#include "theme.h"
|
#include "theme.h"
|
||||||
|
|
||||||
/* state-machine variables for processing <item></item> */
|
/* state-machine variables for processing <item></item> */
|
||||||
static bool in_item = false;
|
static bool in_item;
|
||||||
static struct menuitem *current_item;
|
static struct menuitem *current_item;
|
||||||
|
|
||||||
#define MENUWIDTH (110)
|
#define MENUWIDTH (110)
|
||||||
|
|
@ -88,7 +88,7 @@ static void fill_item(char *nodename, char *content, struct menu *menu)
|
||||||
static void
|
static void
|
||||||
entry(xmlNode *node, char *nodename, char *content, struct menu *menu)
|
entry(xmlNode *node, char *nodename, char *content, struct menu *menu)
|
||||||
{
|
{
|
||||||
static bool in_root_menu = false;
|
static bool in_root_menu;
|
||||||
|
|
||||||
if (!nodename) {
|
if (!nodename) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -130,8 +130,10 @@ static void xml_tree_walk(xmlNode *node, struct menu *menu);
|
||||||
static void
|
static void
|
||||||
traverse(xmlNode *n, struct menu *menu)
|
traverse(xmlNode *n, struct menu *menu)
|
||||||
{
|
{
|
||||||
|
xmlAttr *attr;
|
||||||
|
|
||||||
process_node(n, menu);
|
process_node(n, menu);
|
||||||
for (xmlAttr *attr = n->properties; attr; attr = attr->next) {
|
for (attr = n->properties; attr; attr = attr->next) {
|
||||||
xml_tree_walk(attr->children, menu);
|
xml_tree_walk(attr->children, menu);
|
||||||
}
|
}
|
||||||
xml_tree_walk(n->children, menu);
|
xml_tree_walk(n->children, menu);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue