Permalink
Browse files

Merge pull request #9 from mrfricks/master

Add 'set as wallpaper' for puppylinux
  • Loading branch information...
hellosiyan committed Sep 27, 2017
2 parents b98f919 + fe35fd4 commit a784f963efbcadf9f46a685981c368640d491df7
Showing with 7 additions and 0 deletions.
  1. +1 −0 src/vnr-prefs.c
  2. +1 −0 src/vnr-prefs.h
  3. +5 −0 src/vnr-window.c
View
@@ -286,6 +286,7 @@ build_dialog (VnrPrefs *prefs)
gtk_combo_box_append_text(desktop_env, "GNOME 3");
gtk_combo_box_append_text(desktop_env, "XFCE");
gtk_combo_box_append_text(desktop_env, "LXDE");
gtk_combo_box_append_text(desktop_env, "PUPPY");
gtk_combo_box_append_text(desktop_env, "FluxBox");
gtk_combo_box_append_text(desktop_env, "Nitrogen");
gtk_combo_box_set_active(desktop_env, prefs->desktop);
View
@@ -54,6 +54,7 @@ typedef enum{
VNR_PREFS_DESKTOP_GNOME3,
VNR_PREFS_DESKTOP_XFCE,
VNR_PREFS_DESKTOP_LXDE,
VNR_PREFS_DESKTOP_PUPPY,
VNR_PREFS_DESKTOP_FLUXBOX,
VNR_PREFS_DESKTOP_NITROGEN,
} VnrPrefsDesktop;
View
@@ -1426,6 +1426,11 @@ vnr_set_wallpaper(GtkAction *action, VnrWindow *win)
VNR_FILE(win->file_list->data)->path,
NULL);
break;
case VNR_PREFS_DESKTOP_PUPPY:
execlp("set_bg", "set_bg",
VNR_FILE(win->file_list->data)->path,
NULL);
break;
case VNR_PREFS_DESKTOP_FLUXBOX:
execlp("fbsetbg", "fbsetbg",
"-f", VNR_FILE(win->file_list->data)->path,

0 comments on commit a784f96

Please sign in to comment.