Skip to content
Snippets Groups Projects
Commit 1bfb4a9d authored by Guido Gunther's avatar Guido Gunther :zzz: Committed by Gogs
Browse files

Merge branch 'debian' of guido.gunther/phosh into master

parents 4b244704 31a3c608
No related branches found
No related tags found
No related merge requests found
weston.ini
rootston.ini
......@@ -3,7 +3,13 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@
dh $@ --builddirectory=_build
override_dh_auto_install:
dh_auto_install
# Move phosh to arch indep dir
mkdir -p debian/phosh/usr/lib/phosh
mv debian/phosh/usr/lib/*/phosh debian/phosh/usr/lib/phosh/phosh
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
......
......@@ -73,6 +73,8 @@ add_favorite (PhoshFavorites *self,
GtkWidget *btn;
info = g_desktop_app_info_new (favorite);
if (!info)
return NULL;
icon = g_app_info_get_icon (G_APP_INFO (info));
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
......@@ -137,7 +139,8 @@ favorites_changed (GSettings *settings,
for (gint i = 0; i < g_strv_length (favorites); i++) {
gchar *fav = favorites[i];
btn = add_favorite (self, fav);
gtk_grid_attach (GTK_GRID (priv->grid), btn, 1, row++, 1, 1);
if (btn)
gtk_grid_attach (GTK_GRID (priv->grid), btn, 1, row++, 1, 1);
}
g_strfreev (favorites);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment