[gtkmm] Static lable in Static method ?



Hi

I have a static method and I want to change a text of a lable in it , how can I do that ?

[code]

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

protected:
  static void MainWindow::Set_Time_Mod(void);
  static Gtk::Label labTimes;

}

void MainWindow::Set_Time_Mod(void)
{
  MainWindow::labTimes.set_text(_("Hello"));
}

[/code]

When I compile this code I got this error :

/mainwindow.h:206: undefined reference to `MainWindow::labTimes'


--
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]