Current Working Directory

2005-08-16 Thread Nick Watts
Writing a GTK app under win32. When I use "Open With" to open a file with my app, the current working directory is the one the file is in rather than the one my app is in. How can I set the cwd to the path my app is in? Cheers ___ gtk-app-devel-list m

zooming

2005-08-16 Thread Rahul Sood
Hi, I'm using a DrawingArea widget to display some graphics. I want to implement zoom function so the user could specify a zoom percentage, in the range 25%-200% and the graphics in the DrawingArea should be scaled accordingly. Is there any function in gtk that would be useful to do this. Th

how to link helpblocks application to gtk application

2005-08-16 Thread harshavardhanreddy mandeepala
Hi I am using FC3. i developed an application using Glade tool and Gtk programming. In my application i want to provide offline Help. for that i am using HELPBLOCKS tool kit.But i don't know how to link this two tools. whenever i click on help button in my Glade application it should display help c

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread John Coppens
On Tue, 16 Aug 2005 16:48:35 -0700 Bill Medland <[EMAIL PROTECTED]> wrote: > (I wish the API actually documented this stuff). Can you expand > on "and such"? I could build an experiment and try to find out, > but I would rather hear what the designers intended it to do. Me too. The docs on su

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread Bill Medland
On August 16, 2005 12:05 pm, John Coppens wrote: > On Tue, 16 Aug 2005 13:13:08 -0500 > > > Then you have two choices: One is the "activate" signal, which > gets sent when you press and such. (I wish the API actually documented this stuff). Can you expand on "and such"? I could build an exper

Re: Best place to call gtk_widget_show()?

2005-08-16 Thread Maciej Katafiasz
2005-08-16 (火) の 22:45 +0200 に Markus Lausser さんは書きました: > I wonder, in which order should the following tasks be done: > * show widget > * add widget to parent container > * add childs to widget > > Which order is the fastest (CPU)? Heh. CPU has exactly nothing to do with it. What you care about

GtkFileChooser (non local) URI weirdness

2005-08-16 Thread Albert Veli
Hi! I'm trying to write an app that (among other things) shows a GtkFileChooserDialog that lets the user select a file (for opening). I want it to work both on the local filesystem and over FTP. And I want the app to work on both Linux and Windows. --- On Linux (Debian/Sarge, gtk+-2.6.4) an URI

Best place to call gtk_widget_show()?

2005-08-16 Thread Markus Lausser
Hello, I wonder, in which order should the following tasks be done: * show widget * add widget to parent container * add childs to widget Which order is the fastest (CPU)? First add childs, then show? First show then add to parent? etc... Or maybe call gtk_widget_show_all() for the toplevel only

invisible button

2005-08-16 Thread Boncek, John
I'm completely baffled. I have a GtkButton on top of a complex hierarchy of other widgetry. It does not appear despite anything I've done, but it's there because it returns click events (as proven with debugging breakpoints) throughout the area in which it should be. I've tried all sorts of thin

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread Thym
Thanks for all this answers :] I choosed the focus-out-event solution : I connect the signal to my entry : g_signal_connect_swapped(pMyApp->pEntryMenuName, "focus-out-event", G_CALLBACK(entryMenuName_changed), (gpointer)pMyApp); pMyApp is a structure contain some pointer like pEntryMenuName or

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread John Coppens
On Tue, 16 Aug 2005 13:13:08 -0500 Douglas Vechinski <[EMAIL PROTECTED]> wrote: > What may be desired is when the changes are done. Suppose the > entry contained a value like 9.8 and someone wants to change the value > to 12.2. This might be done my backspacing, deleting all the characters > an

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread Bill Medland
On August 16, 2005 11:13 am, Douglas Vechinski wrote: > I've had a similar/relate question that I've been curious > about for some time. This emits a signal evertime the > contents is changed. Unfortunately, taking action everytime it > is changed may not be what is desired. What may be desired i

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread Douglas Vechinski
I've had a similar/relate question that I've been curious about for some time. This emits a signal evertime the contents is changed. Unfortunately, taking action everytime it is changed may not be what is desired. What may be desired is when the changes are done. Suppose the entry contained a va

Re: A springs and struts widget for GTK+

2005-08-16 Thread Paul Pogonyshev
Gustavo J. A. M. Carneiro wrote: > Hi, just some comments below. > > On Tue, 2005-08-16 at 00:52 -0400, Matthias Clasen wrote: > > During last weeks gazpacho hackfest here in the RedHat desktop grotto, > > I started to work on an implementation of a springs-and-struts layout > > container for GTK

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread David Necas (Yeti)
On Tue, Aug 16, 2005 at 07:50:59PM +0200, Thym wrote: > I would like to know when the content of a GtkEntry is changed. > A signal certainly, but what's its name ? http://developer.gnome.org/doc/API/2.0/gtk/GtkEditable.html#GtkEditable-changed Yeti ___

Signal when the content of a GtkEntry is changed

2005-08-16 Thread Thym
Good evening all, First, sorry for my english, I speak French. I would like to know when the content of a GtkEntry is changed. A signal certainly, but what's its name ? Thank you. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:/

Re: A springs and struts widget for GTK+

2005-08-16 Thread John Cupitt
On 8/16/05, Michael Torrie <[EMAIL PROTECTED]> wrote: > Is this system similar to what QT uses? If I recall correctly, I > remember trying to figure out how to use these spring-like things to do > layout. It was very confusing and I never did figure out how to > properly use them. I remember wis

Re: A springs and struts widget for GTK+

2005-08-16 Thread Michael Torrie
On Tue, 2005-08-16 at 11:43 -0400, Matthias Clasen wrote: > > I am left wondering why this new layout system? Maybe it's great, but > > why was it introduced? To solve something that can't be solved without > > it, I suppose?.. Would the current container-based layout system be > > deprecated

Re: A springs and struts widget for GTK+

2005-08-16 Thread Havoc Pennington
On Tue, 2005-08-16 at 16:15 +0100, Gustavo J. A. M. Carneiro wrote: > I find the current container-based system easier on newbies, although > this spring layout system does sound promising for more complex layout > needs. Moreover, with recent canvas discussions, this layout system at > first gl

Re: A springs and struts widget for GTK+

2005-08-16 Thread Matthias Clasen
On Tue, 2005-08-16 at 16:15 +0100, Gustavo J. A. M. Carneiro wrote: > Hi, just some comments below. > > On Tue, 2005-08-16 at 00:52 -0400, Matthias Clasen wrote: > > During last weeks gazpacho hackfest here in the RedHat desktop grotto, > > I started to work on an implementation of a springs-an

Re: A springs and struts widget for GTK+

2005-08-16 Thread Tristan Van Berkom
andrey wrote: [...] "Side to side" layout make more flexibility for different font... , but in some cases size of interface code is'n optimized (very large). Using "position" layout may reducing code. Sounds like an evil compromise just to make your code smaller, to make your code less comple

Re: A springs and struts widget for GTK+

2005-08-16 Thread Gustavo J. A. M. Carneiro
Hi, just some comments below. On Tue, 2005-08-16 at 00:52 -0400, Matthias Clasen wrote: > During last weeks gazpacho hackfest here in the RedHat desktop grotto, > I started to work on an implementation of a springs-and-struts layout > container for GTK+, similar to the java SpringLayout. The wi

Re[2]: A springs and struts widget for GTK+

2005-08-16 Thread andrey
> Hi, > > Russell Shaw wrote: > > Greg Breland wrote: > > > >> On Tue, 2005-08-16 at 00:50, andrey wrote: > >> > >>> hi, > >>> > >>> i have a question in accordance with your message. > >>> Is there in GTK+ "Position Layout", like in most of gui-libraries? > >>> For example i want to place label

scroll window with no border

2005-08-16 Thread Yogesh M
I want scroll window only with scroll bars and no kind of border around the contained widget. Thank you. Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ___

RE: Modularization

2005-08-16 Thread Freddie Unpenstein
> I'm beginning to learn and use GTK+. Here is the steps that I > believe are needed to build an GTK+ application: > 1. Initialize the library. Generally happens in main... > 2. Create widgets and set attributes. > 3. Register callback routines. Those two go together... Either load a glade UI

Re: drawing area and events win32

2005-08-16 Thread HuamiSoft Hubert Sokolowski
On Tue, 16 Aug 2005 16:40:54 +0530 "jaykumar" <[EMAIL PROTECTED]> wrote: > Hi, > I am new to gtk development, currently I have used gtk -win32 version > 2.6.7 for creating a video player. first of all, please use latest stable gtk for windows from Tor's site http://www.gimp.org/~tml/gimp/win32/

drawing area and events win32

2005-08-16 Thread jaykumar
Hi, I am new to gtk development, currently I have used gtk -win32 version 2.6.7 for creating a video player. the ui consists of few buttons ( in vbox1) and and a drawing area ( in vbox2); and both boxes are packed in Hbox which is loaded in mainwindow. problem statement: I had used expos

Re: A springs and struts widget for GTK+

2005-08-16 Thread Stefan Kost
Hi, Russell Shaw wrote: Greg Breland wrote: On Tue, 2005-08-16 at 00:50, andrey wrote: hi, i have a question in accordance with your message. Is there in GTK+ "Position Layout", like in most of gui-libraries? For example i want to place label or button in position x=100, y=100, width=100 a

Re: A springs and struts widget for GTK+

2005-08-16 Thread Russell Shaw
Greg Breland wrote: On Tue, 2005-08-16 at 00:50, andrey wrote: hi, i have a question in accordance with your message. Is there in GTK+ "Position Layout", like in most of gui-libraries? For example i want to place label or button in position x=100, y=100, width=100 and height=25. (sorry for my

Re: A springs and struts widget for GTK+

2005-08-16 Thread Greg Breland
On Tue, 2005-08-16 at 00:50, andrey wrote: > hi, > > i have a question in accordance with your message. > Is there in GTK+ "Position Layout", like in most of gui-libraries? > For example i want to place label or button in position x=100, y=100, > width=100 and height=25. (sorry for my english) Y