Get width of window

2006-06-29 Thread 3saul
How do I get the current width of my window? It's not decorated so I don't need to worry about that. -- View this message in context: http://www.nabble.com/Get-width-of-window-tf1871169.html#a5114402 Sent from the Gtk+ - Apps Dev forum at Nabble.com.

Re: "switch_page" signal from gtk_notebook is fired two times

2006-06-29 Thread Enrico Tröger
On Fri, 30 Jun 2006 01:22:39 +0200, Enrico Tröger <[EMAIL PROTECTED]> wrote: > Hi, > > I have a notebook and connected a callback function > "on_notebook1_switch_page" to the switch_page signal. > > If I put a g_message("test") call in the function, I see that the > function is called two times

"switch_page" signal from gtk_notebook is fired two times

2006-06-29 Thread Enrico Tröger
Hi, I have a notebook and connected a callback function "on_notebook1_switch_page" to the switch_page signal. If I put a g_message("test") call in the function, I see that the function is called two times when I switch from one page to another. I connected the callback only once. Is this a kind

Re: File Selector Filter, directory only

2006-06-29 Thread Peter Robinson
On Thu, Jun 29, 2006 at 10:16:06AM +0530, Santhosh wrote: > http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooser.html#gtk-file-chooser-set-action > > http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooser.html#GtkFileChooserAction > > The above URLs would be helpful... > > Regards, > San

AW: WG:_Toolbarbutton_nach_erstem_Betä tigen_ina ktiv

2006-06-29 Thread Vallario Brigitte
Hallo, first: why the archive gtk-app-devel-list/2006-June doesn't work? I have start the app under gnome destop, it also doesn't work. I have changed the source code to use the new functions for toolbar toolItem = gtk_tool_button_new(iconw, g_locale_to_utf8( text, -1,

Re: Now, about gtk_tree's

2006-06-29 Thread Ricardo Malafaia
On 6/29/06, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > GtkTreeView (which, despite its name, can do > non-trees too). A list is also a tree, that's why it handles it well. Perhaps we should have a generalized GtkGraphView to handle all kinds of graphs? ;)

Re: gtk_statusbar!

2006-06-29 Thread Fernando Apesteguía
That's because you are calling real_opration() from the button callback. So the event loop is not running and it can't update your GUI. You should call gtk_main_iteration while gtk_events_pending==true more at http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-events-pending and http:

Re: What's wrong with my button callback

2006-06-29 Thread Yeti
On Thu, Jun 29, 2006 at 07:49:43PM +1000, kadil wrote: > I used glade to "build" some a simple app. Why does my > on_button1_clicked callback segfault. The very same function call works > in the expose event. Nothing in on_drawingarea1_expose_event() uses the global variable drawingarea1, so they

Re: What's a GtkDrawingArea good for?

2006-06-29 Thread Yeti
On Thu, Jun 29, 2006 at 03:09:33PM +0200, Daniel Haude wrote: > this is really odd. Some time ago I spent about a week creating a custom > widget (stuff gets drawn directly into the widgets's window using GDK > primitives). All works quite well. > > It's only now that I realized that I hadn't

What's a GtkDrawingArea good for?

2006-06-29 Thread Daniel Haude
Hello, this is really odd. Some time ago I spent about a week creating a custom widget (stuff gets drawn directly into the widgets's window using GDK primitives). All works quite well. It's only now that I realized that I hadn't even used a GtkDrawingArea for the purpose. I must have forgot

What's wrong with my button callback

2006-06-29 Thread kadil
I used glade to "build" some a simple app. Why does my on_button1_clicked callback segfault. The very same function call works in the expose event. Thanks, Kim #ifdef HAVE_CONFIG_H # include #endif #include #include "callbacks.h" #include "interface.h" #include "support.h" static GdkPixmap

Re: Now, about gtk_tree's

2006-06-29 Thread Yeti
On Thu, Jun 29, 2006 at 10:07:41AM +0200, simon kendall wrote: > Anyway, in gtk.org/tutorial, the only thing on TreeViews seem to > be under Undocumented Widgets. The Tree View Tutorial is actually at http://scentric.net/tutorial/ > I suppose I'll check up on CLists and GtkListStore, thanks

Re: Now, about gtk_tree's

2006-06-29 Thread simon kendall
On 6/29/06, "John Coppens" <[EMAIL PROTECTED]> wrote: > > Date: Wed, 28 Jun 2006 13:50:41 -0300 > From: John Coppens <[EMAIL PROTECTED]> > Subject: Re: Now, about gtk_tree's > To: gtk-app-devel-list@gnome.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII > > On Wed,