isn't there a setting in compiz to override this behaviour?
Edit:
I can't find a way to disable it in compiz. I thought sure there was a way.
isn't there a setting in compiz to override this behaviour?
Edit:
I can't find a way to disable it in compiz. I thought sure there was a way.
Last edited by HippyRandall; October 19th, 2009 at 04:47 AM.
hippyrandall.com | This is the first age that's paid much attention to the future, which is alittle ironic since we may not have one. -- Arthur Clarke
Hi, I just found this, and I think it's great, thanks for putting in all the work. I'll certainly be playing around with this to get it how I like it.
About stopping it minimizing: I know nothing about python, but I do know Google: http://www.pygtk.org/docs/pygtk/clas...-set-type-hint
After some playing, I added this line to gtk_desktop_info.py (on line 107 beneath self.createLogger()), and it now doesn't minimize when I click the button in the bottom corner, which it was before, and it doesn't seem to have destroyed anything else:
This is in a pretty standard Ubuntu 9.04 Gnome setup, with compiz effects on.Code:self.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DOCK)
Thanks! That's great, I'll be sure to add the window hint in for the next release...edit: added at line 150 straight after other self.set_* method calls
@ALL
I have one outstanding nasty to take care of now, with deluge 1.2.0 (rc1) the old means to get torrent data has been removed and the new way is with reactor based callbacks (asynchronous). This doesn't quite line up well with a timer based updating app like this one (synchronous)...once I have figured this one out I'll do a release.
On the topic, does any one know anything about reactor and twisted? The same code which works with my conkyDeluge script fails with this app because the code is in a plugin module imported in rather than the main top level script...on reactor.run() the execution is blocked and nothing happens?
Last edited by kaivalagi; October 19th, 2009 at 07:27 PM.
Hello there.
This is what I've been using for my launcher prototype:
This is what I use to start the launcher:
1.png is a 1 pixel transparent png image. I use it to avoid confusions with compiz...Code:gtk-desktop-info --interval=600 --width=290 --height=100 --x=20 --y=30 --plugin=null --wallpaper=/opt/1.png --backgroundblend=55 --noresize --backgroundcolour=208,208,208 --backgroundcorner=1
the interval could be anything.
and the rest is up to you.
null.template
REMEMBER TO CHANGE "YOURFILE" AND "USERNAME"Code:<a href="file:///home/USERNAME/YOURFILE.tar.gz"><img src="file:///home/USERNAME/YOURFILE.png" alt="Hover" onmouseover="this.src='file:///home/USERNAME/YOURFILE.png';" onmouseout="this.src='file:///home/USERNAME/YOURFILE.png';" width="64px" height="64px" /></a> <a href="file:///home/USERNAME/YOURFILE.txt"><img src="file:///home/USERNAME/YOURFILE.png" alt="Hover" onmouseover="this.src='file:///home/USERNAME/YOURFILE.png';" onmouseout="this.src='file:///home/USERNAME/YOURFILE.png';" width="64px" height="64px" /></a> <a href="file:///home/USERNAME/YOURFILE.jpg"><img src="file:///home/USERNAME/YOURFILE.png" alt="Hover" onmouseover="this.src='file:///home/USERNAME/YOURFILE.png';" onmouseout="this.src='file:///home/USERNAME/YOURFILE.png';" width="64px" height="64px" /></a> <a href="file:///home/USERNAME/YOURFILE.xcf"><img src="file:///home/USERNAME/YOURFILE.png" alt="Hover" onmouseover="this.src='file:///home/USERNAME/YOURFILE.png';" onmouseout="this.src='file:///home/USERNAME/YOURFILE.png';" width="64px" height="64px" /></a> <div class="mediumlight" align="center">7zip Gedit Evince Gimp</div>
I was chatting to someone named choki recently and for some reason it wouldn't work on his setup... not sure why that would be...
He got the following error
I sometimes get the error from line 2 till the end, but never the first line, which is probably why it didn't work for him?Code:Error occured while reset 800b: errno=5 TypeError: can't convert return value to desired type /usr/share/gtk-desktop-info/gtk_desktop_info.py:480: Warning: g_value_get_int: assertion `G_VALUE_HOLDS_INT (value)' failed gtk.main() /usr/share/gtk-desktop-info/gtk_desktop_info.py:480: Warning: g_value_reset: assertion `G_IS_VALUE (value)' failed gtk.main() /usr/share/gtk-desktop-info/gtk_desktop_info.py:480: Warning: g_value_set_int: assertion `G_VALUE_HOLDS_INT (value)' failed gtk.main() /usr/share/gtk-desktop-info/gtk_desktop_info.py:480: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed gtk.main()
Last edited by dariusdwtt; October 19th, 2009 at 10:31 PM.
Hi Darius, nice alternative use of the app
I've never seen that error before, I think it relates to GTK when first starting the main loop for the window...unfortunately it is one of those errors without much info behind it, unless I can reproduce it I won't be able to figure it out (99% sure of that anyway)
What version of Ubuntu are you both running? Is your friend even running Ubuntu? Also, if 9.10 then I can't help until at least a week after it is fully released as I don't upgrade until 1 week after it's final, ever...
A neater and potentially better way to do this would be with different divs for each label ie:
and then use CSS padding to align to your images, colorize your text etcCode:<div class="labels">7zip</div>....etc
Just another 2cents worth
Hippy
here's a neat css dock example I found. not sure how it would work in this app but check it out here: http://www.ndesign-studio.com/blog/mac/css-dock-menu
Last edited by HippyRandall; October 20th, 2009 at 12:58 AM.
hippyrandall.com | This is the first age that's paid much attention to the future, which is alittle ironic since we may not have one. -- Arthur Clarke
Not so much. Just been a lurker I guess you could call me. I have been forced to run Ubuntu in a virt machine since my wireless has decided that it doesn't want to work 99.9% of the time and the only other way I have to connect to the internet is with a USB network adapter that causes Ubuntu to freeze up on me. Consequently I do not run Ubuntu as often as I used to, or as much as I would like.
Hippy
hippyrandall.com | This is the first age that's paid much attention to the future, which is alittle ironic since we may not have one. -- Arthur Clarke
I'm using Jaunty, and I think he is too...
That css dock is awesome! and I have it working, but with the odd niggle...
gtk-dektop-info doesn't seam to like html that calls external css, so it has to be specified in the command, and the anti-aliasing could be better. In firefox it looks great but there is a slight drop in picture quality when it's on the desktop. I'm sure that it could be specified somewhere in compiz or in the nvidia manager to force better anti-aliasing in gtk-desktop-info...
Command:
Template:Code:gtk-desktop-info --interval=600 --width=1024 --height=120 --x=0 --y=0 --plugin=null --template=path/css-dock-menu/css-dock-top.html --css=path/css-dock-menu/style.css --wallpaper=/opt/1.png --backgroundblend=70 --noresize --backgroundcolour=0,0,0 --backgroundcorner=1
The template is pretty much just what you download from that link... to the css dock site...Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>CSS Mac Dock</title> <script type="text/javascript" src="/home/d/Desktop/css-dock-menu/js/jquery.js"></script> <script type="text/javascript" src="/home/d/Desktop/css-dock-menu/js/interface.js"></script> <link href="style.css" rel="path/css-dock-menu/stylesheet" type="text/css" /> </head> <body> <div class="dock" id="dock"> <div class="dock-container"> <a class="dock-item" href="YOURDUMMYFILE"><img src="path/home.png" alt="home" /><span>Home</span></a> <a class="dock-item" href="YOURDUMMYFILE"><img src="path/email.png" alt="contact" /><span>Contact</span></a> <a class="dock-item" href="YOURDUMMYFILE"><img src="path/portfolio.png" alt="portfolio" /><span>Portfolio</span></a> <a class="dock-item" href="YOURDUMMYFILE"><img src="path/music.png" alt="music" /><span>Music</span></a> <a class="dock-item" href="YOURDUMMYFILE"><img src="path/video.png" alt="video" /><span>Video</span></a> <a class="dock-item" href="YOURDUMMYFILE"><img src="path/history.png" alt="history" /><span>History</span></a> <a class="dock-item" href="YOURDUMMYFILE"><img src="path/calendar.png" alt="calendar" /><span>Calendar</span></a> <a class="dock-item" href="YOURDUMMYFILE"><img src="path/rss.png" alt="rss" /><span>RSS</span></a> </div> </div> <script type="text/javascript"> $(document).ready( function() { $('#dock').Fisheye( { maxWidth: 50, items: 'a', itemsText: 'span', container: '.dock-container', itemWidth: 45, proximity: 60, halign : 'center' } ) } ); </script> </body> </html>
http://www.zoopy.com/data/media/88711/original.jpg
Last edited by dariusdwtt; October 20th, 2009 at 12:12 PM.
Bookmarks