Re: GtkButton, enter-notify signal, and GdkWindow

2010-11-23 Thread Mike Massonnet
Hi, 2010/11/24 Brian Tietz : > I am creating two widget subclasses, one which is a subclass of GtkContainer > and one which is a subclass of GtkButton.  Both need to receive the > enter-notify signal.  I can successfully obtain the enter-notify signal fot > GtkButton in my_button_subclass_init:

Re: g_value_type_transformable String to Enum fails

2010-09-28 Thread Mike Massonnet
of this is important, it is out of curiosity. Mike 2010/9/28 Mike Massonnet : > Hi, > > By compiling the following code snippet, at execution it prints a > critical message. Is this a bug or just normal? > > (process:1545): GLib-GObject-CRITICAL **: g_value_type_transformable:

g_value_type_transformable String to Enum fails

2010-09-28 Thread Mike Massonnet
Hi, By compiling the following code snippet, at execution it prints a critical message. Is this a bug or just normal? (process:1545): GLib-GObject-CRITICAL **: g_value_type_transformable: assertion `G_TYPE_IS_VALUE (dest_type)' failed // cc `pkg-config --cflags --libs gobject-2.0` #include int

Re: horizontal rule in GtkTextView?

2010-08-20 Thread Mike Massonnet
Hi Petr, 2010/8/12 Petr Tomasek : > > Hello! > > Is it possible to insert an horizontal rule into the GtkTextView? > I tried to search the Google but found nothing. I think the solution is to use a pixbuf, those can be inserted inside GtkTextView (gtk_text_buffer_insert_pixbuf), have a look at gt

Re: putting icon on GtkImageMenuItem tutorial(ette)

2010-06-23 Thread Mike Massonnet
2010/6/23 Mick : > can any one point me to a tutorial or clear example code that covers > placing an icon on a GtkImageMenuItem with label. I've been trying all > day and when I cast my way out of type mismatches I keep getting > segfaults. GtkWidget *image = gtk_image_new_... GtkWidget *mi = gtk_

Re: catching pressed in a dialog with entry and treeview

2009-10-13 Thread Mike Massonnet
Hi, Right thing to do should be to connect the dialog to the signal GtkWidget:"key-press-event", possibly filter on GDK_Escape, and return true (see the api for more info on the return value, true will block any further calls). 2009/10/12 Manu TM : > Hi > > I'm having a problem with a gkt dialog.

Re: Unable to get Python/Gtk code to work...

2009-10-13 Thread Mike Massonnet
Hi, >From a quick view there is no Gtk.init at the beginning (I don't know python/gtk very well, but from a search it doesn't seem to be needed there), and at the end it doesn't enter the main loop with gtk.main(). 2009/10/12 Daniel B. Thurman : > I am a first timer here and I am trying to get a

Fwd: Bug with g_file_load/replace_contents and utf-8

2009-06-30 Thread Mike Massonnet
Hello, I have been porting a part of a program to GIO for file monitoring. By this move I also switched g_file_get/set_contents to the ones available in the GFile object, g_file_load/replace_contents. At the first run I was surprised that it didn't work (of course errors may always be introduced

Re: mouse enter/leave notifications for insenstive widgets

2009-04-09 Thread Mike Massonnet
Le Thu, 9 Apr 2009 14:28:11 +0530, Praveen Innamuri a écrit : > I have a insensitive (disabled) widget (let's call it as widget-3) > and is drawn over a GtkContainer (let's call it as widget-2). Both > widget-2 and widget-3 are children of a GtkContainer (let's call it > as widget-1). So, the la

Re: How to realize a battery-indicator with a trayicon? How to show the current capacity

2008-11-16 Thread Mike Massonnet
Le Sun, 16 Nov 2008 10:56:40 -0700, "Jim George" <[EMAIL PROTECTED]> a écrit : > 2008/11/16 Rorschach <[EMAIL PROTECTED]>: > > Hi, > > I wanna write a little battery-indicator in C with GTK. It's > > already working nicly in the console and I know how to write a > > trayicon with gtk but what I do

Re: Glade signal connect data and full

2008-11-10 Thread Mike Massonnet
Hi, and really quickly, Le Mon, 10 Nov 2008 08:38:53 -0500, dhk <[EMAIL PROTECTED]> a écrit : > All, > > Could some explain how to use glade_xml_signal_connect_data() and > glade_xml_signal_connect_full()? Some good examples would be helpful > also. http://www.google.com/codesearch?q=lang%3Ac+

Re: Howto correctly generate "expandable void"?

2008-10-24 Thread Mike Massonnet
Hi, Le Fri, 24 Oct 2008 21:01:04 +0200, "Till Harbaum / Lists" <[EMAIL PROTECTED]> a écrit : > Hi, > > i have a vbox with a bunch of buttons. I want some of them to appear > at the top and some of them at the bottom. The buttons should not be > expanded and the space between them should also not

Re: how can i scale big pixbuf in realtime?

2008-10-07 Thread Mike Massonnet
Le Mon, 6 Oct 2008 16:13:25 +0800, "chen zhixin" <[EMAIL PROTECTED]> a écrit : > hello > i have to scale the image i recived,NTSC,30f/s,yuyv->gray and 720*480 > because i need to do something on image,so i use gray->pixmap,and use > cairo_t to do . > then i must scale the 720*480, > use gdk_pixbuf

Re: The menu popup direction

2008-09-24 Thread Mike Massonnet
Le Thu, 25 Sep 2008 09:00:21 +0800, XiuHua Wu <[EMAIL PROTECTED]> a écrit : > Yes, I know it can use this function to determine the position of the > menu. But if the menu is dynamic, I mean the length is not fixed and > can be changed during the program running, so the menu position must > be ca

Re: The menu popup direction

2008-09-24 Thread Mike Massonnet
Le Wed, 24 Sep 2008 16:16:20 +0800, XiuHua Wu <[EMAIL PROTECTED]> a écrit : > Hi All: >Can GTK+ control the menu popup direction ?? When I create a > popup menu and use the function gtk_menu_popup to show the menu, and > the menu alway pops from up to down. Is it possible to pop the menu

Re: g_signal_emit and parameters

2008-08-30 Thread Mike Massonnet
Le Sat, 30 Aug 2008 17:45:32 +0200, Salvatore De Paolis <[EMAIL PROTECTED]> a écrit : > Hi all, > > I have in a library such a signal emission > > g_signal_emit(view, MY_SIGNAL, NULL, menu); > > and from the program I'm connecting a callback to it in the way > > gboolean my_callback_menu (TYPE

Re: GtkTextView and GtkScrolledWindow

2008-02-24 Thread Mike Massonnet
Sorry, I misstyped around y (send) and t (To:). - Forwarded message from Mike Massonnet <[EMAIL PROTECTED]> - From: Mike Massonnet <[EMAIL PROTECTED]> To: Barret Rennie <[EMAIL PROTECTED]> Subject: Re: GtkTextView and GtkScrolledWindow On Sun, Feb 24, 2008 at 10:47:

Re: question on using GtkCellRendererProgress

2008-02-18 Thread Mike Massonnet
On Mon, Feb 18, 2008 at 10:27:03PM +0800, Gregory Hosler wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mike Massonnet wrote: > | On Mon, Feb 18, 2008 at 09:29:26PM +0800, Gregory Hosler wrote: > |> -BEGIN PGP SIGNED MESSAGE- > |> Hash: SHA1 >

Re: question on using GtkCellRendererProgress

2008-02-18 Thread Mike Massonnet
On Mon, Feb 18, 2008 at 09:29:26PM +0800, Gregory Hosler wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > > I've got a gtk_list_store, and one of the columns I want to make a progress > meter. > > I'm gathering that I use teh cell rendered GtkCellRendererProgress for this