Re: fix for: assignment discards qualifiers from pointer target type

2004-07-14 Thread John Cupitt
On Wed, 14 Jul 2004 20:53:16 -0700, Carl B. Constantine <[EMAIL PROTECTED]> wrote: > gchar *userid = NULL; > > userid = gtk_entry_get_text(GTK_ENTRY(lookup_widget(logon, "password))); Try const char *userid = gtk_entry_get_text( GTK_ENTRY( ... John __

can't print string pointer, get error?

2004-07-14 Thread Carl B. Constantine
I have the following defined in my program: gchar *id; I perform the following operation which fills id with appropriate values: gtk_tree_model_get(theModel, &custListIter, CUST_ID, &id, -1); Then, I print out the value of id for debugging purposes: g_printf("row number %s was retrieved\n",

fix for: assignment discards qualifiers from pointer target type

2004-07-14 Thread Carl B. Constantine
I'm getting the following warning message on compile: filename.c:124: warning: assignment discards qualifiers from pointer target type. This occurs on lines such as this: ... gchar *userid = NULL; userid = gtk_entry_get_text(GTK_ENTRY(lookup_widget(logon, "password))); but, gtk_entry_get_tex

Sheet and Drawer widgets

2004-07-14 Thread Ken Harris
I once saw an interview with Owen Taylor where he said he'd like to see somebody implement Mac-style drawers, for possible inclusion in some future version of Gtk+. Being crazy (or dumb) enough to think this would be easy, I decided to give it a try. You can see what I've done so far: http://bi

Re: Odd GtkTextView behavior

2004-07-14 Thread Ian King [ES]
Hi Havoc, I would imagine it would be a useful fix as from what I can see at the moment there is no way to change the default style of the TextView so that newly inserted characters can use the "current style". This means that when you are typing new text you always have to set the "current st

Re: reffing/unreffing tutorial

2004-07-14 Thread Tristan Van Berkom
DANIELLLANO wrote: I've seen this and I think there should be a tutorial of the reffing/unreffing thing. Not many people including me knows how references should be taken care of. Is there and easy tutorial of reffing/unreffing? Is anyone willing to make one? Its really a quite simple concept a

reffing/unreffing tutorial

2004-07-14 Thread DANIELLLANO
I've seen this and I think there should be a tutorial of the reffing/unreffing thing. Not many people including me knows how references should be taken care of. Is there and easy tutorial of reffing/unreffing? Is anyone willing to make one? On 2004-07-13 05:08:12 -0700, Mark Doliner wrote: > Upda

Trouble compiling GTK+ under Solaris 9

2004-07-14 Thread Ekkart Bokemeyer
Hi,   I tried to compile GTK under Solaris 9 and got the following error:  make[4]: Entering directory `/export/Downloads/gtk+-2.4.3/gdk/x11'if /bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG

Re: How would I use casting ?

2004-07-14 Thread Sven Neumann
Hi, Dipak G Patil <[EMAIL PROTECTED]> writes: > I asked just you because, you have said following method is not best > way but neither told why nor suggested best way. And obviously such > statement would make anybody confused. OK then, perhaps it's time to repeat it once more then. A widget doe

Re: How would I use casting ?

2004-07-14 Thread James M. Cape
On Wed, 2004-07-14 at 17:32 +0530, Dipak G Patil wrote: > > I asked just you because, you have said following method is not best > way but neither told why nor suggested best way. And obviously such > statement would make anybody confused. > So I thought I would better clear the conversion of Gd

how to capture mouse event for both text and images !!!!!

2004-07-14 Thread vikram_dravid_sr
Indiatimes Email now powered by APIC Advantage. Help! HelpClick on the image to chat with me ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: How would I use casting ?

2004-07-14 Thread Dipak G Patil
I asked just you because, you have said following method is not best way but neither told why nor suggested best way. And obviously such statement would make anybody confused. So I thought I would better clear the conversion of GdkWindow to GtkWidget and vice versa which was my basic question. An

Re: Licence?

2004-07-14 Thread Sven Neumann
Hi, John Cupitt <[EMAIL PROTECTED]> writes: > Yes, provided you link dynamically against the gtk libraries. If you > link statically, you need to publish your program sources. I am sorry but what you said about static linking is a common misunderstanding of the LGPL. Havoc expressed it quite nic

Re: How would I use casting ?

2004-07-14 Thread Sven Neumann
Hi, could you please start reading the docs and the tutorial as well as the available example code. If you continue to ask here about virtually everything, people will very soon get annoyed and you won't get a response if you have a real question one day. Sven ___

Re: How would I use casting ?

2004-07-14 Thread Vincent Torri
maybe that : gtk_widget_get_parent () which returns the parent widget regards Vincent TORRI On Wed, 14 Jul 2004, Dipak G Patil wrote: > One more thing if I use gtk_widget_get_parent_window to get parent window > I get GdkWindow* in return. > But actually I need GtkWidget*. So could you tell

Re: Licence?

2004-07-14 Thread John Cupitt
On Wed, 14 Jul 2004 10:24:57 +0200 (MEST), Andreas Lång <[EMAIL PROTECTED]> wrote: > I have been using the gtk library to create this. My question is what > rules are there about publishing my source code. Can the company sell this > product without publishing my code? Yes, provided you link dynam

Re: How would I use casting ?

2004-07-14 Thread Dipak G Patil
One more thing if I use gtk_widget_get_parent_window to get parent window I get GdkWindow* in return. But actually I need GtkWidget*. So could  you tell me which is the best method to convert from GdkWindow* to GtkWidget* and vice versa ? Thanks and regards, Dipak G Patil. "David Necas (Yet

Licence?

2004-07-14 Thread Andreas LÃ¥ng
Hello. I'm writing my master thesies at a company and I'm creating a new GUI for their new handheld. I have been using the gtk library to create this. My question is what rules are there about publishing my source code. Can the company sell this product without publishing my code? // regards Andr

Re: How would I use casting ?

2004-07-14 Thread Dipak G Patil
Thanks gtk_widget_queue_draw()is perfect for what I want. But I think for every gdk_  API there wont be gtk_ equivalent, so what you think, for using gdk_ APIs use of gtk_widget_realize  right or not, if I have GtkWidget * type object ? Thanks and regards, Dipak G Patil. "David Necas (Yeti)

Re: How would I use casting ?

2004-07-14 Thread David Necas (Yeti)
(please don't top-post) On Wed, Jul 14, 2004 at 12:45:58PM +0530, Dipak G Patil wrote: > > Now I want to use gdk_window_process_updates so I think use of > gtk_widget_realize is mandatory as I couldnt find equivalent API in GTK. > Could you suggest me right way if you think using gtk_widget_real

Re: How would I use casting ?

2004-07-14 Thread Dipak G Patil
Hi Sven, Now I want to use gdk_window_process_updates so I think use of gtk_widget_realize is mandatory as I couldnt find equivalent API in GTK. Could you suggest me right way if you think using gtk_widget_realize API is not a good idea ? Thanks and regards, Dipak G Patil. Sven Neumann <[E