Re: How best to fetch a web page...

2005-01-25 Thread Freddie Unpenstein
>> my reasoning for using wget in the first place, instead of a raw >> tcp connection, was to have at least some sense of robustness... > wget is, of course, open-source and GPLd, so it's quite possible to > extract the minimal code from wget to accomplish what you want, and > incorporate it in y

Re: How best to fetch a web page...

2005-01-25 Thread Allin Cottrell
On Tue, 25 Jan 2005, Freddie Unpenstein wrote: my reasoning for using wget in the first place, instead of a raw tcp connection, was to have at least some sense of robustness... wget is, of course, open-source and GPLd, so it's quite possible to extract the minimal code from wget to accomplish wha

Re: How best to fetch a web page...

2005-01-25 Thread Freddie Unpenstein
>> Why not use libcurl? You can get much more info about your >> connection. > libcurl even provides examples for how to use libcurl with a Gtk+ app. > Although I must admit their example should work fine for simple things > becareful not to abuse what the example demonstrates (the use of > gdk_t

Re: compare entry with list

2005-01-25 Thread Vinod Joseph
Hi Pablo I used memcmp() instead of strcmp() since strcmp() creates some worries inside..gtk.. i think memcmp() is more efficient for usage in gtk compared to strcmp()..anyways the result is the same with the code Thank you Vinod On Tue, 25 Jan 2005 09:34:45 -0800, Paolo Costabel <[EMAIL

Re: compare entry with list

2005-01-25 Thread Vinod Joseph
Hi On Tue, 25 Jan 2005 23:10:15 +, Peter Bloomfield <[EMAIL PROTECTED]> wrote: > On 01/25/2005 07:24:51 AM, Vinod Joseph wrote: > > Hello Members > > > > Please guide me why this operation fails logically for some > > values at some times > [ snip ] > > const gchar *entry_text; > > entry

Re: g_list_free()

2005-01-25 Thread Allin Cottrell
On Wed, 26 Jan 2005, Maulet wrote: Just wanted to know if g_list_free() frees the memory allocated "by hand" and attached to the list nodes. No. For example: ---[ start code ]--- GList *list = NULL; typedef struct { gchar *name; gint age; } Person *bush; bush->name = g_strdup ("George"); bush-

Re: g_list_free()

2005-01-25 Thread Brian J. Tarricone
Maulet wrote: Hi, Just wanted to know if g_list_free() frees the memory allocated "by hand" and attached to the list nodes. For example: ---[ start code ]--- GList *list = NULL; typedef struct { gchar *name; gint age; } Person *bush; bush->name = g_strdup ("George"); bush->age = 8; list = g

g_list_free()

2005-01-25 Thread Maulet
Hi, Just wanted to know if g_list_free() frees the memory allocated "by hand" and attached to the list nodes. For example: ---[ start code ]--- GList *list = NULL; typedef struct { gchar *name; gint age; } Person *bush; bush->name = g_strdup ("George"); bush->age = 8; list = g_list_append (

Re: compare entry with list

2005-01-25 Thread Peter Bloomfield
On 01/25/2005 07:24:51 AM, Vinod Joseph wrote: Hello Members Please guide me why this operation fails logically for some values at some times [ snip ] const gchar *entry_text; entry_text = gtk_entry_get_text (GTK_ENTRY (entry)); [ snip] g_free(entry_text); Perhaps because you're deallocatin

gtk widgets interaction - from different applications/tasks

2005-01-25 Thread Pedro Amaral Couto
Is it possible a GTK application interact to other application widget? How? --- Eg: viewimage : application to show/view an image from file; paint : painter ( something like Gimp, for eg ) 1- run "viewimage.exe myimg.png"; a Gtk_Window (view_window) contains a Gtk_Image (view_image);

Re: How best to fetch a web page...

2005-01-25 Thread todd
Goran Rakic wrote: Taking a look-see... Hmmm. Fits the bill quite nicely. I'll probably use GConnHttp when it gets through, I'm already using the GConn stuff in another little project. But until then, that piece of code should prove to be a huge help. And who knows. I may even learn

Re: How to specify max char limit on GtkTextView

2005-01-25 Thread Paolo Costabel
You could connect to the GtkTextBuffer insert-text signal and remove character in excess of the desired length. Gaurav Jain wrote: Hi All, I wish to enforce a maximum character limit on a GtkTextView. For GtkEntry, there is an API called gtk_entry_set_max_length(), but I couldn't find one for Gt

Re: compare entry with list

2005-01-25 Thread Paolo Costabel
Vinod Joseph wrote: Hello Members Please guide me why this operation fails logically for some values at some times Dosent give a consistent behavior... Please help... Callback_Function_on_userid_entry(GtkWidget *entry) { const gchar *entry_text; entry_text = gtk_entry_get_text (GTK_ENTRY (en

Re: font in rc file

2005-01-25 Thread Zeeshan Ali
Hello, I have no idea regarding the gtk1.2 way, but AFAIK in gtk2, you'll have the font specified like: "Arial 14" or "Sans 14". The '14' is an example of the font size specification, which you can omit i think. ___ gtk-app-devel-list mailing list gtk

Re: How best to fetch a web page...

2005-01-25 Thread Goran Rakic
Hubert SokoÅowski wrote: Why not use libcurl? You can get much more info about your connection. IMHO gnet is the best choice for gtk apps since it shares glib mainloop with the app and uses GIOChannels from glib. I thought about libcurl as a better option than calling wget command, not as

Re: How best to fetch a web page...

2005-01-25 Thread Hubert Sokołowski
On Tue, 25 Jan 2005 17:47:22 +0100 Goran Rakic <[EMAIL PROTECTED]> wrote: > Why not use libcurl? You can get much more info about your connection. > IMHO gnet is the best choice for gtk apps since it shares glib mainloop with the app and uses GIOChannels from glib. hs __

Re: How best to fetch a web page...

2005-01-25 Thread Goran Rakic
Taking a look-see... Hmmm. Fits the bill quite nicely. I'll probably use GConnHttp when it gets through, I'm already using the GConn stuff in another little project. But until then, that piece of code should prove to be a huge help. And who knows. I may even learn to use those GIOChannel

Re: Compile line options for gnome/libglade?

2005-01-25 Thread Arnaldo de Moraes Pereira
Hi Tony, Try adding libgnomeui-2.0 to the pkg-config arguments. Take care. On Sun, 23 Jan 2005 22:02:07 -0500, Tony Freeman <[EMAIL PROTECTED]> wrote: > I'm trying to compile the example program provided in Chapter 5 of "The > Official GNOME 2 Developer's Guide". Every program in this book tha

Re: UI_Manager & checkMenuItem

2005-01-25 Thread Jonas Geiregat
On Tue, 25 Jan 2005 12:24:52 +0100, Jonas Geiregat <[EMAIL PROTECTED]> wrote: > On Tue, 25 Jan 2005 11:47:58 +0100 (CET), Jan-Marek Glogowski > <[EMAIL PROTECTED]> wrote: > > Hi > > > > > Does anyone know if there is a way to add a checkMenuItem in a menu > > > using ActionGroup and gtkUiManager? >

Re: How best to fetch a web page...

2005-01-25 Thread Freddie Unpenstein
On Tuesday 25 January 2005 11:42, Hubert Sokolowski wrote: > > the easiest way is to use gnet library (www.gnetlibrary.org) that > > depends on glib. > The latest GNet release (2.0.5) doesn't have support for http yet > unfortunately, only the latest snapshot (from Oct 7) has the new > GConnHttp

compare entry with list

2005-01-25 Thread Vinod Joseph
Hello Members Please guide me why this operation fails logically for some values at some times Dosent give a consistent behavior... Please help... Callback_Function_on_userid_entry(GtkWidget *entry) { const gchar *entry_text; entry_text = gtk_entry_get_text (GTK_ENTRY (entry)); g_pri

Re: How best to fetch a web page...

2005-01-25 Thread Andreas Volz
Am Tue, 25 Jan 2005 06:34:37 -0500 (EST) schrieb Freddie Unpenstein: > And as an alternative, any suggestions on fundamentally better ways of > fetching a web page asynchonously? I'm more than willing to do > something drastically simple instead but dastedly effective, and forgo > the whole g_spa

Re: How best to fetch a web page...

2005-01-25 Thread Tim Müller
On Tuesday 25 January 2005 11:42, Hubert Sokolowski wrote: > > And as an alternative, any suggestions on fundamentally better ways of > > fetching a web page asynchonously? I'm more than willing to do something > > drastically simple instead but dastedly effective, and forgo the whole > > g_spawn

Re: How best to fetch a web page...

2005-01-25 Thread Hubert Sokolowski
> > I've been trying to use g_spawn_async_with_pipes to run wget, and have it > write the page to stdout (with output going to stderr along with anything > that would normally go there), and then syphon these off. The output I > was hoping to display in a little GtkTextView log window (hidden insi

How best to fetch a web page...

2005-01-25 Thread Freddie Unpenstein
I've been trying to use g_spawn_async_with_pipes to run wget, and have it write the page to stdout (with output going to stderr along with anything that would normally go there), and then syphon these off. The output I was hoping to display in a little GtkTextView log window (hidden inside an

Re: UI_Manager & checkMenuItem

2005-01-25 Thread Jonas Geiregat
On Tue, 25 Jan 2005 11:47:58 +0100 (CET), Jan-Marek Glogowski <[EMAIL PROTECTED]> wrote: > Hi > > > Does anyone know if there is a way to add a checkMenuItem in a menu > > using ActionGroup and gtkUiManager? > > Have a look for GtkToggleActionEntry. gnome-announce-list@gnome.org > > Jan-Marek >

Re: UI_Manager & checkMenuItem

2005-01-25 Thread Jan-Marek Glogowski
Hi > Does anyone know if there is a way to add a checkMenuItem in a menu > using ActionGroup and gtkUiManager? Have a look for GtkToggleActionEntry. Jan-Marek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailma

font in rc file

2005-01-25 Thread Giovanni Manenti
Hi, in my application built with gtk1.2 I want to use the 'sans' or the 'arial' font but I don't know how to compose the string of the fontset in the rc file. I tried to use xfontsel but I didn't find this fonts. Giovanni ___ gtk-app-devel-list mailing

Re: How to search through all entries in a column in GtkList

2005-01-25 Thread Vinod Joseph
Sorry for the confusion for ( i = 0; i <= my_list_store->len - 1 ; i++ ) { and without break; works fine... } It does not segfault on bash shell...I was using Anjuta and it used to seg fault... I think there is some error in my program.. i just free the entry_text here.. It dosent mak