Re: Problem with threads in my GTK+ application...

2008-07-11 Thread Michael Torrie
Dutta, Seemanta wrote: But I would still like to know how to do this using threading. I tried http://research.operationaldynamics.com/blogs/andrew/software/gnome-desk top/gtk-thread-awareness.html hoping it would solve my problem but even that did not work :-( It's very easy. Whenever your

Re: Gtk performance

2008-06-11 Thread Michael Torrie
Gerardo Di Iorio wrote: Hi, i started to make an application in gtk. I have find on the web why gtk is slow and require much memory! Is true? Yes, no, maybe. From my experience, speed is really divided into two things: perception and throughput. On the perception side of things, sometimes

Re: Problems with hpaned widget

2007-05-05 Thread Michael Torrie
On Sat, 2007-05-05 at 08:15 +0200, Klay Martens wrote: Hi all, First, I am relatively new to GTK, so go easy if this is a complete no brainer... I am developing an app for which I would like to use several hpaned and vpaned widgets (developing in C on Visual C++ 2005 Express). But... When I

Re: Accessing a GtkTable's children.

2007-04-07 Thread Michael Torrie
On Sat, 2007-04-07 at 05:15 -0500, Craig Pemberton wrote: I just discovered lookup_widget()! This makes life much easier. The code now looks like the following. I'm not sure if this is best, but I used it by getting the parent and then using lookup_widget() to look through it's children.

Re: cross-compiling a GTK app, linux - darwin

2007-03-29 Thread Michael Torrie
On Thu, 2007-03-29 at 22:42 -0400, Allin Cottrell wrote: Does anyone have expertise/recommendations to share, on the subject of compiling a GTK app on x86 Linux for the powerpc-apple-darwin target? I'm familiar with the linux - win32 cross. This is relatively easy since mingw makes the

Re: new to gtk, how can I limit widgets?

2007-03-17 Thread Michael Torrie
On Sat, 2007-03-17 at 17:12 -0700, ian baber wrote: I'm working on a project using the GTK2 perl package, and I need a way to set absolute limits on a container widget. The program needs to be able to divide up the screen using several containers, and then hand each of those off to a

Re: new to gtk, how can I limit widgets?

2007-03-17 Thread Michael Torrie
into a layout, tell it to expand but not fill. This way the window has a minimum size, but if the window is expanded, the plugin widgets will still show properly, albeit with a bit of whitespace around them. Michael On Mar 17, 2007, at 6:11 PM, Michael Torrie wrote: On Sat, 2007-03-17

Re: libglade frustration redux

2007-02-17 Thread Michael Torrie
On Sat, 2007-02-17 at 13:18 -0500, Gerald I. Evenden wrote: LOL I give up! I throw in the towel. Sorry to hear that. I believe that you could have found GTK programming very rewarding. Note that I did not say libglade because I think you had difficulties because you focused on libglade and

Re: libglade frustration redux

2007-02-16 Thread Michael Torrie
On Fri, 2007-02-16 at 22:13 -0500, Gerald I. Evenden wrote: I believe that much of the above and following issues are reasonably well resolved but there are serious problems with the adequacy of some sections (glib) but I will address these to a specific issue on a subsequent email I'm not

Re: libglade frustration

2007-02-13 Thread Michael Torrie
On Tue, 2007-02-13 at 09:47 -0500, Tristan Van Berkom wrote: The testlibglade program that comes with libglade is about 100 lines of code + some helpfull comments about using the library and about how the library works. I hope that this source file in the libglade tarball was easy to find.

Re: libglade frustration

2007-02-13 Thread Michael Torrie
On Tue, 2007-02-13 at 14:16 -0500, Tristan Van Berkom wrote: PS: This is not a personal thing, countless hordes have come in search of a libglade example without ever consulting the tarball, its just getting a little frustrating by now - but what can we do to improve the situation ? I was

Re: GdkWindow's position

2007-02-04 Thread Michael Torrie
On Sun, 2007-02-04 at 03:25 -0300, Matí­as Alejandro Torres wrote: gdk_window_get_root_origin throws an error If i try to call it before the widget is exposed: As it should. [..] assertion `GDK_IS_WINDOW (window)' failed Is there a way to get a widget's GdkWindow before it is drawn?

Re: drawing moving shapes

2007-02-02 Thread Michael Torrie
On Fri, 2007-02-02 at 18:01 -0700, Rob Barnes wrote: It seems to work fine without using g_idle and just using gdk_threads_enter()/gdk_threads_leave(). What do I gain from using g_idle? Well you gain simplicity, and you can avoid the gdk locking stuff. Also on some platforms, particularly

Re: Need to disable system menu

2006-12-08 Thread Michael Torrie
On Fri, 2006-12-08 at 15:46 +0530, Anurag Chaudhary wrote: I need to stop the popping up of the system menu that appears on right-clicking on the title bar. Any help?? This is not something you can reliably do from GTK. The system menu and titlebar is a function of the running window manager,

Re: Finding Version of GTK installed

2006-12-06 Thread Michael Torrie
On Tue, 2006-12-05 at 12:06 -0500, David Vandepol wrote: Thanks, you're right, I am looking for a run-time type of detection to see if the GUI for the installer will even show up. The installer that I'm creating is Java based, and I'm trying not to mix too many languages unneccessarily, is

RE: Suppressing command window

2006-11-28 Thread Michael Torrie
On Mon, 2006-11-27 at 03:32 -0800, Sai Korada wrote: May be I was not clear in explaining my problem. I have used the -mwindows, which essentially suppresses all the debugging info(may be my printfs). But my requirement is different I've packaged the application along with the required GTK

Re: run a new application

2006-11-23 Thread Michael Torrie
On Fri, 2006-11-24 at 10:26 +0800, sunzysjzri wrote: sunzy writes: how to run a new application in a button's callback function?? system() ? --tml would you like to write it clearly? e.g. my button callback function: void leftbutton_clicked(GtkWidget *widget, gpointer my_data) {

Re: run a new application

2006-11-23 Thread Michael Torrie
On Fri, 2006-11-24 at 04:42 +0200, Tor Lillqvist wrote: Michael Torrie writes: there are routines in glib that should help you: http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html This is probably the most portable mechanism for running processes

Re: static linking on mingw/msys

2006-10-13 Thread Michael Torrie
On Fri, 2006-10-13 at 21:10 +0200, Martin Schmeisser wrote: Hi List, i tried to compile a rather simple Gtkmm app with static linking for Windows platforms (compiling on a win box too). I used Mingw/Msys and the gtkmm-devel and gtk-devel installers from the net. I can compile my app with

Re: Unsolved clipping problem

2006-09-03 Thread Michael Torrie
On Sun, 2006-09-03 at 01:33 -0700, Tintin72 wrote: Hi again, Just for information, I would like you to see exactely the nature of this clipping problem. So I captured a little .avi movie (900ko) from my pc's screen. http://web8.free.fr/images/pbClipping.avi Quality is not very good but

Re: memory leak with gtk+-2.8.20-r1

2006-08-06 Thread Michael Torrie
On Sun, 2006-08-06 at 20:55 +0200, Vincent Torri wrote: ==29096==still reachable: 41,380 bytes in 618 blocks. That's completely normal. Surely they're static variables holding pointers to freed memory. maybe this comes from glib memory allocator. I have such results with

Re: Simple On-Screen Keyboard: Docked like panel

2006-06-28 Thread Michael Torrie
On Tue, 2006-06-27 at 18:58 +0100, Chris Jones wrote: Thankyou, this would appear to be tricky using python unfortunately. I don't believe the language has anything to do with it. The examples might by in python, but the X11 WM hints are still done the same way in C or any other language.

Re: Gtk+ Modality Problem

2006-06-24 Thread Michael Torrie
On Thu, 2006-06-22 at 10:02 +0200, Atanas Atanasov wrote: I managed to make it partially modal using a combination of functions: set_modal, grab_add and set_transient_for. However I can still say resize the window behind. It seems as you said that this i supposed to be the behaviour since

Re: gtk 2.8 on Windows 98

2006-06-24 Thread Michael Torrie
On Thu, 2006-06-22 at 08:48 -0400, Allin Cottrell wrote: Just wanted to check: is the statement by Tor Lillqvist at http://bugzilla.gnome.org/show_bug.cgi?id=316878 the last word on this issue? (The issue concerns gtk, cairo, and fonts on win98.) Tor says -- or rather, asks: [W]hat

Re: Can't seem to get rid of the console window (Windows port)

2006-06-11 Thread Michael Torrie
On Sun, 2006-06-11 at 22:49 +0300, Tor Lillqvist wrote: ... but you don't use it in the linking phase, which is when it is needed. You can also change the executable type after the fact using the exetype.pl program found at http://www.devdaily.com/scw/perl/perl-5.8.5/win32/bin/exetype.pl.shtml

Re: correction in gtk-runtime 2.8.17

2006-04-25 Thread Michael Torrie
On Tue, 2006-04-25 at 14:48 +0200, David Necas (Yeti) wrote: On Tue, Apr 25, 2006 at 05:52:55AM +0200, Benoit Carpentier wrote: Hi everybody, A new version of gtk runtime 2.8.17 is released. There was a trouble with Pango because the name of the folder is not 1.4.0 but 1.5.0 now. So

Re: attaching to a process and injecting events

2006-04-23 Thread Michael Torrie
On Sun, 2006-04-23 at 11:40 -0400, Chris Capon wrote: Hi all: Is it possible (relatively easy) to write a tool which can attach to a running GTK process and inject events into its event handler? I am interested in automating the import of OFX/QFX files into GNUCash and can't see an easy

Re: Help! how to install gtk?

2006-04-08 Thread Michael Torrie
On Sun, 2006-04-09 at 02:28 +0200, LI Ying wrote: Hello, everyone I tried to install Gtk in my fedora core 4 for a whole day.But I always meet the same problem: when I try to configure GTK, it tells me that some conditions are not met ( the versions of atk,glib,etc are too old),but I have

Re: can't catch mouse movement using gtk and gtkgl

2006-04-08 Thread Michael Torrie
On Sat, 2006-04-08 at 23:17 -0400, Dov B. Kruger wrote: I have previously written about my application, in which despite requesting all events, I am not seeing mouse wheel or mouse motion events. In desperation, I have stripped all my code out, and have a bare framework that uses the

Re: Fundamentals of GTK

2006-04-04 Thread Michael Torrie
On Tue, 2006-04-04 at 19:20 -0700, 3saul wrote: OK I'm having some trouble understanding how a GTK application actually works. I've created a few terminal based applications in C for linux. When I want my application to continually perform a particular function I set up a loop. Within this

Re: Changing Background Color

2006-04-02 Thread Michael Torrie
On Sun, 2006-04-02 at 07:24 -0700, Sandeep KS wrote: Hello, I have a main window and inside that i have another scrolled window. Now i am able to change the background color of the main window.. but i cant change the background color of the scrolled window. Can anyone tell me

Re: drag and drop

2006-03-26 Thread Michael Torrie
On Mon, 2006-03-27 at 10:18 +0530, prabhakar kushwaha wrote: hi i have gone through whole gtk tutorial. but i cann't able to find any example of drap and drop. if anyone send me one i will be highly obliged.. This dates back a couple of years, but the APIs are still very similar:

Re: About layouts

2006-02-15 Thread Michael Torrie
Fernando Apesteguía wrote: But my app has a lot of labels and buttons so I estimated I need a lot of layouts creating a complex hierarchy (vbox inside a table layout, inside a hbox, inside a table layout again...) Did I forget a simply way to make this?? Most moderately complicated GUI

Re: GTK and threads

2006-02-06 Thread Michael Torrie
kornelix wrote: Thanks to the three of you for your help and information. I will continue trying to make GTK work for my threaded application, and post progress (or lack thereof). I am still confused (by apparently conflicting inputs from the GTK FAQ and yourselves) about when I must use

Re: GTK and threads

2006-02-06 Thread Michael Torrie
kornelix wrote: Thanks. I eagerly anticipate your example. I have attached a sample file that uses threads in the way you described in your last post. The gui consists of a single text display and a button. When you click the button, a new thread is started that periodically (every

Re: GTK and threads

2006-02-06 Thread Michael Torrie
Alan M. Evans wrote: I generally like to make code examples compile without warning. Did you even try to compile this? Of course. It definitely compiles. and runs without crashing. :) I'll ignore your snippy tone and say that, yes eliminating warning is a good thing. However for this

Re: GTK and threads

2006-02-06 Thread Michael Torrie
Boncek, John wrote: How did you get an attachment to work with the list? I have never known that to work and often wished it would. I simply attached it normally and sent it off! Perhaps you have some attachment filtering on your mail server that you send through? I don't know. Michael

Re: defective GTK app crashes gnome

2006-02-06 Thread Michael Torrie
kornelix wrote: I have saved a minimized version of a defective GTK app that locks up the gnome windowing system so that a reboot is required. Is anyone out there in GTK land interested, or is this old news? This is new news to me. The only thing that I know of that would make a machine

Re: Gtk Xara

2005-10-17 Thread Michael Torrie
for sure. Perhaps Xara would even be best ported to run on top of Cairo, since it is illustration software. -- Michael Torrie [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: A springs and struts widget for GTK+

2005-08-16 Thread Michael Torrie
-- Michael Torrie [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

<    1   2