PDA

View Full Version : Windowlist screenlet woes


kwaanens
February 6th, 2008, 12:15 AM
Sometimes when I right click it it disappears, but it is marked as running by Screenlets Manager. A restart of the screenlet always fixes it.
Restore window still does not work.

I'm using no other taskbar, so I really want this to be functionable.

Sorry about nagging, Whise!

- Ketil

kwaanens
February 6th, 2008, 01:49 PM
Also, I'd like the windowlist to not only expand rightwards.

Reason:
Most applications keep buttons and important stuff on the left, and some also have stuff on the bottom. If windowlist is kept above windows, those buttons are unclickable. Also, desktop icons are not clickable either.
If I keep the list at the right, having many icons will cause them to go outside the window.

Feature wish: Option: Grow to right, left or both ways.

whise
February 9th, 2008, 06:26 PM
someone replicate the error and give me a console output please

kwaanens
February 9th, 2008, 06:38 PM
Thanks for looking into this!

Here is output:

$ python /usr/share/screenlets
screenlets/ screenlets-manager/
ketil@ketil-laptop:~$ python /usr/share/screenlets/Windowlist/WindowlistScreenlet.py
CachingBackend: Loading instances from cache
CachingBackend: Loading <Windowlist1>
Creating new entry for WindowlistScreenlet in /tmp/screenlets/screenlets.ketil.running
Loading instances in: /home/ketil/.config/Screenlets/Windowlist/default/
File: Windowlist1.ini
Creating new instance:
UPDATING SHAPE
Set options in WindowlistScreenlet
UPDATING SHAPE
Screenlet has been initialized.
Restored instances from session 'default' ...
UPDATING SHAPE
UPDATING SHAPE
UPDATING SHAPE
UPDATING SHAPE
CachingBackend: Saving <#Windowlist1> :) ...
OK
Button release
Traceback (most recent call last):
File "/usr/share/screenlets/Windowlist/WindowlistScreenlet.py", line 217, in icon_left_clicked
win.unminimize(time)
ValueError: Value out of range in conversion of timestamp parameter to unsigned 32 bit integer
Button release

This is first from minimising (which works), then clicking it to restore (which does not work).

- Ketil

kwaanens
February 9th, 2008, 06:41 PM
One more thing, out of curiousity: Why does it CachingBackend: Saving <#Windowlist1> :) ...
OK every now and then?
I guess it is when I change s setting, but why does it re-read the backend? (Or does it?)

- Ketil

PS: Whise: Have I told you lately that I love you? :) For getting this project back in development! You rule!

whise
February 9th, 2008, 06:44 PM
i just got this error

/usr/lib/python2.5/site-packages/screenlets/__init__.py:993: GtkWarning: gtk_window_set_accept_focus: assertion `GTK_IS_WINDOW (window)' failed
gtk.main()
/usr/lib/python2.5/site-packages/screenlets/__init__.py:993: Warning: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed
gtk.main()
/usr/lib/python2.5/site-packages/screenlets/__init__.py:993: GtkWarning: gtk_window_set_transient_for: assertion `GTK_IS_WINDOW (window)' failed
gtk.main()
Falha de segmentção (core dumped)



dont know why it appends , it just crashed when i raised a window
i dont know how to fix it , seems like a gtk bug


One more thing, out of curiousity: Why does it CachingBackend: Saving <#Windowlist1> :) ...
OK every now and then?
I guess it is when I change s setting, but why does it re-read the backend? (Or does it?)

- Ketil

PS: Whise: Have I told you lately that I love you? :) For getting this project back in development! You rule!


thanks :) , dont ask me it was there way before i came here , lol , but i guesss its just a matter of english i guess ryx meant saving backend because thats what it does

kwaanens
February 9th, 2008, 06:46 PM
Update:
Right click > Maximise
works, a I said earlier.

Now, right clicking again, and clicking "Restore" actually works when the window is maximised.

(No output at all)

- Ketil

kwaanens
February 9th, 2008, 06:47 PM
i just got this error

/usr/lib/python2.5/site-packages/screenlets/__init__.py:993: GtkWarning: gtk_window_set_accept_focus: assertion `GTK_IS_WINDOW (window)' failed
gtk.main()
/usr/lib/python2.5/site-packages/screenlets/__init__.py:993: Warning: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed
gtk.main()
/usr/lib/python2.5/site-packages/screenlets/__init__.py:993: GtkWarning: gtk_window_set_transient_for: assertion `GTK_IS_WINDOW (window)' failed
gtk.main()
Falha de segmentção (core dumped)



dont know why it appends , it just crashed when i raised a window
i dont know how to fix it , seems like a gtk bug

I used to get that earlier, but now I can't reproduce it anymore. Don't know if this is good or bad :)

- Ketil

whise
February 9th, 2008, 06:51 PM
I used to get that earlier, but now I can't reproduce it anymore. Don't know if this is good or bad :)

- Ketil

it seems bad , but however , the other bug you describe the one that you click minimise and the unminimise , it works fine for me , dont understand

kwaanens
February 9th, 2008, 06:55 PM
Does left click both restore and minimise too? Here, it minimises, but it doesn't restore.

Sorcerer
February 9th, 2008, 07:07 PM
thanks :) , dont ask me it was there way before i came here , lol , but i guesss its just a matter of english i guess ryx meant saving backend because thats what it does
Actually the backend caches changes to the configuration and writes them to disk all at once 3 (or maybe more) seconds after the last change. There is also a GConf settings backend available which saves configuration in real-time.

kwaanens
February 9th, 2008, 07:19 PM
Just to be clear about my main problems:

# minimized window gets unminimized/activated
elif win and win.is_minimized():
win.unminimize(time)
# inactive window gets activated
elif win != None:
win.activate(time)
taskicon.active = True
taskicon.stop_flashing()

The highlighted lines do not work, and I get error:
Traceback (most recent call last):
File "/usr/share/screenlets/Windowlist/WindowlistScreenlet.py", line 220, in icon_left_clicked
win.activate(time)
ValueError: Value out of range in conversion of timestamp parameter to unsigned 32 bit integer


Traceback (most recent call last):
File "/usr/share/screenlets/Windowlist/WindowlistScreenlet.py", line 217, in icon_left_clicked
win.unminimize(time)
ValueError: Value out of range in conversion of timestamp parameter to unsigned 32 bit integer

The lines are 217, 220 in WindowlistScreenlet.py

kwaanens
February 9th, 2008, 07:32 PM
If someone decides to make a new screenlist with some of this functionality, maybe pypanel can be built upon? http://pypanel.sourceforge.net/

kwaanens
February 9th, 2008, 07:58 PM
If someone who knows Python sees this, here's my wishlist for a new windowlist/taskbar screenlet. In no particular order:

1. Picks up all applications open that would ordinary be on a taskbar
2. Use the highest quality icons available, maybe make icons for known bad ones
3. Let the taskbar be placed on a horizontal line, vertical line, curve, in a rectangular box (any proportions given).
4. A set maximum size for the windowlist (or -box). If too many icons are kept there, they should be shrinked.
5. Minimize, maximize, restore works as they should. Minimized/maximized apps should draw the Compiz Fusion animations properly to/from the icons where they belong (I know AWN sometimes interfer, but I don't know why.
6. Grouping of apps

Sorry about the nagging today

- Ketil

whise
February 9th, 2008, 08:33 PM
yes , on mine it does

kwaanens
February 9th, 2008, 08:36 PM
Hmm... Weird. Are you using Compiz Fusion as well? Version? Which distro?

I'm using Gutsy 64 bit and CF from the official Gutsy repos.

- Ketil

kwaanens
February 9th, 2008, 10:14 PM
What the H***?!? It is suddenly working! I have done nothing with anything, but all of a sudden it works. There has been no updates, no anything. I don't get this.
This is sooooo weird! Looks good too :)

Still hoping for my wishlist for a new or updated windowlist though.

- Ketil

whise
February 9th, 2008, 10:17 PM
yeah , im on ub 7.10 and compiz from repo , i just saw your abouve post(weird i replied to something else...) , your list is great but i wont do that because ryx should do that himself, sorry.... i have my own screenlets to take care (and they are to much already) i cant keep updating and improving other people screenlets , i can however try to bug fix them, but as far as i can tell the minimize maximize works very well on my pc

it would also be great if someone could assemble a tem of people to help out debuging , maybe you can change the code of the windowlist.py and see if that fixes it , i cant do anything because on my pc it works...

kwaanens
February 9th, 2008, 10:19 PM
See the post just prior to yours :) I still have no idea what happened.

whise
February 9th, 2008, 10:56 PM
that is inded weird , did you reinstall or something? or maybe deleted the config file?

kwaanens
February 9th, 2008, 10:58 PM
No, none of the above. All I did was reboot, but this is a laptop, so that happens very often. I have no explanation, but I'm not counting on it staying this way... :)

whise
February 10th, 2008, 12:46 AM
No, none of the above. All I did was reboot, but this is a laptop, so that happens very often. I have no explanation, but I'm not counting on it staying this way... :)

we must find out what is wrong then

kwaanens
February 10th, 2008, 11:38 AM
Just started up this morning, and it still works.

kwaanens
February 15th, 2008, 11:30 PM
Not flogging this dead horse again, because my initial complaint has not resurfaced :)
However, today I see something else. Windowlist is not kept above other windows, making it rather useless.
I'm using rev 182
Is this reproducable by others?

kwaanens
February 15th, 2008, 11:43 PM
Whise: Changing HBox to VBox makes the screenlets grow vertically instead of horizontally. Can you implement this as an option?

whise
February 16th, 2008, 12:20 AM
yeah shure ,

kwaanens
February 16th, 2008, 11:13 AM
Great!
About the windowlist not being on top, this does not happen right now. Might have magically fixed itself again :)

whise
February 21st, 2008, 08:45 PM
this may or may not have something to do with this , but today awn is beeing a bitch about showing minimized windows

sweetthdevil
March 1st, 2008, 06:02 PM
Will it be possible for WindowList to use the icon theme use by the operating system?

Keyper7
March 12th, 2008, 11:03 PM
Anyone here using the WindowList screenlet with no problems?

I'm having exactly the problem kwaanens reported: (un)minimize is not working and log says

Button release
Traceback (most recent call last):
File "/usr/share/screenlets/Windowlist/WindowlistScreenlet.py", line 217, in icon_left_clicked
win.unminimize(time)
ValueError: Value out of range in conversion of timestamp parameter to unsigned 32 bit integer
Button release

Please tell me what info I could provide to help (using latest bzr, btw)

kwaanens
March 12th, 2008, 11:10 PM
I recently quit using it when my troubles returned again, out of the blue.
If someone's making a new and improved one I'd be first in line.