Re: Assignment Operator in GtkWidget
- From: Paul Davis <paul linuxaudiosystems com>
- To: jalkadir gosonic ca
- Cc: gtk-list gnome org
- Subject: Re: Assignment Operator in GtkWidget
- Date: Wed, 28 Sep 2005 21:22:53 -0400
On Wed, 2005-09-28 at 16:34 -0600, jalkadir gosonic ca wrote:
> In the constructor I assigned values to the two variables,
> namespace jme{
> class Data{
> public:
> std::string str;
> GtkWidget* obj;
> public:
> Data(){str = ""; obj = gtk_window_new(GTK_WINDOW_TOPLEVEL);}
> void setStr(std::string ps){ str = ps;}
> void setObj(GtkWidget* o){obj = o;}
> };
> }
> and as soon as I get the value for the jme::Data::str variable, I replace
> the value, but for jme::Data::obj, I replace the value as soon as the
> GtkWidget::MainMenuWin value is aquired.
>
> But, for some reason, I am unable to use the assignment operator on
> GtkWidget objects.
>
> What should I do now?
you can start by saving yourself a lot of typing and use gtkmm
(www.gtkmm.org)
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]