From 99e3aa7a4418490a1b555ce1b86ec08d84ce0397 Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Sun, 24 Oct 2010 14:56:19 +0000 Subject: Added an outlet to pmenu and added the storing of floats svn path=/trunk/externals/tof/; revision=14242 --- src/pmenu_w.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/pmenu_w.h') diff --git a/src/pmenu_w.h b/src/pmenu_w.h index b1ff496..24896c9 100644 --- a/src/pmenu_w.h +++ b/src/pmenu_w.h @@ -55,12 +55,7 @@ static void pmenu_w_menu(t_pmenu *x, int draw) //sys_vgui("set %xw .x%x.c.s%x ; menubutton $%xw -justify left // Create a variable to store a pointer to the menu, create the menu, create a variable to store the selected item sys_vgui("set %xw .%x ; menu $%xw -relief solid -tearoff 0; set %xradio -1 \n",x,x,x); - int i; - for(i=0 ; ix_num_options ; i++) - { - // Add menu itmes - pmenu_w_additem(x,x->x_options[i],i); - } + } else if ( draw == DESTROY) { //x->created = 0; @@ -75,8 +70,7 @@ static void pmenu_w_menu(t_pmenu *x, int draw) static void pmenu_w_pop(t_pmenu *x) { - - if (x->x_num_options > 0) { + if (x->options_count > 0) { //if ( x->created == 0 ) pmenu_w_menu(x, glist, CREATE); if ( x->current_selection != -1 && x->focusing) { sys_vgui("tk_popup $%xw [winfo pointerx .] [winfo pointery .] %i\n",x,x->current_selection); -- cgit v1.2.1