Re: Problems with gtk_menu_popup

2005-03-26 Thread Santhosh
Hi, Sorry.. the diagram messed up... Just copy the diagram below and paste it in GEdit.. It should look as I intended... +--hbox-+ | +-+ +---hboxe--+ | | |

Re: Problems with gtk_menu_popup

2005-03-26 Thread Santhosh
Hi, > evbox = gtk_event_box_new(); > gtk_container_add(GTK_CONTAINER(hbox),evbox); > hboxe = gtk_hbox_new(FALSE,0); > gtk_box_pack_start(GTK_BOX(hbox),hboxe,FALSE,FALSE,0); You have just added the hboxe and evbox in a single hbox.. "gtk_container_add(..,evbox)" actually takes up more a

Re: Problems with gtk_menu_popup

2005-03-26 Thread Santhosh
Hi Boromir, The "GtkVBox" widget will not receive any events .. So you need to pack a event box inside the GtkVBox... The following piece of code do the job for u.. #include #include"unistd.h" #include"sys/types.h" #include"sys/wait.h" int end_program(GtkWidget *widget,gpointer data) { gt

Re: Problems with gtk_menu_popup

2005-03-26 Thread Boromir
Hi I'm trying to implement a gtk menu popup without using a button but i can't..I compile my program and when i execute it, it doesn't show the popup menu when i do a click on the window.. My idea is to show a popup menu by clicking on a window dialog instead of using a button like in the GTK 2 T

Re: Problems with gtk_menu_popup

2005-03-26 Thread Santhosh
Hi, > > I'm sending my C file in the attachment > I didn't get it... Why don't you include the code inline in the mail... Santhosh. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-deve

Problems with gtk_menu_popup

2005-03-25 Thread Boromir
Hi I'm trying to implement a gtk menu popup without using a button but i can't..I compile my program and when i execute it, it doesn't show the popup menu when i do a click on the window.. My idea is to show a popup menu by clicking on a window dialog instead of using a button like in the GTK 2 T