panel-loader: Update code style
Use g_auto and remove an unecessary line break.
This commit is contained in:
parent
b5f7875be4
commit
c5f97d8a56
1 changed files with 2 additions and 4 deletions
|
@ -121,7 +121,7 @@ cc_panel_loader_get_panels (void)
|
||||||
static int
|
static int
|
||||||
parse_categories (GDesktopAppInfo *app)
|
parse_categories (GDesktopAppInfo *app)
|
||||||
{
|
{
|
||||||
GStrv split;
|
g_auto(GStrv) split = NULL;
|
||||||
const gchar *categories;
|
const gchar *categories;
|
||||||
gint retval;
|
gint retval;
|
||||||
|
|
||||||
|
@ -153,7 +153,6 @@ parse_categories (GDesktopAppInfo *app)
|
||||||
categories, g_app_info_get_id (G_APP_INFO (app)));
|
categories, g_app_info_get_id (G_APP_INFO (app)));
|
||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev (split);
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,8 +167,7 @@ cc_panel_loader_fill_model (CcShellModel *model)
|
||||||
g_autofree gchar *desktop_name = NULL;
|
g_autofree gchar *desktop_name = NULL;
|
||||||
gint category;
|
gint category;
|
||||||
|
|
||||||
desktop_name = g_strconcat ("gnome-", all_panels[i].name,
|
desktop_name = g_strconcat ("gnome-", all_panels[i].name, "-panel.desktop", NULL);
|
||||||
"-panel.desktop", NULL);
|
|
||||||
app = g_desktop_app_info_new (desktop_name);
|
app = g_desktop_app_info_new (desktop_name);
|
||||||
|
|
||||||
if (!app)
|
if (!app)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue