Gtk::Frame not drawing any shadow



Hi there.

The Gtk::Frame widget does not draw any shadow at my end. If for instance I compile and run the attached sample code, I only get this http://img94.imageshack.us/img94/4446/screenshotat20111003162.png. Is this intended behaviour (maybe related to Gtk+3) or am I doing something wrong? I'm running gtk and gtkmm version 3.2.0

#include <gtkmm.h>

int main (int argc, char *argv[])
{
Gtk::Main FramesApp (argc, argv);
Gtk::Window FramesWindow;
FramesWindow.set_title ("Frames Window");
FramesWindow.set_position (Gtk::WIN_POS_CENTER);
FramesWindow.set_default_size (250, 250);
FramesWindow.set_border_width (10);
Gtk::Table fr_table (2, 2, true);
fr_table.set_col_spacings (10);
fr_table.set_row_spacings (10);
Gtk::Frame frame1 ("Shadow In");
Gtk::Frame frame2 ("Shadow Out");
Gtk::Frame frame3 ("Shadow Etched In");
Gtk::Frame frame4 ("Shadow Etched Out");
frame1.set_shadow_type (Gtk::SHADOW_IN);
frame2.set_shadow_type (Gtk::SHADOW_OUT);
frame3.set_shadow_type (Gtk::SHADOW_ETCHED_IN);
frame4.set_shadow_type (Gtk::SHADOW_ETCHED_OUT);
fr_table.attach (frame1, 0, 1, 0, 1);
fr_table.attach (frame2, 0, 1, 1, 2);
fr_table.attach (frame3, 1, 2, 0, 1);
fr_table.attach (frame4, 1, 2, 1, 2);
FramesWindow.add (fr_table);
FramesWindow.show_all_children();
FramesApp.run (FramesWindow);
return 0;
}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]