Re: Stop alt-spacebar window menu

2009-05-28 Thread Michael L Torrie
Actually I believe it is here: http://library.gnome.org/devel/gdk/stable/gdk-General.html#gdk-keyboard-grab ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Stop alt-spacebar window menu

2009-05-28 Thread Michael L Torrie
Brian J. Tarricone wrote: > Well, you have a couple choices: Actually there is a third option. You can grab the focus like VMWare or DosEMU does and prevent any keystrokes from going to the WM. Of course you'll have to provide a way to release the grab. I believe the API is in GdkDisplay area[1

Re: App blueprint, advice please!

2007-12-19 Thread Michael L Torrie
Patrick wrote: > Lets say a customer had a detector and a pump to pump a sample through > it. We could write a Bash script that works something like this: > > -icon launches Bash script > -sends variable " 2" to pump command to pump 2 ml per minute > -pump command sends signal to serial port or G

Re: C vs C++ for GTK

2007-12-13 Thread Michael L Torrie
Dan H wrote: > On Wed, 12 Dec 2007 09:26:25 -0700 > Michael L Torrie <[EMAIL PROTECTED]> wrote: > >> GTKmm is based on some very nice C++ abstractions around pointers, >> providing many of the same benefits as any managed language with >> pure C++. They are

Re: How to implement a UI like Microsoft Word table by GTK??

2007-12-12 Thread Michael L Torrie
li_top wrote: > Hi all > I have a problem to implement a UI like Microsoft Word table . > That is , The UI have tables . User can combine 2or3 or more tables to one > table. How to > > do this UI? Please help me . Your question is too vague to really be answered usefully. But it sounds to me l

Re: C vs C++ for GTK

2007-12-12 Thread Michael L Torrie
Jon Harrop wrote: > On Saturday 24 November 2007 22:11, Patrick wrote: >> I thought that C++ must be the way to go as it can do everything that C >> can "plus plus" but some heavy hitters don't seem enthused with it, >> Linus Torvalds in particular has been quoted as calling it a "horrible >> langu

Re: Developer COBOL + GTK

2007-12-09 Thread Michael L Torrie
Ronaldo Ottoni wrote: > Hi, I am a developer of the COBOL language and would like to know if there > is possibility of using the API GTK with the COBOL language, if there is a > possibility, I would like to receive assistance from members. There is a COBOL .NET compiler (would run on mono in linux

Re: memory leak in gtk

2007-11-30 Thread Michael L Torrie
c f wrote: > > I have checked the GTK documentation and it states that gtk_exit free > all resources allocated for GTK+. gtk_exit is depricated and using > exit is recommended. I have tested both but non of them improved the > situation (still more than 5000 leaks). This is normal. GTK is not go

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
JAMES SCOTT wrote: > To list members following this subject: I have a question - not a > flame, as I try to understand the diversity of responses to this > topic. > > How many of you who have suggested "Patrick" learn something other > than C, know C already for yourself. Over the course of my >

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
Patrick wrote: > Hi Everyone. > > Sorry for the flame war bait, I know how passionate language debates > get but I need some guidance. I am using PyGTK right now and I am happy > with it, but a day is coming soon were the speed limitations and > less-then-straight-forward threading will be an

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
Benoît Dejean wrote: >> In fact the GObject library (on which GTK is based) is an example of >> how full object-orientation can be achieved in C. Of course other C++ >> features like templates, operator overloading (ugh!) and namespaces >> are unique. > > This is totally a blocker for beginners

Re: Building and packaging for Windows - theme?

2007-11-05 Thread Michael L Torrie
Daniel Atallah wrote: > On 11/1/07, Andrew Smith <[EMAIL PROTECTED]> wrote: >> Thanks everybody. I managed to build ISO Master on mingw and run it on a >> stock Windows box (just copied some dlls from the mingw bin directory), >> looks like the GTK parts work fine. Still, I'll be sure to look at al

Re: 16 bits grayscale images

2007-09-30 Thread Michael L Torrie
alex wrote: > Actually I am porting a Windows .NET software to GTK. > So some procedure I use (as false color convertion) is written. I will > use it as is because it's not depending on GTK or else... Are you porting it to GTK# and C# then? > > Anyway... > First I create a color structure wich d

Re: Porting terminal applications to GTK

2007-09-28 Thread Michael L Torrie
Unix OS wrote: > Hello, > > I'm an undergraduate student at James Madison University. I've > decided to convert one of my CS classes to an Honors class, which > involves doing some sort of extra project typically. Anyway, I've > been working with my professor, and he wants to try porting his tex

Re: A humble request

2007-05-30 Thread Michael L Torrie
On Wed, 2007-05-30 at 22:45 +0530, Sundararaman wrote: > 1) I *cannot* log in successfully with my account. This means that I am > currently not a member of this mailing list. I do not know why I am still > getting all these emails. Not his doesn't mean that at all. In fact most list subscribers

Re: How to create a self contained GTK+ Application for Linux

2007-05-23 Thread Michael L Torrie
On Wed, 2007-05-23 at 15:12 -0700, Daniel Yek wrote: > (Sorry for being busy-body here...; and keep in mind that I might have not > read up the thread messages in details.) No more than the rest of us. :) > > If it is to the executable path, it is easier -- by reading the symbolic > link targe

Re: How to create a self contained GTK+ Application for Linux

2007-05-23 Thread Michael L Torrie
On Wed, 2007-05-23 at 23:44 +0200, David Nečas (Yeti) wrote: > The current [working] directory is what getwd() returns. > At least that's what everyone else seems to mean by the > current directory. Well obviously getpwd is not good enough, then. What would be needed is the directory the .so file

Re: How to create a self contained GTK+ Application for Linux

2007-05-23 Thread Michael L Torrie
On Wed, 2007-05-23 at 23:07 +0200, David Nečas (Yeti) wrote: > The current directory can be anything. Particularly > anything unrelated to the location to the components of the > application. Do you really think it's a good idea to make > programs work or break depending on something so arbitrary

Re: [SPAM] Re: How to create a self contained GTK+ Application for Linux

2007-05-23 Thread Michael L Torrie
On Wed, 2007-05-23 at 19:31 +0200, David Nečas (Yeti) wrote: > And the dot is exactly what? The current directory? Yes > Does the library know the directory it was loaded from? It should, yes. If it really does, I have no idea. > Should libraries break when symlinked? No. Why would and shou

Re: Gtk+ and multithreating

2007-05-16 Thread Michael L Torrie
On Wed, 2007-05-16 at 23:22 +0100, Chris Vine wrote: > > And you would need to put the "Hello" argument on the heap, and free it > in the wrapper function, because otherwise it will go out of scope > before the idle handler is called. (Sigh). Use g_strdup() to create the > string on the heap. Si

Re: serial ports

2007-05-14 Thread Michael L Torrie
On Mon, 2007-05-14 at 18:49 +, Pavel A. da Mek wrote: > When I want to use serial ports, shall I write separate code for Windows and > for Linux, or is there some library function which would allow to do it in > the platform independent way? There's definitely no GTK library calls to suppo

Re: Can I implement such a function with gtk?

2007-04-05 Thread Michael L Torrie
On Fri, 2007-04-06 at 01:01 +0800, Kun Niu wrote: > Dear all, > > I found that there's a function called gtk_window_iconify. > I tried to add it to my delete_event function. > It worked well for me. > But I have a request that after delete_event is triggered. The minimized > window should disppear

Re: Desesperated: I need that my server draws

2007-04-05 Thread Michael L Torrie
On Thu, 2007-04-05 at 08:43 -0700, nahuel9728 wrote: > First of all: Hello everyone. I'm developing a tool for cluster. > I have a server that receive a lot of datas. > Everytime that the server receive a data, I need that draws in a pixmap. I > have all the estructure and I know how to draw in a p

Re: Any automated interface / GUI Testing tool for GTK ?

2007-04-03 Thread Michael L Torrie
On Tue, 2007-04-03 at 16:14 -0600, Michael L Torrie wrote: > On Wed, 2007-04-04 at 02:36 +0530, rush ta wrote: > > Thnx for the reply Michael... > > I am looking for GUI testing ... > > programmatically pressing button in a GUI on the screen ! Actually, here is something tha

Re: Any automated interface / GUI Testing tool for GTK ?

2007-04-03 Thread Michael L Torrie
t's not working. Anyway, perhaps someone else who has knowledge in this area can comment. > > On 4/3/07, Michael L Torrie <[EMAIL PROTECTED]> wrote: > On Tue, 2007-04-03 at 16:29 +0530, rush ta wrote: > > Hello, > > >

Re: Any automated interface / GUI Testing tool for GTK ?

2007-04-03 Thread Michael L Torrie
On Tue, 2007-04-03 at 16:29 +0530, rush ta wrote: > Hello, > > I was wondering if there is any tool for automated interface/GUI testing > tool for GTK ? Are you speaking of unit-testing, or a way of driving the gui (programmatically pressing buttons in a gui on the screen from another program) or

Re: QWidgetList QApplication::topLevelWidgets () ?

2007-03-20 Thread Michael L Torrie
On Tue, 2007-03-20 at 10:10 -0300, Carlos Savoretti wrote: > Hi all! > > A simple question... Is there any function > equivalent to topLevelWidgets in gtk ? > > Or some way to emulate it ? > > I need it in order to iterate thru all the > instances of a certain class created by an > app. If you

Re: How do I get the GTK+ exec. file to Install?

2007-03-15 Thread Michael L Torrie
alled (there are a number of installers out there to ease this for users; see http://gaim.sf.net/win32) or you can bundle the GTK dlls in the appropriate folder structure in the folder where you app installs. GTK cannot and should not be statically linked. Michael > Thanks. > >

Re: How do I get the GTK+ exec. file to Install?

2007-03-15 Thread Michael L Torrie
On Thu, 2007-03-15 at 05:09 +, Kayode Arowolo wrote: > Dear gtk-app-devel-list, > > I have been trying to download the GTK+ exec files from www.gtk.org (ftp) so > that I can install on my system but all to no avail. Please help out with > suggestions on what to do. I do not understand. Wha

Re: HTML Rendering Widget

2007-03-06 Thread Michael L Torrie
On Tue, 2007-03-06 at 23:28 +0200, Alan Lake wrote: > I'm new to the use of GTK+, Glade & libGlade. I need a widget that will > render book texts formatted with HTML. Is there a source that lists > non-standard widgets that might be downloaded and incorporated into Glade? I think there once wa

Re: win32 fonts

2007-02-28 Thread Michael L Torrie
On Wed, 2007-02-28 at 18:55 +0100, Marcelo Armengot wrote: > Hello > > I patched my last problem making TWO programs. A little one is > successfully calling the other one. > > Well, I have anoter question: > > I need release my application but if it's possible, i want to users dont > need to i

Re: libglade frustration redux

2007-02-15 Thread Michael L Torrie
://developer.gnome.org/doc/API/ Michael On Thu, 2007-02-15 at 12:27 -0700, Michael L Torrie wrote: > On Thu, 2007-02-15 at 13:46 -0500, Gerald I. Evenden wrote: > > A the originator of this thread I will rephrase my problems and make a > > larger > > scale complaint. &g

Re: libglade frustration redux

2007-02-15 Thread Michael L Torrie
On Thu, 2007-02-15 at 13:46 -0500, Gerald I. Evenden wrote: > A the originator of this thread I will rephrase my problems and make a larger > scale complaint. > > 1. My original complaint was compile/linking glade output. Thanks to M. > Torrie this problem was nicely solved and I can compile/li

Re: drawing moving shapes

2007-02-02 Thread Michael L Torrie
On Fri, 2007-02-02 at 16:02 -0700, Rob Barnes wrote: > I am using gtk_widget_queue_draw() already. The doc says,"Once the main loop > becomes idle (after the current batch of events has been processed, > roughly), the window will receive expose events for the union of all regions > that have been i

Re: Cross compilation error

2006-12-06 Thread Michael L Torrie
On Mon, 2006-12-04 at 11:37 +0530, Shyjumon N. wrote: > Hi group, >This is a very basic question, if any body can help me i will be glad. > I am using gtk for my ARM board, i am using eldk development suit and > crosstools. > Can any body tell me how can i cross compile gtk applications for ar

Re: Tweaking GUI, losing code (GTK+ and Ruby)

2006-10-23 Thread Michael L Torrie
On Mon, 2006-10-23 at 09:17 -0400, Flak Magnet wrote: > I'm teaching myself to program using glade, libglade, the > "ruby-glade-create-template" script and ruby. > > I've found that I'll often have to go in and edit the GUI I designed to > fix something that I forgot or wanted to tweak. When I

Re: Use of fgets, puts, rewind in Gtk+

2006-10-13 Thread Michael L Torrie
On Fri, 2006-10-13 at 10:16 +0530, Sucheta Ghosh wrote: > Let me clarify the situation one by one: > > > I can see some problems here, but that's not really GTK-related; > > Then my question is: how the same code works fine as a simple c file, when > I am not using this inside Gtk+? Probably be

Re: removing borders from button

2006-10-09 Thread Michael L Torrie
On Mon, 2006-10-09 at 18:03 +0530, [EMAIL PROTECTED] wrote: > Hi, > > I have a GtkImage on a GtkButton. > I want to remove the spacing/border between the GtkButton border and the > GtkImage. > Also I want to remove the GtkButton outline. > I'm using GTK2.0. > > Please let me know if there is any

Re: GTK Evaluation tool kit

2006-10-06 Thread Michael L Torrie
On Thu, 2006-10-05 at 14:38 +0530, Shyjumon N. wrote: > > Hi > > Please tell me is there any standard tool kit for the > performance evaluation of GTK. Evaluate in what sense? And what are you trying to evaluate the performance of? There are many profiling tools that could be used

Re: why???

2006-09-08 Thread Michael L Torrie
On Thu, 2006-09-07 at 19:35 -0700, dagang001 wrote: > #include > > typedef struct { > gchar * name; > gint shoe_size; > gint age; > } Person; > > > int main(int argc, char** argv) { > Person *fred = g_new(Person, 1); > GList *list = NULL; > > gint num,i; > gchar *mi

Re: How to copy data between widgets?

2006-08-08 Thread Michael L Torrie
On Tue, 2006-08-08 at 11:48 -0300, Román Gorojovsky wrote: > As I said before, It's a problem with my C, not my gtk. A quite > embarrassing mistake, sorry for wasting your time. Another way to do it is to assign each widget a string name using g_object_set_data. Once this is set, then in your ca

Re: Gtk+ Modality Problem

2006-06-21 Thread Michael L Torrie
On Wed, 2006-06-21 at 18:11 +0200, Atanas Atanasov wrote: > > Don't forget to set the transient window: > > > > gtk_window_set_transient_for(GTK_WINDOW(window),GTK_WINDOW(parent_window)); > > I saw this option, but I would like to make the messagebox work > independently of the window from which i

Re: graphics!!

2006-05-08 Thread Michael L Torrie
On Mon, 2006-05-08 at 22:27 +0300, Juhana Sadeharju wrote: > >I think you may need to use a canvas. For example: > >http://developer.gnome.org/doc/API/2.0/libgnomecanvas/index.html > >http://www.dachaplin.dsl.pipex.com/goocanvas/ > > Do they have a graph widget? Or are they more primitive? No. GT

Re: GTK with GCC 4.1 on Fedora Core 5

2006-05-04 Thread Michael L Torrie
On Thu, 2006-05-04 at 18:59 +0200, David Nečas (Yeti) wrote: > > configure was generated on a system lacking gtk+-devel, > ^^ > This > is the name of the development package. > > Anyway, you can fin

RE: GTK with GCC 4.1 on Fedora Core 5

2006-05-04 Thread Michael L Torrie
On Thu, 2006-05-04 at 09:48 -0600, Karihaloo, Ujjval wrote: > Hi, > > I am not sure if the GTK+ 1.2.10 version that I have is a developer > version. How can I find out? What he means is that you need the "-devel" package which includes the necessary header files and link libraries. To install t

Re: Cross-platform apps

2006-04-26 Thread Michael L Torrie
On Wed, 2006-04-26 at 16:12 +0200, Cesc wrote: > I agree on all the advice you are given here ... > My experience is that it is not piece of cake, but it can be done. > Test often and plan compatibility since the very beginning. > Then, i would recommend you take a look at other projects which are

RE: newbie trap

2006-04-12 Thread Michael L Torrie
On Wed, 2006-04-12 at 16:12 +0100, Ross Clement wrote: > Thanks Tristian and Jan for the answers. > > I'm not calling > > while ( gtk_events_pending ()) > gtk_main_iteration (); > > from event handlers, they are being called from the main thread. I have > several threads running in my

Re: Refreshing the progressbar

2006-04-12 Thread Michael L Torrie
On Wed, 2006-04-12 at 05:16 +0100, Sandy K wrote: > Hello all, > I am using the probress bar to show the progress > of some event. Initially i have some text in the > progress bar. After the event is complete, i change > the text on the progress bar.. But it is not getting > changed... > > But

Re: Choosing a parent class

2006-04-11 Thread Michael L Torrie
On Tue, 2006-04-11 at 19:35 +0200, Andreas Kotowicz wrote: > I created a composite widget which consists of two frames, one of which > holds a calendar and a second one which has some buttons. I now ask > myself what is the right parent class to choose from. Is it GtkFrame? > Why can't I just choos

Re: How to trap mouse motion, mouse up, and wheel events?

2006-03-31 Thread Michael L Torrie
On Fri, 2006-03-31 at 16:38 -0500, Dov Kruger wrote: > I do not see examples of how to use g_signal_connect and would > appreciate some help, perhaps an example? Use it the same way you used the gtk_signal_connect calls. Just replace one with the other. > > Right now, the code does not trap m

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Michael L Torrie
On Sat, 2006-03-18 at 00:38 +0100, Gus Koppel wrote: > However, then you would have to manage all tasks the window manager > takes care of by yourself, i.e. minimizing and maximizing the window on > request and providing correct drag behaviour. For resizability of your > windows you would still hav

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Michael L Torrie
On Fri, 2006-03-17 at 23:48 +0100, David Necas (Yeti) wrote: > Boring is not the word I would use, what about familiar, > consistent, predictable, or integrated? Agreed. The problem with GTK on windows always used to be it looked like a horrible, out-of-place motif app. Now with the WIMP theme t

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Michael L Torrie
On Fri, 2006-03-17 at 15:05 -0800, Wallace Owen wrote: > Maybe he remembers the cool looking themes that Enlightenment did, or > the various themes that Gnome's manager provides, confusing window > decoration themability that's the domain of window managers with the > button/label/etc. gui element

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Michael L Torrie
On Fri, 2006-03-17 at 14:26 -0700, Plummer, Jeff-P56711 wrote: > I am using the C# port of GTK+ on Windows XP, and I'm trying to write an > app that is skinnable. Below is my simple test code that attempts to > set the theme of the window. It sets the theme for all the widgets > inside the main wi

Re: GTK and threaded applications

2006-02-01 Thread Michael L Torrie
On Wed, 2006-02-01 at 10:44 +0100, kornelix wrote: > Thanks for your generous help. I will try Michael's suggestion and see > how it works. > > I would like to implement all GTK calls in the main program as Tristan > suggested, but this seems to be very complex (must implement asynch. > queues

Re: GTK and threaded applications

2006-01-31 Thread Michael L Torrie
On Tue, 2006-01-31 at 18:28 +0100, kornelix wrote: > Following the guidelines in the FAQ, I constructed my application > threads as follows: > >gdk_threads_enter();// enter thread > (do some work, including GTK calls) >gdk_flush();// e

Re: gtk+-1.2.10 (linux) vs gtk+-1.3.0 (windows) looks

2005-05-12 Thread Michael L Torrie
On Thu, 2005-05-12 at 17:10 +, Chisheng Huang wrote: > Hi, > > Does anybody know how to make radio buttons, check buttons, and spinners > in GTK+-1.3.0 for MS Windows look as nice as those in GTK+-1.2.10 for > Linux? Here is a URL with images illustrating the differences: You are strongly r