PDA

View Full Version : Widget plugin


mikedee
January 16th, 2007, 11:40 PM
Since there is now something to run with this I have fixed it up a little and added some extra options.

So far the only extra features are

- Change the type of fade out (paint_type)
- Change how far it fades out (paint_amount)

The window position bug should be fixed and now you are able to focus widget windows.

TODO :
Better animation
Possibly fork into sidebar widget

Now in git, to checkout type this, update with git-pull

git-clone git://people.freedesktop.org/~mike/widget

Git web is here

http://gitweb.freedesktop.org/?p=users/mike/widget.git;a=summary

mikedee
January 17th, 2007, 02:09 PM
Just a quick update, now has better stacking. It shouldn't lose the order as often as before.

baze
January 17th, 2007, 03:30 PM
is this supposed to look like dashboard, when it's ready? with the widgets fading out in a maybe configurable direction and darkening the background?

that would be kickass :)

RYX
January 17th, 2007, 03:47 PM
is this supposed to look like dashboard, when it's ready? with the widgets fading out in a maybe configurable direction and darkening the background?
Yes - it already looks like that ... (except the directional movement).

:)

mikedee
January 17th, 2007, 03:48 PM
is this supposed to look like dashboard, when it's ready? with the widgets fading out in a maybe configurable direction and darkening the background?

This plugin already does the darkening of the background and fades the widgets in. Something like animation could be modified to use different animations for widget windows. It would be easy to add the animation to widget but it would be limited.

Its fairly stable these days so try it out along with screenlets :)

lagorgy
January 17th, 2007, 04:29 PM
hi,

how to i make the plugin work with ryx´ screenlets?

i run the screenlets, i press f9 and the background darkens but the screenlets dont hide/show...

mikedee
January 17th, 2007, 04:32 PM
how to i make the plugin work with ryx´ screenlets?

i run the screenlets, i press f9 and the background darkens but the screenlets dont hide/show...

You need to modify it as per RYX's instructions on the screenlets thread, OR wait for 0.0.3 which should have support.

http://forum.go-compiz.org/viewtopic.php?p=2984#2984

lagorgy
January 17th, 2007, 04:48 PM
thx, it works

mikedee
January 18th, 2007, 04:01 PM
I have just updated this plugin, there is quite a lot of new code and a lot of code ripped out. I have fixed the window stacking so can you test that and let me know if any of the widgets lose their stacking position. There may be new bugs with this version so please give it a hammering and let me know any problems :)

You should also be able to remove the widget attribute and it will remove the widget from the later. You could also set _COMPIZ_WIDGET to false.

lagorgy
January 18th, 2007, 04:15 PM
hi, it works ;)

im just getting this warning after make:

make: warning: Clock skew detected. Your build may be incomplete.

still, seems like it worked...

mikedee
January 18th, 2007, 04:18 PM
make: warning: Clock skew detected. Your build may be incomplete.

I think you were a little quick on the update ;) This is just a warning but something like this should fix it.

make clean && touch *

(inside the widget directory)

lagorgy
January 18th, 2007, 10:07 PM
if i minimize and restore a window using the windowlist widget, the windows lose the defined opacity.

mikedee
January 19th, 2007, 06:58 PM
if i minimize and restore a window using the windowlist widget, the windows lose the defined opacity.

Ill have a look a things like this once 0.0.3 is out, windowlist isn't really something for the widget later, but probably the best action is to deactivate the widgets if you choose to show a normal window.

lagorgy
January 24th, 2007, 10:16 PM
bug:
__________________________________________________ _
a. minimize all windows.
b. active widget.
c. restore a windows using switcher.
d. restored window comes in the widget layer and becomes usable.
__________________________________________________ _
Also most of the time the widgets are drawn below the windows not on top...

edit: the widgets are set to be placed on top.
edit2: actually the widgets not being on top i think´s a screenlets bug

RYX
January 24th, 2007, 11:58 PM
edit2: actually the widgets not being on top i think´s a screenlets bug
The Screenlets's checkbox-menuitems are not always correctly dsiplaying the current state ... the XMLMenu and the new settings-dialog will hopefully change that. :)

mikedee
January 25th, 2007, 12:12 AM
bug:
__________________________________________________ _
a. minimize all windows.
b. active widget.
c. restore a windows using switcher.
d. restored window comes in the widget layer and becomes usable.
__________________________________________________ _

I have fixed this problem now, I need to check things over again, but Ill probably release a new version of widget tomorrow.

mikedee
January 25th, 2007, 03:56 PM
I have just added a new version which fixes the reported bugs and also allows you to make any app into a widget using the force_widget setting. It works ok for gkrellm and cairo-clock.

lagorgy
January 25th, 2007, 06:51 PM
I have just added a new version which fixes the reported bugs and also allows you to make any app into a widget using the force_widget setting. It works ok for gkrellm and cairo-clock.

thx, its working great, still cant find the force_widget setting...

keep up the good work ;)

edit: lol, i should search before posting :P, force_widget @ gconf-editor.

lagorgy
January 25th, 2007, 07:11 PM
k, i tried the force_widget setting with gcalctool and doesnt work, any ideas?

mikedee
January 25th, 2007, 07:39 PM
It was a slight bug, I have uploaded a new version, can you try that.

lagorgy
January 25th, 2007, 07:48 PM
yeah, it works now, thx

But im getting this weird thing (look @ the screenshot) and also the window doesnt keep its position after moving it around and activating/deactivating the widget plugin


http://img201.imageshack.us/img201/1743/screenshot9gm.th.png (http://img201.imageshack.us/my.php?image=screenshot9gm.png)

lagorgy
January 26th, 2007, 06:12 AM
just another bug:

if i have the widget plugin activated and if i move the cursor and it activates a tooltip from a windows darkened by the widget plugin, it deactivates.


Ex:
1. Go to ubuntuforums.org
2. Enter any forum, every title generates a tooltip.
3. Activate widget plugin.
4. Move cursor to generate tooltip.
5. The tooltip deactivates the widget plugin.

eclesh
January 27th, 2007, 08:54 PM
Here's a tiny patch to activate the widget layer by moving the mouse into the top right screen edge. It was taken from the beryl version of the plugin.


diff --git a/widget.c b/widget.c
index d4a31fe..c914306 100644
--- a/widget.c
+++ b/widget.c
@@ -794,11 +794,12 @@ widgetDisplayInitOptions (WidgetDisplay *wd, Display * dis
o->value.action.initiate = widgetToggle;
o->value.action.terminate = 0;
o->value.action.bell = FALSE;
- o->value.action.edgeMask = 0;
+ o->value.action.edgeMask = (1 << SCREEN_EDGE_TOPRIGHT);
o->value.action.type = CompBindingTypeKey;
o->value.action.state = CompActionStateInitKey;
+ o->value.action.state |= CompActionStateInitEdge;
o->value.action.key.modifiers = WIDGET_TOGGLE_KEY_MODIFIERS_DEFAULT;
- o->value.action.key.keycode =
+ o->value.action.key.keycode =
XKeysymToKeycode (display,
XStringToKeysym (WIDGET_TOGGLE_KEY_DEFAULT));
}

baze
February 1st, 2007, 03:04 PM
ok, i finally wanted to try the widget plugin. screenlets run fine, but sth like dashboard would rock a bit more ;)

however, when i try to "make" the widget plugin, i get this error:

make
compiling : widget.c -> build/libwidget.lowidget.c:481: warning: type defaults to 'int' in declaration of 'CompTransform'
widget.c:481: error: expected ';', ',' or ')' before '*' token
widget.c: In function 'widgetInitScreen':
widget.c:977: error: 'widgetPaintWindow' undeclared (first use in this function)
widget.c:977: error: (Each undeclared identifier is reported only once
widget.c:977: error: for each function it appears in.)
make: *** [build/libwidget.lo] Error 1


do i need a compiz >0.3.6?

baze
February 9th, 2007, 12:34 PM
is this still being worked on? i couldn't get it to compile yet :/

mikedee
February 9th, 2007, 03:11 PM
You can download this version and replace widget.c with it. It should work, but I havent tested it, let me know if you have any compile errors.

There are lots of other problems with this plugin, please bear with me. Ill try to get one working that at least hides and shows the windows properly.

Please also report any problems so I can bear them in mind for another version.

http://www.anykeysoftware.co.uk/compiz/plugins/widget-0.3.6.c

baze
February 9th, 2007, 03:23 PM
that one compiles, thank you.

lagorgy
February 14th, 2007, 03:53 PM
hi,

im using latest git and http://www.anykeysoftware.co.uk/compiz/plugins/widget.tar.gz this version of the widget plugin, it compiles perfectly but it doesnt load

I tried using the widget-0.3.6.c mikedee added but that one doesnt even compile.

mikedee
February 14th, 2007, 03:59 PM
Do you get any error when it does not load?

In theory there is nothing to stop it from loading unless you have run out of memory (or malloc is failing for some other reason)

There are no dependencies either so that wouldn't stop it from loading.

Are you adding the plugin directly in gconf? It should be OK at the end.

lagorgy
February 14th, 2007, 04:33 PM
sorry for the noob question... but how do i check if im getting any errors?

im launching compiz like this: compiz --replace gconf widget

and i dont get any error, and it doesnt load the widget plugin.

I tried loading it from gconf-editor and it doesnt work either.

mikedee
February 14th, 2007, 04:40 PM
First, you do not need to specify widget when you start compiz, just launch it with gconf and that will load all the plugins listed in your active plugins.

The error message should be output to the terminal that you started compiz from.

If it is rejecting the plugin then normally there is a reason given. Its normally wrong ABI version, dependency problem or one of the init functions returned false.

Try typing make clean before make install just to check in case you have compiled it before against a different version of compiz.

lagorgy
February 14th, 2007, 04:51 PM
k, found the problem.

for some weird reason i have compiz.h @ /usr/include/compiz/ and /usr/local/include/compiz/

so when i compiled it was using the compiz.h from /usr/local/include/compiz which was an old version, so i just moved all the files from /usr/include/compiz to /usr/local/include/compiz/

mikedee
February 14th, 2007, 04:58 PM
That would do it :)

You should also delete these directories

/usr/lib/compiz
/usr/share/compiz

and /usr/bin/compiz if that exists

lagorgy
March 1st, 2007, 02:07 AM
Any updates on the plugin? using latest git breaks widget plugin´s fade animation. And there´s still the bug where tooltips deactivate the plugin.

davim
March 6th, 2007, 03:15 PM
I'm a beryl user but I decided to give compiz a try, it seams a bit faster but I miss beryl-settings-manager and I'm having a hard time configuring everything the way I want, but thats not the problem :P. The problem is that when I try to add a screenlet as widget compiz just crashes.
Can anyone help me?
BTW: I'm using compiz on feisty from the motu repository.

TheAxeR
April 21st, 2007, 06:16 PM
Small problem. I am using the preinstalled Compiz on Feisty. When I start screenlets after Compiz has started it crashes Compiz. I can restart Compiz and everything works fine, so it seems to only be an issue of the order which things are started. I am not sure if this is a widget or screenlets problem.

RYX
April 21st, 2007, 06:34 PM
Hi TheAxeR!

The widget-plugin is very buggy and unmaintained since a long time. It was originally written over half a year ago and then only ported to newer versions. It is likely the cause of the problem - screenlets are normal gtk-applications and should be unable to crash compiz ...

mikedee
May 20th, 2007, 02:50 PM
This has been updated and put into my freedesktop git repo. Please see the first post for information on how to download.

fldc
May 20th, 2007, 08:36 PM
edge actions in widget seem to have stopped working though.

toggle_widget_display_edge=BottomRight


Seem to have no effect

mikedee
May 20th, 2007, 09:10 PM
edge actions in widget seem to have stopped working though.

toggle_widget_display_edge=BottomRight


Seem to have no effect

I just pushed a change to hopefully fix that, can you check it works

Thanks :)

fldc
May 21st, 2007, 08:16 AM
Working again, thank you :)

RYX
August 14th, 2007, 08:55 AM
Maniac has written an improved version of the widget-plugin, based on mikedee's ideas in pywidget. More info can be found here: http://forum.compiz-fusion.org/showpost.php?p=21983&postcount=38

:)