Mikael Magnusson
9e05faf3d6
() -> (void) also in .h files, and fix a place that gave arguments when it shouldn't have.
2008-02-15 16:47:10 +01:00
Mikael Magnusson
0ffd1ccc47
() -> (void)
2008-02-15 16:21:35 +01:00
Dana Jansens
db49122dec
Merge branch 'backport' into work
...
Conflicts:
openbox/frame.c
openbox/menuframe.c
2008-02-15 10:03:55 -05:00
Dana Jansens
beae040a81
remove prop.c/h, as they were reintroduced in a bad merge ( 0dc7eca4cd
)
2008-02-15 10:01:32 -05:00
Dana Jansens
4b71209ec8
make the frame iconify animation go right into the icon geometry area instead of stopping before it
2008-02-15 01:07:15 -05:00
Dana Jansens
0c8aca23eb
set the window type hint on menus to be "popup menus"
2008-02-14 23:04:54 -05:00
Dana Jansens
e1b4b9eb17
Merge branch 'backport' into work
2008-02-14 15:14:55 -05:00
Dana Jansens
b01dd0b20f
Merge branch 'backport' into work
2008-02-14 15:14:41 -05:00
Dana Jansens
cec5480108
avoid a compiler warning
2008-02-14 15:11:25 -05:00
Dana Jansens
66a897d9b2
don't reference free'd memory, and don't leak memory if the image cache is not saving any resized pictures
2008-02-14 15:10:14 -05:00
Dana Jansens
3f62e77dea
don't use \n at the end of g_message strings
2008-02-14 15:10:14 -05:00
Dana Jansens
e7a86f5fe4
use g_message not g_print so it can go to the log
2008-02-14 15:10:14 -05:00
Dana Jansens
38c96413b3
pre-calc the sum of a picture added to an RrImage rather than calculating it every time
2008-02-14 15:10:14 -05:00
Dana Jansens
a2e3026d8a
add a bunch of comments for images and image caches. and make the number of resized pictures saved in an image tunable per-icon cache.
2008-02-14 15:10:14 -05:00
Dana Jansens
35b36fc377
when resizing images, pick a source image with the same aspect ratio if possible
2008-02-14 15:10:14 -05:00
Dana Jansens
4c7cc1cfa6
Introducing the icon cache.
...
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
2008-02-14 15:09:24 -05:00
Dana Jansens
512d93afcc
backport the changes to render/ from the alttab branch (commit 3592046b2b
) in master, as the iconcache changes depend on this
...
git show 3592046b
-- render
2008-02-14 14:44:17 -05:00
Dana Jansens
ceb77efdd4
Merge branch 'backport' into work
2008-02-14 14:36:05 -05:00
Mikael Magnusson
e06ddf9f22
put the char member at the bottom of the struct so that it doesnt mess up alignment for the other members (assuming the compiler doesn't pad the struct appropriately anyways)
2008-02-14 14:35:28 -05:00
Dana Jansens
911413d86c
obprompts do not have a stacking layer, as they don't appear directly in the stacking list
2008-02-14 14:30:10 -05:00
Dana Jansens
def8fc707d
obprompts do not have a stacking layer, as they don't appear directly in the stacking list
2008-02-14 14:29:40 -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
baf1a0919d
fix min-size calculations for lineart textures
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
c778cf15cb
don't ping everything all the time. yay. ping when you close, and if it doesn't reply then show the kill prompt. also show a more correct prompt for windows connecting from non-local machines - ask to disconnect them from the X server.
2008-02-14 14:24:37 -05:00
Dana Jansens
4eecbeb611
tell what signal is going to be sent to the client when killing through the dialog
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
0da49e82ae
when drawing and measuring strings in "flow" mode, don't ellipsize so that lines can wrap
2008-02-14 14:24:37 -05:00
Dana Jansens
7b4556b211
don't kill our own ObPrompt windows with kill actions
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
7867ced622
allow font rendering to use multiple lines
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
Dana Jansens
f9b59a4911
make the internal window type more easily inheritable
2008-02-14 14:24:07 -05:00
Dana Jansens
91a9000d16
draw a box inside the key-focused button in an ObPrompt. also fix rendering the buttons when they are parent-relative.
2008-02-14 19:43:09 +01:00
Dana Jansens
957e07cbcc
fix min-size calculations for lineart textures
2008-02-14 19:43:08 +01:00
Dana Jansens
b026bd2ecc
make ObPrompts resize and redraw correctly when reconfiguring and changing themes with them open
2008-02-14 19:43:08 +01:00
Mikael Magnusson
c8ef10a0e1
put the char member at the bottom of the struct so that it doesnt mess up alignment for the other members (assuming the compiler doesn't pad the struct appropriately anyways)
2008-02-14 19:43:07 +01:00
Mikael Magnusson
1124d10369
Merge branch 'backport' into work
...
Diffing against the old work branch where most of the changes
in backport were cherry-picked from indicates this should be
alright. (0de9097017d4d1991388a35e380a57dc1135b431)
2008-02-14 19:43:02 +01:00
Dana Jansens
f1f61ff703
update the indent style guidelines
2008-02-14 19:40:03 +01:00
Dana Jansens
27177e498b
let you match per-app settings based on the window type
2008-02-14 19:40:03 +01:00
Dana Jansens
619fd7e666
don't force fake enter events while there is a grab on the pointer. this fixes focus switching during a move/resize from mouse-button-bound actions.
2008-02-14 19:40:03 +01:00
Dana Jansens
8f5540f76d
turn the new openbox.png into the default icon.h
2008-02-14 19:40:03 +01:00