Page 1 of 1

GTK_Messagerequester didn't show title ...

Posted: Tue Feb 13, 2007 4:22 pm
by walker
If you use a gtk_messagerequester, the appropriate title (Information, Error etc.) usually generated by the requester type (#gtk_message_info,. #gtk_message_error etc) isn't shown any more... (i guess, this behavior is since beta 2)

Try:

Code: Select all

gtk_init_(0,0)
d=gtk_message_dialog_new_(0,#GTK_DIALOG_MODAL,#GTK_MESSAGE_INFO,#GTK_BUTTONS_CANCEL,"missing title","","")
gtk_dialog_run_(d)
You'll get

Image

Posted: Tue Feb 13, 2007 5:40 pm
by freak
Where should there be a PB bug ?

Posted: Wed Feb 14, 2007 4:12 pm
by walker
...hmmm... but later on no one could say that it wasn't reported.... :wink:

thought it is maybe a bug in PB as it was working in prior versions (with the same gtk libs installed)

Posted: Thu Feb 15, 2007 10:10 am
by bembulak
I now, I get offtopic now and sorry for that, but:

Walker: where the hack do you have the gtk-knowledge from? Any experience in C like PB-Team (Fred, fr34k)?

I do have the link to the gtk-manuals, but studying does not bring any success. It's way to cryptic for a person like me.

I really hope, anyone will make a gtk-Tutor for PB in the future. I can't RTFM, when I don't understand the language it's written in (C).



do I need the gtk_init(), when I only do a gtk-message-box? This does differ from WinApi, doesn't it?

Cheers,

Posted: Thu Feb 15, 2007 10:41 am
by walker
first... my knowledge is from the gtk-manuals and C-examples ONLY...(on gtk.org and found around the net) and I never ever wrote a line in C or similar (some modula2 back in the old Amiga times... 8) and some asm on the C64... otherwise only VB and VBA)

C isn't that hard and not hard to learn... but in my opinion PB is more powerfull than C C++ or whatever... (though there are some things to do)... but the best of all.. PB is NOT oop.... anyway

You'll need the gtk_init_() only if there is no PB OpenWindow before (else the OpenWindow() does the gtk_init_() for you)

Posted: Thu Feb 15, 2007 11:52 am
by bembulak
my knowledge is from the gtk-manuals and C-examples ONLY
C isn't that hard and not hard to learn.
seems like a RTM.. :D

the best of all.. PB is NOT ...
Don't feed any trolls.. ;)

You'll need the gtk_init_() only if there is no PB OpenWindow before (else the OpenWindow() does the gtk_init_() for you)
OK, thanks.
If PB does the gtk_init(), I can easily use gtk_ commands in my app. Or are there any restrictions?

Posted: Thu Feb 15, 2007 1:22 pm
by walker
. Or are there any restrictions?
generally not... but some of them are a little tricky... :roll: but you even can mix them with pb commands.... 8) ... and your knowledge of course :wink:

Posted: Sun Feb 18, 2007 2:31 pm
by bembulak
Thanks.

I'll nag you with more questions, when they appear!

Thanks a lot!