aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-10-26 13:56:50 +0200
committerCharles Kerr <charles.kerr@canonical.com>2012-10-26 13:56:50 +0200
commitd4fc9689e0ac9b605cc8362e09cd16a67eab97b3 (patch)
treea5d142cc28f41ba927612807feacb1cb11b2d35b
parent0a9995765d2e5c807aea7c316cca471cda64a2a6 (diff)
downloadlibdbusmenu-d4fc9689e0ac9b605cc8362e09cd16a67eab97b3.tar.gz
libdbusmenu-d4fc9689e0ac9b605cc8362e09cd16a67eab97b3.tar.bz2
libdbusmenu-d4fc9689e0ac9b605cc8362e09cd16a67eab97b3.zip
when initializing fields inside a struct being declared, replace gccism with c99 syntax
-rw-r--r--libdbusmenu-glib/menuitem.c4
-rw-r--r--libdbusmenu-glib/server.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c
index 7e9d204..877e90f 100644
--- a/libdbusmenu-glib/menuitem.c
+++ b/libdbusmenu-glib/menuitem.c
@@ -974,7 +974,7 @@ dbusmenu_menuitem_find_id (DbusmenuMenuitem * mi, gint id)
}
return mi;
}
- find_id_t find_id = {mi: NULL, id: id};
+ find_id_t find_id = {.mi=NULL, .id=id};
find_id_helper(mi, &find_id);
return find_id.mi;
}
@@ -1712,7 +1712,7 @@ dbusmenu_menuitem_foreach (DbusmenuMenuitem * mi, void (*func) (DbusmenuMenuitem
func(mi, data);
GList * children = dbusmenu_menuitem_get_children(mi);
- foreach_struct_t foreach_data = {func: func, data: data};
+ foreach_struct_t foreach_data = {.func=func, .data=data};
g_list_foreach(children, foreach_helper, &foreach_data);
return;
}
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index c0cd200..1536e3c 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -215,9 +215,9 @@ static gboolean layout_update_idle (gpointer user_data);
static GDBusNodeInfo * dbusmenu_node_info = NULL;
static GDBusInterfaceInfo * dbusmenu_interface_info = NULL;
static const GDBusInterfaceVTable dbusmenu_interface_table = {
- method_call: bus_method_call,
- get_property: bus_get_prop,
- set_property: NULL /* No properties that can be set */
+ .method_call = bus_method_call,
+ .get_property = bus_get_prop,
+ .set_property = NULL /* No properties that can be set */
};
static method_table_t dbusmenu_method_table[METHOD_COUNT];