Commit graph

20 commits

Author SHA1 Message Date
Mikael Magnusson
c716d1788b Remove double newlines. 2008-03-08 17:41:52 +01:00
Dana Jansens
9d9ca8d1cf allow prompts to have titles specified. show a prompt when there are syntax errors in the xml config files. 2008-03-02 17:12:11 -05:00
Dana Jansens
bb557f06a6 add a cleanup callback to the prompt interface. when the prompt's callback returns TRUE, then the cleanup function is called. likewise when the prompt system is shutdown (openbox is exiting), then the cleanup function is also called. it should unref/destroy the prompt and any memory associated with it 2008-03-02 16:13:23 -05:00
Dana Jansens
b8960827b7 make code to show a prompt when you just want to display and message and not do anything when the user presses the button 2008-03-02 15:02:34 -05:00
Dana Jansens
b20ef1556a remove some debug prints 2008-03-01 11:45:33 -05:00
Dana Jansens
cd4f325ee7 Let ObPrompts be modal dialogs, and when they are transient for a window, make it transient for its entire group, so it can be stacked at the highest level above other transients 2008-02-22 10:38:14 -05:00
Dana Jansens
58788c7817 the focus indicator line for prompt buttons wasn't being displayed, since the texture type was no longer being set 2008-02-18 20:42:35 -05:00
Dana Jansens
cd3aa44b6a draw a box inside the key-focused button in an ObPrompt. also fix rendering the buttons when they are parent-relative. 2008-02-14 14:24:37 -05:00
Dana Jansens
415c0d2721 make ObPrompts resize and redraw correctly when reconfiguring and changing themes with them open 2008-02-14 14:24:37 -05:00
Dana Jansens
74a746e55f use the hover and press button colors (this was a bug) 2008-02-14 14:24:37 -05:00
Dana Jansens
972e1fc5a3 if a prompt is already showing and you try show it again, then make it active. in the "kill this?" prompt use the window's original title without any of the openbox-appended-ness 2008-02-14 14:24:36 -05:00
Dana Jansens
d714bb5708 prompt to kill windows when they are not responding 2008-02-14 14:24:07 -05:00
Dana Jansens
c7af49b5c5 let you specify return codes for the different buttons in a prompt, and specify a callback function for the prompt for when it is closed 2008-02-14 14:24:07 -05:00
Dana Jansens
ea28a9e7ab position the buttons in the bottom right instead of centering them 2008-02-14 14:24:07 -05:00
Dana Jansens
deca45dada key input works for ObPrompt windows now 2008-02-14 14:24:07 -05:00
Dana Jansens
a5005506a8 make the prompt buttons respond to button presses. keyboard input code is there too but not working yet. 2008-02-14 14:24:07 -05:00
Dana Jansens
61b8f52430 properly place the msg texture 2008-02-14 14:24:07 -05:00
Dana Jansens
457fdc5ccb Make ObPrompt windows get managed as clients, and make them able to reconfigure as well. 2008-02-14 14:24:07 -05:00
Dana Jansens
974e88581f give prompts a border, and fix how they are laid out. and make them use the multi-line text capabilities in render for the message 2008-02-14 14:24:07 -05:00
Dana Jansens
c313b219a2 you can create dialog windows called "prompts" which have a message and some buttons! they don't do anything interesting yet. 2008-02-14 14:24:07 -05:00