Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-06-2011, 12:35 AM   #1
LQ Newbie
Registered: Aug 2010
Location: Bangalore
Distribution: fedora13, suse 11.2
Posts: 20

Rep: Reputation: 0
preventing BG image from tiling

Hi all,
I have one gtk window and I tried to set image bg here is code code snap
Gtk::EventBox * canvas = mScreen->GetCanvas();
width = canvas->get_width();
height = canvas->get_height();

Glib::RefPtr<Gdk::Pixbuf> BgImg;
Glib::RefPtr<Gdk::Pixmap> OffScrnImg;
Glib::RefPtr<Gdk::Bitmap> Mask;

Glib::RefPtr<Gtk::Style> styleset;
BgImg = Gdk::Pixbuf::create_from_file(LOGO, width, height, TRUE);

BgImg->render_pixmap_and_mask (OffScrnImg,Mask,0);
styleset = Gtk::Style::create();
styleset->set_bg_pixmap (Gtk::STATE_NORMAL,OffScrnImg);
canvas->set_style (styleset);

Now the problem is when I run the pgm image will be shown on left and right side of the window and when I maximise the window, bg image will get tiling effect, so image will shown 4 side, bottom, left & right. Can anyone knows what might be the reason and what could be done.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I never thought I'd get used to a tiling window manager. treewojima Linux - General 3 06-02-2011 04:44 PM
Looking for a tiling WM which is easy to configure mike11 Linux - Desktop 5 12-02-2009 12:06 PM
tiling windows in KDE newbiesforever General 1 04-16-2009 05:14 PM
Errors preventing backup copy of CD image sonichedgehog Linux - Software 4 10-08-2008 06:21 PM
Tiling X Window Managers introuble General 2 06-18-2008 12:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration