Re: saving window size?

2009-01-20 Thread Alexander Semenov
-- Alexander Semenov bohtva...@gmail.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: valgrind reports memory leak on g_main_loop_run

2008-12-17 Thread Alexander Semenov
Sune Ahlgren wrote: Hi, I use 1 GMain event loop in my main context for monitoring of events on file descriptors. I shut down my program by receiving a SIGTERM. In this signal handler I do the following: g_main_loop_quit(loop); g_main_loop_unref(loop); loop = NULL; I've also tried to

Re: How can I wrap or scroll text inside a GtkLabel to keep the width?

2008-12-11 Thread Alexander Semenov
Guenther Meyer wrote: hi, I have GtkLabels packed inside some vboxes or tables, the width of the box is determined by the size of some other elements (buttons, listviews, ...). when the text inside the labels is changed, and this text is too long to fit, the box automatically resizes, which

Re: glib main loop without gtk

2008-11-13 Thread Alexander Semenov
Thomas Stover wrote: So if one wants to use g_io_channels with out gtk (console / server app), what exactly is the idea? Does glib need an initialization function called first? I see the g_main_loop_new() and friends functions, and that part make sense. The thing is g_io_add_watch_full() type

Re: glib main loop without gtk

2008-11-13 Thread Alexander Semenov
Alexander Semenov wrote: Thomas Stover wrote: So if one wants to use g_io_channels with out gtk (console / server app), what exactly is the idea? Does glib need an initialization function called first? I see the g_main_loop_new() and friends functions, and that part make sense. The thing

Re: How can I tell which window manager my app is running under?

2008-04-19 Thread Alexander Semenov
Hi, Justin. gdk_x11_screen_get_window_manager_name () On Sat, 2008-04-19 at 23:48 +1000, Justin Clift wrote: Hi, How can I tell which window manager my application is running under? Can't seem to see any kind of Gtk nor Gdk calls to determine this. The end result I'm trying to achieve

Re: key press events SUPR

2008-04-17 Thread Alexander Semenov
Hi, Martin. From the GTK+ documentation for GdkEventKey: guint keyval; the key that was pressed or released. See the gdk/gdkkeysyms.h header file for a complete list of GDK key codes. On Thu, 2008-04-17 at 04:56 -0500, [EMAIL PROTECTED] wrote: hi all: I am working with gnome-ruby today and

Re: Callback Question

2008-04-14 Thread Alexander Semenov
Hi. Perhaps, this discussion was related to threads? Thank you all for this! Especialy for the long example, but, it was just an example. I've made an application that works perfectly on Linux but in Window$ it crashes a lot! I've been trying to find a solution (actually a clue of what

Re: Draw text to a GdkPixbuf

2008-04-14 Thread Alexander Semenov
Hi. What about drawing GdkPixbuf and then your text on GdkWindow? On Mon, 2008-04-14 at 12:05 +0200, Francesco Sepic wrote: Hello, is it possible to draw text on a GdkPixbuf using Pango? gdk_draw_text () takes a GdkDrawable as the destination on which draw text. Is it possible to get a

Re: Draw text to a GdkPixbuf

2008-04-14 Thread Alexander Semenov
Why don't you want to draw the text you need in your expose function? You simply redefine the GtkWidgetClass expose-event and draw there. On Mon, 2008-04-14 at 12:55 +0200, Francesco Sepic wrote: On Mon, Apr 14, 2008 at 12:31 PM, Alexander Semenov [EMAIL PROTECTED] wrote: Hi. What about