Re: gtk-app-devel-list Digest, Vol 18, Issue 31

2005-10-17 Thread Lalit Kumar
Hi, I want some help from the group. I am just creating a sample calculator that will have button with Indian language numbers on it. That everything on the calculator will be in indian languageHindi). I am able to create calculator using gtk library in english. But I am facing problem how to rend

RE: compiling g_module plugin on (cygwin) win32

2005-10-17 Thread Tor Lillqvist
Jorge Monsalvo writes: > Can you point me to the docs for g_module_xxx functions. http://developer.gnome.org/doc/API/2.0/glib/glib-Dynamic-Loading-of-Modules.html > I checked for g_module_find A typo, I meant g_module_symbol. --tml ___ gtk-app-dev

RE: compiling g_module plugin on (cygwin) win32

2005-10-17 Thread Jorge Monsalvo
Tor, Can you point me to the docs for g_module_xxx functions. I checked for g_module_find on version 2.6.7 (which is what I'm working with) and I couldn't find it. Is it new on 2.8.x? Thanks Jorge Monsalvo -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nomb

Re: Implementing "cpio -tv < file.cpio" with glib routines

2005-10-17 Thread Olivier Sessink
Colossus wrote: > - Messaggio originale Da: Olivier Sessink > <[EMAIL PROTECTED]> > >> 1) spawn 'cpio -tv' with a pipe in and a pipe out 2) create >> non-blocking g_io_channels from these pipes 3) register callbacks >> with g_io_add_watch() for the io channels, one of these functi

Re: data acqusition, display and control

2005-10-17 Thread Tristan Van Berkom
Premsagar C wrote: I am using gtk to develop a control interface. Am a bit new to this. BAsically I am acquiring data using some library functions and dispalying them in 6 text boxes . When i click on the bacq function this acquistion starts. gtk_signal_connect(GTK_OBJECT(bacq),"clicke

Re: Gtk && Xara

2005-10-17 Thread Tomaz Canabrava
> > >That's interesting. They have some simple speed charts here: > >http://www.xaraxtreme.org/about/ > >which seems to show xara's software renderer is 5 - 10x faster than > cairo's. Though it's not clear what cairo backend or platform they did the > timings on. I guess windows? > > I guess not, s

data acqusition, display and control

2005-10-17 Thread Premsagar C
I am using gtk to develop a control interface. Am a bit new to this. BAsically I am acquiring data using some library functions and dispalying them in 6 text boxes . When i click on the bacq function this acquistion starts. gtk_signal_connect(GTK_OBJECT(bacq),"clicked",GTK_SIGNAL_FUNC(bu

Re: Gtk && Xara

2005-10-17 Thread John Cupitt
On 10/17/05, Michael Torrie <[EMAIL PROTECTED]> wrote: > On Mon, 2005-10-17 at 13:59 -0700, Colossus wrote: > > Tomaz Canabrava wrote: > > > Since the Cairo rendering engine is *SLOW* and the Xara Extreme is being > > > ported to linux, with the full API, > > > i think that´s a good idia to port th

RE: stop on Gtk-WARNING

2005-10-17 Thread Boncek, John
Thanks to those who answered. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boncek, John Sent: Monday, October 17, 2005 11:36 AM To: gtk-app-devel-list@gnome.org Subject: RE: stop on Gtk-WARNING The same for GLib-GObject-WARNINGs and other similar ones.

Re: stop on Gtk-WARNING

2005-10-17 Thread John Cupitt
On 10/17/05, Boncek, John <[EMAIL PROTECTED]> wrote: > When a GTK app gets Gtk-WARNINGs without actually stopping, it can be hard > to determine exactly where they're coming from. Is there a way to tell > GTK to stop immediately on such a warning? This would allow using a > debugger to localize t

Re: stop on Gtk-WARNING

2005-10-17 Thread Tim Flechtner
there is an argument you can pass in to the application at invocation that does this. i think it is --g-fatal-warnings (eg ./foo --g-fatal-warnings). -tim ** Boncek, John wrote:

Re: Gtk && Xara

2005-10-17 Thread Michael Torrie
On Mon, 2005-10-17 at 13:59 -0700, Colossus wrote: > Tomaz Canabrava wrote: > > Since the Cairo rendering engine is *SLOW* and the Xara Extreme is being > > ported to linux, with the full API, > > i think that´s a good idia to port the Gtk engine to use Xara´s System since > > Who told you Cairo i

RE: stop on Gtk-WARNING

2005-10-17 Thread Boncek, John
The same for GLib-GObject-WARNINGs and other similar ones. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boncek, John Sent: Monday, October 17, 2005 11:33 AM To: gtk-app-devel-list@gnome.org Subject: stop on Gtk-WARNING When a GTK app gets Gtk-WARNINGs

stop on Gtk-WARNING

2005-10-17 Thread Boncek, John
When a GTK app gets Gtk-WARNINGs without actually stopping, it can be hard to determine exactly where they're coming from. Is there a way to tell GTK to stop immediately on such a warning? This would allow using a debugger to localize the first warning much more easily. __

Re: Multithreading and GTK widgets

2005-10-17 Thread Tristan Van Berkom
Alan M. Evans wrote: [...] I would have the GUI thread update the list/tree models, but the GUI thread spends most of its time sitting in gtk_main. Ofcourse it does, Anything that a GTK+ gui does is inside gtk_main(), you can get the gui thread to do the updating by passing the appropriate d

Performances issues (GTK 2.6.4 / Win32, GtkGlExt, custom main loop)

2005-10-17 Thread Omar Cornut
w it looks like: http://www.miracleworld.net/misc/code/gtktool-20051017-01.png Mainloop is something like: initialize interface, create widgets, etc. while (!user_asked_to_quit) { gtk_main_iteration_do(FALSE); update logic; // This sets the value of

Re: Multithreading and GTK widgets

2005-10-17 Thread Alan M. Evans
On Sun, 2005-10-16 at 15:59, Michael Matthews wrote: > Hi! > > I am converting my program to use multiple threads: the primary > thread for the GTK stuff, and the worker threads for all the > time-consuming work that will be performed in the background. > The GUI thread takes input from the user a

gtk window size/position on win32?

2005-10-17 Thread Allin Cottrell
Quoting the reference on gtk_window_position: "If you are saving and restoring your application's window positions, you should know that it's impossible for applications to do this without getting it somewhat wrong because applications do not have sufficient knowledge of window manager state.

breaking from gtk_main_iteration

2005-10-17 Thread Hans Yperman
I have a program with 2 threads. The gui thread is essentially: void guithread(){ for(;;){ gtk_main_iteration(); do_internal_processing(); } } The other thread, worker thread, is sometimes spawned by do_internal_processing, and does not use gtk at all. It is essentially: void worker

Re: Gtk && Xara

2005-10-17 Thread Colossus
Tomaz Canabrava wrote: Since the Cairo rendering engine is *SLOW* and the Xara Extreme is being ported to linux, with the full API, i think that´s a good idia to port the Gtk engine to use Xara´s System since Who told you Cairo is slow in comparison to Xara Extreme ? Xara Extreme is not GPL so

Gtk && Xara

2005-10-17 Thread Tomaz Canabrava
Since the Cairo rendering engine is *SLOW* and the Xara Extreme is being ported to linux, with the full API, i think that´s a good idia to port the Gtk engine to use Xara´s System since they are the fastest avaliable. i have *NO* idia how to do this... but since i´m new to software writting, i don´

Re: Usage of g_str_strip

2005-10-17 Thread Sankar P
Thanks a lot. Your explanation was crisp/clear and probably could be added to devhelp. Regards, Sankar P On Mon, 2005-10-17 at 13:02 +0200, Iago Rubio wrote: > On Mon, 2005-10-17 at 14:11 +0530, Sankar P wrote: > > Hey all, > > > > There is a function g_strstrip defined to strip-off the leading

Re: Usage of g_str_strip

2005-10-17 Thread Iago Rubio
On Mon, 2005-10-17 at 14:11 +0530, Sankar P wrote: > Hey all, > > There is a function g_strstrip defined to strip-off the leading and > trailing spaces from a string. However, the working of this function is > a bit confusing. > > I have the following code-snippet : > > name = g_strstrip ( g_str

Invisible/missing cursor in editable

2005-10-17 Thread Nikolaj Kiær Thygesen
Hey list, Has anyone here experienced (and solved) a case of missing cursors when inline editing a string in a GtkTreeView?? If so, I would sure like to see the solution. Everything else works, it's just a bit confusing not knowing where in the string the next character will appear. I h

Usage of g_str_strip

2005-10-17 Thread Sankar P
Hey all, There is a function g_strstrip defined to strip-off the leading and trailing spaces from a string. However, the working of this function is a bit confusing. I have the following code-snippet : name = g_strstrip ( g_strdup (gtk_entry_get_text(GTK_ENTRY (name_entry; g_free (name); Is

Re: How to use pixmaps in GTK+ applications?

2005-10-17 Thread Tor Lillqvist
>> My question is, how to use pixmaps in GTK+? Can I make them resouces >> as in Win32? (As already was said, it's more "GTKish" (and 100% portable) to convert them into constant C data using gdk-pixbuf-csource. If you really want to use Win32 resources, sure, that should work too. >> If I use th

Re: How to use pixmaps in GTK+ applications?

2005-10-17 Thread Zhou Qingbo
On 10/17/05, Iago Rubio <[EMAIL PROTECTED]> wrote: > > > > [snip: some overcomplicated auto*-foo stuff] > > Gee, almost "overcomplicated" ... :) > > > I'd suggest just defining a simple directory under $datadir. No need to > > touch configure.ac at all, and this method is easy to use and relativel

Re: How to use pixmaps in GTK+ applications?

2005-10-17 Thread Iago Rubio
On Sun, 2005-10-16 at 22:54 -0700, Brian J. Tarricone wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Iago Rubio wrote: > > On Sun, 2005-10-16 at 15:03 +0800, 周清博 wrote: > > > >> If I use them as ordinary files, how can I know the path > >>after users' installation? What should I do i