Beginner

2002-06-10 Thread David Aliaga
Hello. This is a beginners question, and I would appreciate if someone answer it. I have create a window with GTK with some entry widgets in it.I want to use them to initialize some parameters in a program I am writing. So in my program I have: main() { // some other things... create_window()

Beginner questions...

2002-02-28 Thread Ramon Alberto Triay Espinosa
ok... i'm a beginner and i have A LOT of questions... 1.How can I stablish the tabulation order (tabindex property in Visual Basic) of my widgets? Do I need to assign the focus manually? 2.What's this win_main object that sometimes i see in some example apps? 3.How can I stablish the

beginner Problem

2002-05-13 Thread Amit Jain
Hello all i am beginner to GTK+ library . So i want some useful information about GTK+ like ,which is the best IDE for GTK+ and from where i can download it. i have one more query regarding GTK+.i have a application in QT 3.0 , So how much effort will require to port a appliction

Re: Beginner

2002-06-10 Thread John . Cupitt
David Aliaga wrote: > I have create a window with GTK with some entry > widgets in it.I want to use them to initialize some > parameters in a program I am writing. Hi Dave, you want something like this: void my_OK_callback() { // read values out of the entry widgets // pop down dialog // start

Re: Beginner

2002-06-10 Thread Olaf Leidinger
Hello! I tried to put a variable "set" and to wait in an infinite loop until this is set to 1( which would be set in a function connected to a signal) but this just makes my window turn black. To prevent your window from turning black you might use gtk_main_iteration_do (FALS

Re: Beginner

2002-06-11 Thread Sijin M. Stephen
put a changed - signal handler to all entries.. this handler can set a boolean for each entry to TRUE.. in this changed signal handler, if all booleans become TRUE, do the necessary processing.. Sijin David Aliaga wrote: >Hello. This is a beginners question, and I would >appreciate if

Beginner questions ...

2004-12-15 Thread Sam B
Hello and thank you for reading my post ! I have a few questions about gtk+, sorry, I am a beginner : 1) I use the widget to get a filename with a menu (I don't remember its name). I connected the "Cancel" button signal to "widget_destroy" and this is OK. But I would

beginner gtk questions

2000-11-01 Thread timecop
after reading through docs etc here is what I came up with. attached is a custom gtk widget for a knob. can someone look over the code as far as the functionality or missing required pieces, and things like that, and get back to me? reply to my email, I am not on the list. Would this kind of a wid

Re: Beginner questions...

2002-03-01 Thread John . Cupitt
Ramon Alberto Triay Espinosa wrote: > 1.How can I stablish the tabulation order (tabindex property in Visual > Basic) of my widgets? Do I need to assign the focus manually? Hi Ramon, gtk+-1.2.x does this for you automatically. If you don't like the order it gives you, you can sort-of futz it by

Re: Beginner questions...

2002-03-01 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > gtk+-2.x has a much fancier system that I don't understand :-) > It isn't really different, it does a slightly better job automatically perhaps, and there's gtk_container_set_focus_chain() in GTK 2 to override the default. Havoc

Re: Beginner questions ...

2004-12-15 Thread Keith Sharp
On Wed, 2004-12-15 at 18:29 +0100, Sam B wrote: > Hello and thank you for reading my post ! > > I have a few questions about gtk+, sorry, I am a beginner : > > 1) I use the widget to get a filename with a menu (I don't remember its > name). I connected the &q

Re: beginner gtk questions

2000-11-01 Thread Paul Barton-Davis
>after reading through docs etc here is what I came up with. attached >is a custom gtk widget for a knob. can someone look over the code as >far as the functionality or missing required pieces, and things like >that, and get back to me? reply to my email, I am not on the list. >Would this kind o

Beginner question: List of calls

2005-07-26 Thread Jonathan Hayward
I'm working on the project mentioned, and I wanted to ask how to: 1: Get window height and width. 2: Display a character, x pixels over and y pixels down from a window's upper left-hand corner. 3: Display an image (png), x pixels over and y pixels down from a window's upper left-hand corner. 4:

Beginner difficulty with first tutorial program

2005-07-26 Thread Jonathan Hayward
I've installed 2.4.9 under FC4, and when something else didn't work, tried to compile and run the tutorial's sample program. I created test.c: #include int main(int argc, char *argv[])     {     GtkWidget *window;     gtk_init(&argc, &argv);     window = gtk_window_new(GTK_WINDOW_TOPLEVEL);    

New to GTK; some beginner questions.

2003-12-02 Thread Amit BHATNAGAR
Hi all. I am considering using GTK+ to develop an app for Solaris 8, and I could use some help in answering some of my questions that would allow me to make a decision on whether or not to use GTK+. I have searched the FAQ & online docs, however if any of my questions have documented answers that

Re: Beginner difficulty with first tutorial program

2005-07-26 Thread Jochen Baier
Jonathan Hayward wrote: I've installed 2.4.9 under FC4, and when something else didn't work, tried to compile and run the tutorial's sample program. I created test.c: #include int main(int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = gtk_window_ne

Re: Beginner difficulty with first tutorial program

2005-07-26 Thread Valdis . Kletnieks
On Tue, 26 Jul 2005 08:50:22 CDT, Jonathan Hayward said: > I've installed 2.4.9 under FC4, and when something else didn't work, tried > to compile and run the tutorial's sample program. I created test.c: Was there a reason you didn't use the 2.6.7 that shipped with FC4? How *exactly* did you inst

Re: Beginner difficulty with first tutorial program

2005-07-26 Thread Jonathan Hayward
On 7/26/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:On Tue, 26 Jul 2005 08:50:22 CDT, Jonathan Hayward said:> I've installed 2.4.9 under FC4, and when something else didn't work, tried> to compile and run the tutorial's sample program. I created test.c:Was there a reason you didn't use the 2.

Re: Beginner difficulty with first tutorial program

2005-07-26 Thread Valdis . Kletnieks
On Tue, 26 Jul 2005 19:37:11 CDT, Jonathan Hayward said: > I went to gtk.org and somewhat naively followed the > documentation saying to install from a specified ftp server. I didn't check > to see what was installed. Note to the web maintainer: Please add: Step 0: Check if your

Re: Beginner difficulty with first tutorial program

2005-07-27 Thread Jonathan Hayward
On 7/26/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:On Tue, 26 Jul 2005 19:37:11 CDT, Jonathan Hayward said:> I went to gtk.org and somewhat naively followed the> documentation saying to install from a specified ftp server. I didn't check> to see what was installed. Note to t

RE: New to GTK; some beginner questions.

2003-12-02 Thread Murray . Cumming
Amit BHATNAGAR wrote: > I would like to use GTKmm (and > Glademm) as C++ would be my primary development language of choice. Although you might mean glademm (which does code-generation), you probably mean libglademm, which instantiates Uis from .glade files at runtime. Murray Cumming www.murrayc

Re: New to GTK; some beginner questions.

2003-12-02 Thread Russell Shaw
Amit BHATNAGAR wrote: Hi all. I am considering using GTK+ to develop an app for Solaris 8, and I could use some help in answering some of my questions that would allow me to make a decision on whether or not to use GTK+. I have searched the FAQ & online docs, however if any of my questions have d

Re: New to GTK; some beginner questions.

2003-12-02 Thread Michael Torrie
On Tue, 2003-12-02 at 12:23, Amit BHATNAGAR wrote: > Hi all. > > I am considering using GTK+ to develop an app for Solaris 8, and I > could use some help in answering some of my questions that would allow > me to make a decision on whether or not to use GTK+. I have searched > the FAQ & online do

RE: New to GTK; some beginner questions.

2003-12-02 Thread Amit BHATNAGAR
will investigate further. thanks again, amit. -Original Message- From: Michael Torrie To: '[EMAIL PROTECTED]' Sent: 02/12/03 6:12 PM Subject: Re: New to GTK; some beginner questions. On Tue, 2003-12-02 at 12:23, Amit BHATNAGAR wrote: > Hi all. > > I am considering

RE: New to GTK; some beginner questions.

2003-12-05 Thread Michael Torrie
to have some understanding of structure and method before you mess with glade (which for many is a whole new way of thinking). Michael > > thanks again, > amit. > > -Original Message- > From: Michael Torrie > To: '[EMAIL PROTECTED]' > Sent: 02/

beginner needs help with "casting" with gtk

2009-06-21 Thread Julien Martin
Hello, I have the following callback function: *static void hello(GtkWidget *widget, gpointer data) { gchar * _data = (gchar *) data; g_print(_data); g_print("\n"); }* wich I call as follows: * g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(hello), "hello toto");* I get the

beginner needs help with "casting" with gtk

2009-06-22 Thread Julien Martin
Hello, I have the following callback function: *static void hello(GtkWidget *widget, gpointer data) { gchar * _data = (gchar *) data; g_print(_data); g_print("\n"); }* wich I call as follows: * g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(hello), "hello toto");* I get the

Re: beginner needs help with "casting" with gtk

2009-06-21 Thread David Nečas
On Sun, Jun 21, 2009 at 02:13:52PM +0200, Julien Martin wrote: > *static void hello(GtkWidget *widget, gpointer data) { > gchar * _data = (gchar *) data; > g_print(_data); > g_print("\n"); > }* > > wich I call as follows: > * > g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(h

Re: beginner needs help with "casting" with gtk

2009-06-21 Thread Mike Massonnet
Le dimanche 21 juin 2009 14:20:17, David Nečas a écrit : > On Sun, Jun 21, 2009 at 02:13:52PM +0200, Julien Martin wrote: > > *static void hello(GtkWidget *widget, gpointer data) { > > gchar * _data = (gchar *) data; There is no need to cast a gpointer. > > g_print(_data); Same as David,