Re: [Anjuta-list] anjuta\gtkmm\c++
- From: UnoSD <kharhonte hotmail com>
- To: anjuta-list lists sourceforge net
- Subject: Re: [Anjuta-list] anjuta\gtkmm\c++
- Date: Tue, 2 Dec 2008 10:56:53 -0800 (PST)
thank you for the answer, i'm going crazy, however i tried using
"glade_signal_autoconnect()" but it says "expected constructor destructore
ecc... before ; token" so it doesn't work anyway, i tried looking to the
"programming with gtkmm..." but also the example make me some error because
there is no glade in the example and i don't know how to put it... there is
my code and the picture of my screen in glade:
http://www.hwupgrade.it/forum/showthread.php?t=1876329
i hope i can solve... instead i will pass another night asleep -.-
Regards,
Stefano
Johannes Schmid-4 wrote:
>
> Hi!
>
> That won't work if you don't call glade_signal_autoconnect() or similar.
> Anyway, Gtkmm handles this in different ways (and you shouldn't call Gtk
> + methods linke gtk_main_quit() in gtkmm code.
>
> I think you should read
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html
> first which should solve most gtkmm programming problems.
>
> Regards,
> Johannes
>
> Am Dienstag, den 02.12.2008, 04:17 -0800 schrieb UnoSD:
>> hi, i'm a new user of the forum and of anjuta, i'm italian so i'm sorry
>> for
>> my english :D
>>
>> i made a new project with anjuta, a c++ project with gtkmm
>> i made a window with glade with a button with okbutton name
>> i put the button name and the signal\gtkbutton\clicked:
>> on_okbutton_clicked
>> and after i just added:
>> void on_okbutton_clicked (GtkButton *button, gpointer user_data){
>> printf("ciao");
>> cout << "ciao"<<endl;
>> gtk_main_quit();
>> }
>> at the bottom of the main.cc
>> but when i run the program
>> and i click the button
>> nothing happens...
>>
>> please someone can help me? i tried googleing but nothing...
>>
>> (sorry, i wrote in the wrong section before...
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Anjuta-list mailing list
> Anjuta-list lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/anjuta-list
>
>
--
View this message in context: http://www.nabble.com/anjuta%5Cgtkmm%5Cc%2B%2B-tp20791001p20798613.html
Sent from the Anjuta - Users mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]