Gtk TreeView emits a beep

2013-11-07 Thread raum
Hello, I'm programming a tool using Vala langage. I need to manipulate a treeview, delete an item for example. I'm trapped the release key event but for certain keys, treeview emits a beep (left or right arrow, del keys). How can I remove this beep ? CODE sample.vala

Re: changing font, color, size, etc. in a GtkEntry

2013-11-07 Thread Eric Wajnberg
Thanks Michael for your answer. The compilation is ok. No error message. This is the linker that reports, e.g.: undefined reference to `pango_font_description_from_string' The instruction I use to compile is (which is launched by CodeBlocks): mingw32-g++.exe -LC:\Program Files

Re: changing font, color, size, etc. in a GtkEntry

2013-11-07 Thread Eric Wajnberg
Ok, I finally find out what was the problem.. I had to add the library pango-1.0.lib in the compiling options. Strange that this was not included initially when building a project with gtk+. P.. I spent days on this... Thanks is all cases for your help on this. Cheers, Eric. Eric

deactivate enter signal on GtkButton

2013-11-07 Thread Mahesh Chaudhari
Hi , which one to use if I wants my button should not glow on hovering mouse pointer over the button   1. g_signal_handler_block()  2. g_signal_handler_disconnect() 3. g_signal_stop_emmission() 4. g_signal_override_class_closure() 5. g_signal_override_class_handler()

Re: deactivate enter signal on GtkButton

2013-11-07 Thread Sébastien Wilmet
Hi, On Thu, Nov 07, 2013 at 08:10:50PM +0800, Mahesh Chaudhari wrote: which one to use if I wants my button should not glow on hovering mouse pointer over the button It comes from the theme. It's a bad idea to stop a signal because you don't want the :hover effect. Regards, Sébastien

Re: deactivate enter signal on GtkButton

2013-11-07 Thread Andrew Potter
On Thu, Nov 7, 2013 at 4:10 AM, Mahesh Chaudhari mahesh.chaudh...@ymail.com wrote: Also (unsuccessfully) tried : void enter_button1(GtkWidget *widget, gpointer data) { GtkStyle *style; style = gtk_widget_get_style(button1); style-bg[GTK_STATE_PRELIGHT] =

Re: deactivate enter signal on GtkButton

2013-11-07 Thread Mahesh Chaudhari
Andrew, when so ever theme style may get applied but I am doing this in enter signal handler i.e. whenever I keep mouse pointer over button , style of the normal state copied to prelight state   On Thursday, 7 November 2013 10:46 AM, Andrew Potter agpot...@gmail.com wrote: On Thu, Nov 7,

Re: deactivate enter signal on GtkButton

2013-11-07 Thread Andrew Potter
On Thu, Nov 7, 2013 at 7:06 PM, Mahesh Chaudhari mahesh.chaudh...@ymail.com wrote: On Thursday, 7 November 2013 10:46 AM, Andrew Potter agpot...@gmail.com wrote: On Thu, Nov 7, 2013 at 4:10 AM, Mahesh Chaudhari mahesh.chaudh...@ymail.com wrote: Also (unsuccessfully) tried : void