Lines Matching refs:button
52 static void CreateFolderMenu(Button);
53 static void AddFolderMenuEntry(Button, char *);
54 static void DeleteFolderMenuEntry(Button, char *);
174 * was actually selected from a folder button or menu. If the folder
181 * source widget is a menu button or a folder menu. However, it
261 Widget widget, /* the okay button of the dialog widget */
299 Button button;
302 button = BBoxFindButtonNamed(scrnList[i]->folderbuttons,
305 if (button) AddFolderMenuEntry(button, name);
461 * So the menu entry deletion routines must be able to handle a button
544 * I assume that the name of the button is identical to the name of the folder.
611 Button button, /* the corresponding menu button */
630 if (button->menu == NULL || button->menu == NoMenuForButton) {
631 CreateFolderMenu(button);
655 XtCreateManagedWidget(name, smeBSBObjectClass, button->menu,
665 * app_resources.mail_path, '/', and the name of the button,
674 Button button)
682 app_resources.mail_path, button->name) < sizeof(directory))
692 button->menu = NoMenuForButton;
696 button->menu = XtCreatePopupShell("menu", simpleMenuWidgetClass,
697 button->widget, (ArgList) NULL, ZERO);
701 AddFolderMenuEntry(button, button->name);
705 length = strlen(button->name);
706 memcpy(directory, button->name, length);
711 AddFolderMenuEntry(button, directory);
722 Button button,
732 if (button == NULL || button->menu == NULL) return;
735 XtGetValues(button->menu, args, TWO);
737 XtDestroyWidget(button->menu);
738 button->menu = NoMenuForButton;
746 if (strcmp(button->name, subfolder) == 0) {
751 if ((entry = XtNameToWidget(button->menu, subfolder)) != NULL)
758 * selects a folder button. A folder button represents a folder
763 * button emulates a command button. When subfolders exist,
764 * the menu will popup, using the menu button action PopupMenu.
774 Button button;
778 if ((button = BBoxFindButton(scrn->folderbuttons, w)) == NULL)
780 if (button->menu == NULL)
781 CreateFolderMenu(button);
783 if (button->menu == NoMenuForButton)
786 XtCallActionProc(button->widget, "PopupMenu", (XEvent *) NULL,
788 XtCallActionProc(button->widget, "reset", (XEvent *) NULL,
798 * by a button instead of a menu with one entry. Sets the currently
809 Button button;
812 /* The MenuButton widget has a button grab currently active; the
814 * the mouse button while the mouse pointer was on the same menu button
815 * widget that originally activated the button grab. This mechanism is
819 * button behaves properly when the user moves the pointer out of the
820 * menu button window.
822 * This action is for menu button widgets only.
828 if ((button = BBoxFindButton(scrn->folderbuttons, w)) == NULL)
830 SetCurrentFolderName(scrn, button->name);
1068 /* %%% should add cancel button */
1149 /* %%% should add cancel button */