[gtkmm] set_decorations



Hi

I want to use set_decorations but I allways got error :
In file included from akemsalatk.cc:11:
mainwindow.cc: In constructor `MainWindow::MainWindow()':
mainwindow.cc:64: no matching function for call to `Glib::RefPtr<Gdk::Window>::
   set_decorations(GdkWMDecoration)'
make[2]: *** [akemsalatk.o] Error 1


Here is my files :
( the main files )
int main(int argc, char *argv[])
{
	Gtk::Main kit(argc, argv);
	MainWindow window;
        Gtk::Main::run(window);
    return 0;
}

the file mainwindow.h :

class MainWindow : public Gtk::Window
{
public:
  MainWindow();
  virtual ~MainWindow();

protected:
  virtual bool on_TimeEvent_button_press(GdkEventButton* event);
  virtual bool on_PICEvent_button_press(GdkEventButton* event);

	Gtk::VBox m_VBox;
	Gtk::Label labTimes,labPic;
	Gtk::Image *imgKaba;
	Gtk::EventBox TimeEvent,PicEvent;
	Gtk::Tooltips PicTips,TimeTips;

};

the file mainwindow.cc :

MainWindow::MainWindow()
{
  set_title(_("Akem Salatk"));
  set_skip_taskbar_hint(TRUE);
  set_skip_pager_hint(TRUE);

  realize();
get_window().set_decorations (GdkWMDecoration (GDK_DECOR_BORDER|GDK_DECOR_RESIZEH));
  show_all_children();
}

MainWindow::~MainWindow()
{
}

------------------------------------------------------------------------------------------
Any help please ?


--
http://www.4-SMS.Com
http://eShop.4-SMS.Com
http://Mozilla.4-SMS.Com
-*- If Linux doesn't have the solution, you have the wrong problem -*-




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