Re: pass the html file to a browser to open there

2005-08-13 Thread Hubert Sokołowski
On Fri, 12 Aug 2005 08:25:23 -0700 (PDT) Yogesh M <[EMAIL PROTECTED]> wrote: > > I have written a program which works under windows and linux, I have written > the help in html. If the user presses F1, then I want gtk to call a browser > and open html. can it be done in gtk. just as an exampl

Re: libglade - scrolled windows - drawing canvas

2005-08-11 Thread Hubert Sokołowski
Hi! On Wed, 10 Aug 2005 17:01:05 +0100 Yiannis <[EMAIL PROTECTED]> wrote: > Hi, > > I am using glade with libglade for the gtk interfaces. I have a > scrollable window with a drawing window. But sr imply it doesn't > work. > > 1. during runtime program complains that: > Gtk-WARNING **: gtk_

Re: gtk2 and windows xp

2005-08-10 Thread Hubert Sokołowski
Hi! On Wed, 10 Aug 2005 01:29:34 -0700 (PDT) Yogesh M <[EMAIL PROTECTED]> wrote: > In windows XP, gthread doesnt work, it seems to hang the program. works > nicely in windows 98 though. > > In XP it shoulds a white window and doesnt draws or responds > > when i comment thse line > g_thread

Re: Web Queries through GTK

2005-08-05 Thread Hubert Sokołowski
On Fri, 5 Aug 2005 13:00:13 +0530 Bhatnagar Achindra <[EMAIL PROTECTED]> wrote: > I need to make http: Get/Post queries through my GTK application, try gnet library http://www.gnetlibrary.org/ which is based on glib, so it is easy to integrate it in a gtk application.

Re: Need help to work with sockets...

2005-08-05 Thread Hubert Sokołowski
gnet is a network library that might be usefull for you, http://www.gnetlibrary.org/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: d'n'd on a listview

2005-08-02 Thread Hubert Sokołowski
it was my fault, I didn't add a button mask to gtk_tree_view_enable_model_drag_source ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: d'n'd on a listview

2005-08-02 Thread Hubert Sokołowski
Hi again! Sorry if this topic was explained in the past. I connected drag'n'drop events to my treeview: g_signal_connect (object, "drag-begin", G_CALLBACK (_drag_start_cb), NULL); g_signal_connect (object, "drag-data-get", G_CALLBACK (_drag_data_get_cb)

Re: d'n'd on a listview

2005-08-02 Thread Hubert Sokołowski
Hi! I have read the document at http://developer.gnome.org/doc/API/2.0/gtk/gtk-GtkTreeView-drag-and-drop.html about high-level drag'n'drop api for gtktreeview, but still don't know where to start. I understand most of this functions, but what events I have to connect to, to enable drag and drop o

d'n'd on a listview

2005-08-01 Thread Hubert Sokołowski
HI! Can someone point me to some example on drag'n'drop on a single listview ? regards hs ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

editable listview cell renderer

2005-08-01 Thread Hubert Sokołowski
Hi! In my listview I have a column of type text which can be edited by the user. When user double-click on the cell the text can be edited. But how to force edition of a cell after for example user click on a button? regards hs ___ gtk-app-devel-list

Re: how to print drawing area

2005-07-30 Thread Hubert Sokołowski
On Sat, 30 Jul 2005 00:55:44 -0700 (PDT) Yogesh M <[EMAIL PROTECTED]> wrote: > I want to print the drawing area and it should work in windows and linux. I > am using gtk 2.4. > you can save it to a jpeg file dest = gdk_pixbuf_get_from_drawable (NULL, drawing_area->window, NULL, 0,0,0,0, width,

switching between gtkspinbuttons in gtktable

2005-07-29 Thread Hubert Sokołowski
Hi! I have a GtkTable widget where I have GtkEntry and GtkSpinButton widgets in it. In the first column I have entries, in the second I have spinbuttons. when focus is set on an entry I can move up and down between entries in the column with UP and DOWN arrow keys. I want to have the same for spi

Re: glib bug on windows?

2005-07-27 Thread Hubert Sokołowski
On Wed, 27 Jul 2005 14:19:29 +0100 Hazael Maldonado Torres <[EMAIL PROTECTED]> wrote: > > > > > >Hi! > > > >I have found a problem in windows version of glib 2.4.7. > >in code > > va_start (args, fmt); > > in = g_strdup_vprintf (fmt, args); > > va_end (args); > >when fmt is for example "blabla

glib bug on windows?

2005-07-27 Thread Hubert Sokołowski
Hi! I have found a problem in windows version of glib 2.4.7. in code va_start (args, fmt); in = g_strdup_vprintf (fmt, args); va_end (args); when fmt is for example "blablabla 100\%" the pointer 'in' is NULL, when fmt is for example "blablabla %c",'%' the problem does not occure. could th

Re: calling gtk_menu_popup from a button's "clicked" signal

2005-07-25 Thread Hubert Sokołowski
ok, "button-press-event" on the button did the job :) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

calling gtk_menu_popup from a button's "clicked" signal

2005-07-25 Thread Hubert Sokołowski
Hi! I have a GtkMenu which I want to popup when a user clicks a button. my function that is called when user clicks the button looks like this void on_zamowienia_button_print_clicked (GtkButton *button, gpointer user_data) { ... } How do

Re: Doubt about free or dont free

2005-07-22 Thread Hubert Sokołowski
On Fri, 22 Jul 2005 16:31:39 -0300 Arx Henrique <[EMAIL PROTECTED]> wrote: > Hi all, > > i have a GtkEntry with a signal "activate" and this handle: > > void translate(GtkEntry *widget, gpointer *data) { > const gchar *text; > text = gtk_entry_get_text(widget); > gui_app_notify

Re: How to convert file names from

2005-07-20 Thread Hubert Sokołowski
On Wed, 20 Jul 2005 13:22:52 +0200 (CEST) Christian Schneider <[EMAIL PROTECTED]> wrote: > /* Open file with iso_string */ > file = fopen (iso_string, "rb"); > > file == Null if a german special charakter is > involved! it is better to use GIOChannel for operations on files. I have experienced st

Re: Compiling gtk apps on MingW

2005-07-01 Thread Hubert Sokołowski
On Fri, 1 Jul 2005 12:06:28 -0300 Ricardo Malafaia <[EMAIL PROTECTED]> wrote: > Hello, all! > > I'm sure this has been asked before and i searched the archives, but > couldn't find anything to help me. So, can anyone give me a hand? > > I'm having problems with the linking step, as noted in mes

Re: How compile resource inside .o file?

2005-07-01 Thread Hubert Sokołowski
On Fri, 1 Jul 2005 12:18:05 +0800 (CST) __ ___ <[EMAIL PROTECTED]> wrote: > I want all icons and images my programm used be > packaged in to the final execute binary file. > How can I do this? GIMP has an option to convert images to C source file. it should be easy then to load graphics from

Re: gtk-app-devel-list Digest, Vol 14, Issue 55 (fwd)

2005-06-24 Thread Hubert Sokołowski
On Fri, 24 Jun 2005 16:22:01 +0200 (SAST) Alf C Stockton <[EMAIL PROTECTED]> wrote: > > > On Fri, 24 Jun 2005 15:27:15 +0200 (SAST) > > Alf C Stockton <[EMAIL PROTECTED]> wrote: > > > >> On Fri, 24 Jun 2005, Hubert Sokolowski wrote: > >> > >>> > >>> look at Inno Setup > >>> > >> Trying to read be

Re: gtk-app-devel-list Digest, Vol 14, Issue 55 (fwd)

2005-06-24 Thread Hubert Sokołowski
On Fri, 24 Jun 2005 15:27:15 +0200 (SAST) Alf C Stockton <[EMAIL PROTECTED]> wrote: > On Fri, 24 Jun 2005, Hubert Sokolowski wrote: > > > > > look at Inno Setup > > > Trying to read between the lines is it then being suggested that my > development/deploy scenario should be as follows:- > 1) Dev

Re: Pango GTK+ on Windows

2005-06-23 Thread Hubert Sokołowski
On Thu, 23 Jun 2005 16:58:37 +0200 (SAST) Alf C Stockton <[EMAIL PROTECTED]> wrote: > > What I did not point out in my original message is that my program > works > perfectly on my development box but when moved to my clients machine, > where they do not have GTK installed, it fails with the pa

Re: Pango GTK+ on Windows

2005-06-22 Thread Hubert Sokołowski
On Wed, 22 Jun 2005 22:53:25 +0300 Tor Lillqvist <[EMAIL PROTECTED]> wrote: > Hubert =?ISO-8859-2?Q?Soko=B3owski?= writes: > > I have found a problem in my case. I was using name 'bin' for a > > directory when my program and Gtk runtime was in. > > Could you post the exact directory structure?

Re: Pango GTK+ on Windows

2005-06-22 Thread Hubert Sokołowski
I have found a problem in my case. I was using name 'bin' for a directory when my program and Gtk runtime was in. When I changed the name to something else then 'bin' the problem dissapeared, the program runs just fine. ___ gtk-app-devel-list mailing l

Re: Pango GTK+ on Windows

2005-06-22 Thread Hubert Sokołowski
On Wed, 22 Jun 2005 10:34:49 -0600 Pete Nagy <[EMAIL PROTECTED]> wrote: > > This looks like a problem I fixed by editing the pango.modules file. I think the problem is not that. I have two programs which I compile using the same build tools (gcc from mingw) and run with the same runtime environm

Re: how to set icon for gtk app on windows?

2005-06-20 Thread Hubert Sokołowski
I found a way to do that, maybe someone will need it too. You have to create a resource file that references your icon. --- begin foo.rc --- 1 ICON "foo.ico" --- end foo.rc --- Then compile this file with windres windres foo.rc fooicon.o Then link your program. gcc -o foo.exe -mwindows foo.

how to set icon for gtk app on windows?

2005-06-20 Thread Hubert Sokołowski
Hi! I post this question on this list because I believe I can find here programmers that use gtk on windows. I want to add an icon to my gtk application on windows. Anyone know how to do that ? Are there any free tools on the net for this? I found some to extract icons from executable files but n

Re: Pango GTK+ on Windows

2005-06-18 Thread Hubert Sokołowski
On Sun, 19 Jun 2005 08:37:02 +0200 Alf Stockton <[EMAIL PROTECTED]> wrote: > The error I am getting from a program I wrote using GTK+ 2.6.7 on > Windows reads:- > > Pango-ERROR**:file shape.c: line 75(pango-shape) assertion failed: > (glyphs->num_glyphs > 0) aborting > > Help . what have I

Re: (pango_shape): assertion failed: (glyph->num_glyphs > 0)

2005-06-18 Thread Hubert Sokołowski
On Fri, 17 Jun 2005 21:29:24 -0700 Mark Ivey <[EMAIL PROTECTED]> wrote: > I saw a very similar error message when using PyGtk & py2exe on > windows...perhaps it is something similar. > > I was using py2exe to package up all the files needed to run my PyGtk > program, including DLLs. It was copyi

Re: [gsf] stdin/stdout + "tee"

2005-06-14 Thread Hubert Sokołowski
On Tue, 14 Jun 2005 20:08:13 +0200 Uzytkownik <[EMAIL PROTECTED]> wrote: > 1. How I should access to std{in,out,err} is recommended? > By FILE * or IOChannel *? better use GIOChannel. I experienced strange problems on windows platform when using FILE in a gtk application.

Re: update a row in GtkListStore

2005-06-13 Thread Hubert Sokołowski
On Mon, 13 Jun 2005 23:25:33 +0200 Luka Napotnik <[EMAIL PROTECTED]> wrote: > Hello! > > I get my list selection by: > selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); > ... > > The I get the row by: > gtk_tree_model_get (model, &iter, 0, &task_id, -1); > > I have intentions to cha

(pango_shape): assertion failed: (glyph->num_glyphs > 0)

2005-06-13 Thread Hubert Sokołowski
Hi! I get this error while running a gtk program on windows compiled using gcc mingw. Then a window from microsoft visual c++ runtime library appears saying "this application has requested the Runtime to terminate...". I use Tor's Gtk 2.4.14. Interesting is that I use runtime environment from ano

Re: ComboBox on Windows application

2005-06-07 Thread Hubert Sokołowski
On Tue, 07 Jun 2005 15:09:36 +0200 Alf Stockton <[EMAIL PROTECTED]> wrote: > I have a screen already built using Glade and a whole bunch of code > that > now needs maintaining. > Is it recommended that I carry on using Glade? > Glade has built an interface.c that I now need to alter to get a > c

Re: root windows

2005-05-26 Thread Hubert Sokołowski
Hi! On Thu, 26 May 2005 14:19:16 +0200 Maciej Katafiasz <[EMAIL PROTECTED]> wrote: > Unless by "build of glade" you mean autogenerated C code, which is > bad, > bad, bad thing to use. Use libglade, really. why it is bad? I use it and it works just fine and I don't have glade dependiencies. > au

Re: How do I force a window to stay on the top (or bottom)

2005-04-20 Thread Hubert Sokołowski
Hi! On Thu, 14 Apr 2005 15:01:07 -0400 Irwin Michael G DLVA <[EMAIL PROTECTED]> wrote: > Hello. I have an application in which there is a window taking up the > majority of the screen, which the user will not be allowed to move. > This > window calls other smaller windows (dialog and selection

Re: Clearing combo box

2005-04-04 Thread Hubert Sokołowski
On Mon, 4 Apr 2005 23:26:59 +0300 regatta <[EMAIL PROTECTED]> wrote: > But I still not able to understand, gtk_combo_box_remove_text is to > remove one item only > > do you mean I have to use it with loop to remove all items ? yes, until gtk_combo_box_get_active returns -1 > > also gtk_combo_bo

Re: Clearing combo box

2005-04-04 Thread Hubert Sokołowski
On Mon, 4 Apr 2005 23:07:51 +0300 regatta <[EMAIL PROTECTED]> wrote: > Hi > > I have a combo box that I want to clear it (remove all the items) and > add new items to it (I am using C) here is the code I tried but it > didn't work, > > gtk_combo_box_set_model(Combo,NULL); > gtk_combo_box_insert_

Re: gtk_calendar_get_date once again

2005-03-29 Thread Hubert Sokołowski
On Tue, 29 Mar 2005 10:16:33 -0300 John Coppens <[EMAIL PROTECTED]> wrote: > And the manual says in > > http://developer.gimp.org/api/2.0/gtk/GtkCalendar.html#GtkCalendar-struct > > - > Note > > Note that month is zero-based (i.e it allowed values are 0-11) while > selected_day

Re: Win32 gtk performance sucks (all versions), any suggestions for finding the bottlenecks?

2005-03-25 Thread Hubert Sokołowski
Hi! On Fri, 25 Mar 2005 20:44:16 -0800 (PST) Dave Andruczyk <[EMAIL PROTECTED]> wrote: > > I have seen my app run about 10-50x slower on win32 and doing simple > things > like changing a widgets color or text can max the CPU EASILY on a 1Ghz > Win2k > install. on linux the cpu penalty is usual

Re: Using arguments in callbacks

2005-03-23 Thread Hubert Sokołowski
Hi, On Wed, 23 Mar 2005 11:59:39 -0500 Irwin Michael G DLVA <[EMAIL PROTECTED]> wrote: > Hello. I am creating a GUI with Glade (V2.6.8). I would like to have > several widgets call the same callback function, but with different > arguments passed to the function (e.g. the widget that called th

Re: Change color of widgets

2005-03-23 Thread Hubert Sokołowski
On Wed, 23 Mar 2005 12:58:22 -0500 Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > Adrian Hoe wrote: > > Hi, > > > > I am new to this list and am developing some gui application on > > linux. > > > > My application would require to toggle between day or night mode. > > When > > the application

Re: button receives focus but can't be pressed in

2005-03-07 Thread Hubert Sokołowski
On Mon, 7 Mar 2005 20:45:41 +0100 Felix Kater <[EMAIL PROTECTED]> wrote: > Hubert Soko__owski: > > > do you synchronize these threads somehow? if it is possible to set > > sensitive on this button by the main thread then try to do this. > > I don't get your point. > > I do it this way: With the

Re: button receives focus but can't be pressed in

2005-03-07 Thread Hubert Sokołowski
On Mon, 7 Mar 2005 18:09:46 +0100 Felix Kater <[EMAIL PROTECTED]> wrote: > > Me again. Same problem with gtk-2.6.4/glib-2.6.3/win32. > > > To sum up: > > If the mouse pointer on a button which was insensitive and gets > sensitive (by another thread), then the button is never highlighted > and

Re: entering date

2005-02-25 Thread Hubert Sokołowski
On Fri, 25 Feb 2005 17:10:23 +0100 Stephane Raimbault <[EMAIL PROTECTED]> wrote: > > I don't know any standard widget which do that. > You can try my lib : libgtkentrymask at copyleft.free.fr this can be exactly what I need, thanks a lot. It would be nice to have such a functionality in GtkEntry

Re: http://www.gtk.org/tutorial/sec-anupgradedhelloworld.html

2005-02-17 Thread Hubert Sokołowski
On Thu, 17 Feb 2005 13:05:43 +0100 Gert Cuykens <[EMAIL PROTECTED]> wrote: > static void callback( GtkWidget *widget, gpointer data ){ > g_print ("Hello again - %s was pressed\n", (gchar *) data); > } > > why do they put () around gchar ? > why can it not be gchar *data ? > > What does %s

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 __