aboutsummaryrefslogtreecommitdiff
path: root/src/pmenu_w.h
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2010-10-24 14:56:19 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2010-10-24 14:56:19 +0000
commit99e3aa7a4418490a1b555ce1b86ec08d84ce0397 (patch)
treec56e5170f9c908effa5bd504ee5bc96e92159048 /src/pmenu_w.h
parent8102caed3cf783ec66de121b4124402089879f38 (diff)
Added an outlet to pmenu and added the storing of floats
svn path=/trunk/externals/tof/; revision=14242
Diffstat (limited to 'src/pmenu_w.h')
-rw-r--r--src/pmenu_w.h10
1 files changed, 2 insertions, 8 deletions
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 ; i<x->x_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);