[RFC] Why GtkMenuItem hide_on_activate property is not taken into account?

2012-08-31 Thread Tomasz Bursztyka
--- Hi, I just propose a patch below, on gtk core, to illustrate the issue I will talk about. I have probably missed how to derivate from GtkMenuItem properly to fit my use case. While playing around a GtkStatusIcon, so with GtkMenuShell/GtkMenu and GtkMenuItem afterwards, I wanted to get a

Re: [RFC] Why GtkMenuItem hide_on_activate property is not taken into account?

2012-08-31 Thread Michael Cronenworth
Tomasz Bursztyka wrote: [snip] So my question is: how to get this behavior for my GtkSwitchMenuItem, properly done with existing GtkMenuShell/GtkMenuItem functions/signals? What signals should I catch or which function should I override? You're better off proposing this patch in a bug report

compile multiple source file

2012-08-31 Thread Rudra Banerjee
I have two file: #THE MAIN### #include gtk/gtk.h int main( int argc, char *argv[] ) { GtkWidget *window; GtkWidget *button; gtk_init (argc, argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (window), 10);

Re: compile multiple source file

2012-08-31 Thread Vlad Volodin
Hello, You probably did not declare the 'hello' function in the main.c file. To do this, just write a header of the function beforevthe main function. Regards, Vlad On Aug 31, 2012 4:48 PM, Rudra Banerjee bnrj.ru...@yahoo.com wrote: I have two file: #THE MAIN### #include gtk/gtk.h int

Re: compile multiple source file

2012-08-31 Thread Olivier Sessink
On 08/31/2012 04:48 PM, Rudra Banerjee wrote: If they are in separate file, then, $ gcc `pkg-config --cflags --libs gtk+-3.0` hello.c main.c -c main.c: In function ‘main’: main.c:13:5: error: ‘hello’ undeclared (first use in this function) main.c:13:5: note: each undeclared identifier is

Re: compile multiple source file

2012-08-31 Thread Rudra Banerjee
Thanks Olivier and all, The static was the culprit.   -- Rudra JRF; SNBNCBS http://www.bose.res.in/~rudra A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work  station. Please, if possible, don't send me MS Word or PowerPoint attachments

GtkDrawingArea cursor flicker

2012-08-31 Thread Roger Davis
Hi all, I am experiencing some very annoying mouse cursor flicker on a particular computer system which does not occur on any other machine. I am using a GTK+3 GtkDrawingArea widget, and am listening for GDK_POINTER_MOTION_MASK events on that widget. When I get such an event, I do some redrawing