diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-10-26 13:56:26 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2012-10-26 13:56:26 +0000 |
commit | 5173c9382c31800010736052760089cb694d1319 (patch) | |
tree | 4f3e104f25b253b67638352c92e07f8b827c38dc /libdbusmenu-glib | |
parent | 35c7a1b8d2abdd3a8c49e9d2733482571d98d38a (diff) | |
parent | d4fc9689e0ac9b605cc8362e09cd16a67eab97b3 (diff) | |
download | libdbusmenu-5173c9382c31800010736052760089cb694d1319.tar.gz libdbusmenu-5173c9382c31800010736052760089cb694d1319.tar.bz2 libdbusmenu-5173c9382c31800010736052760089cb694d1319.zip |
when initializing fields inside a struct being declared, replace gccism with c99 syntax.
Approved by PS Jenkins bot, Albert Astals Cid.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 4 | ||||
-rw-r--r-- | libdbusmenu-glib/server.c | 6 |
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]; |