Update CMakeLists and images
This commit is contained in:
parent
0f5dbd8972
commit
e0cde062c7
|
@ -28,6 +28,9 @@ set(SOURCES src/main.cc src/MyWin.cc src/MsgBox.cc
|
|||
set(RESOURCE_LIST
|
||||
style.css
|
||||
style_dark.css
|
||||
fly.png
|
||||
img7.png
|
||||
winpe.png
|
||||
STRIPBLANKS menubar.xml
|
||||
STRIPBLANKS prefs.ui
|
||||
icons/16x16/actions/open-menu.png
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "MyWin.hh"
|
||||
#include "img7.xpm"
|
||||
#include "winpe.xpm"
|
||||
#include "fly.xpm"
|
||||
// #include "img7.xpm"
|
||||
// #include "winpe.xpm"
|
||||
// #include "fly.xpm"
|
||||
#include "xeapi.hh"
|
||||
#include "xerelease.hh"
|
||||
#include "config.hh"
|
||||
|
@ -183,7 +183,8 @@ void MyWin::titlebar_init()
|
|||
void MyWin::background1()
|
||||
{
|
||||
// Set Background Image
|
||||
auto pixbuf = Gdk::Pixbuf::create_from_xpm_data(winpe);
|
||||
// auto pixbuf = Gdk::Pixbuf::create_from_xpm_data(winpe);
|
||||
auto pixbuf = Gdk::Pixbuf::create_from_resource("/org/gtk/daleclack/winpe.png");
|
||||
auto sized = pixbuf->scale_simple(640, 360, Gdk::InterpType::BILINEAR);
|
||||
background.set_pixbuf(sized);
|
||||
// Free Memory
|
||||
|
@ -206,7 +207,8 @@ void MyWin::background1()
|
|||
void MyWin::background2()
|
||||
{
|
||||
// Set Background Image
|
||||
auto pixbuf = Gdk::Pixbuf::create_from_xpm_data(img7);
|
||||
// auto pixbuf = Gdk::Pixbuf::create_from_xpm_data(img7);
|
||||
auto pixbuf = Gdk::Pixbuf::create_from_resource("/org/gtk/daleclack/img7.png");
|
||||
auto sized = pixbuf->scale_simple(640, 360, Gdk::InterpType::BILINEAR);
|
||||
background.set_pixbuf(sized);
|
||||
// Free Memory
|
||||
|
@ -229,7 +231,8 @@ void MyWin::background2()
|
|||
void MyWin::background3()
|
||||
{
|
||||
// Set Background Image
|
||||
auto pixbuf = Gdk::Pixbuf::create_from_xpm_data(fly);
|
||||
// auto pixbuf = Gdk::Pixbuf::create_from_xpm_data(fly);
|
||||
auto pixbuf = Gdk::Pixbuf::create_from_resource("/org/gtk/daleclack/fly.png");
|
||||
auto sized = pixbuf->scale_simple(640, 360, Gdk::InterpType::BILINEAR);
|
||||
background.set_pixbuf(sized);
|
||||
// Free Memory
|
||||
|
|
Loading…
Reference in New Issue