Page 54 of 59 FirstFirst ... 4445253545556 ... LastLast
Results 531 to 540 of 587

Thread: Desktop Info App With Html Support (gtk-desktop-info)

  1. #531
    Join Date
    Feb 2008
    Location
    N of Bruce W of Kaivalagi
    Beans
    185
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    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

  2. #532
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    Quote Originally Posted by HippyRandall View Post
    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.
    Long time no see Hippy, been busy with your site?

    Could be a setting in compiz, but what if the user is not running it. It might be a short term answer for the issue but I do need to look into it in code too I think.

  3. #533
    Join Date
    Mar 2009
    Location
    Stevenage
    Beans
    44
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    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:
    Code:
    	self.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DOCK)
    This is in a pretty standard Ubuntu 9.04 Gnome setup, with compiz effects on.

  4. #534
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    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.

  5. #535
    Join Date
    Mar 2007
    Location
    Cape Town, SA
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    Hello there.

    This is what I've been using for my launcher prototype:

    This is what I use to start the launcher:

    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
    1.png is a 1 pixel transparent png image. I use it to avoid confusions with compiz...

    the interval could be anything.

    and the rest is up to you.

    null.template

    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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gedit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Evince&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gimp</div>
    REMEMBER TO CHANGE "YOURFILE" AND "USERNAME"

    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

    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()
    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?
    Last edited by dariusdwtt; October 19th, 2009 at 10:31 PM.


  6. #536
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    Quote Originally Posted by dariusdwtt View Post
    Hello there.

    ...

    He got the following error

    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()
    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?
    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...

  7. #537
    Join Date
    Feb 2008
    Location
    N of Bruce W of Kaivalagi
    Beans
    185
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    Quote Originally Posted by dariusdwtt View Post
    Hello there.

    This is what I've been using for my launcher prototype:

    null.template

    <div class="mediumlight" align="center">7zip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gedit&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Evince&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gimp </div>[/code]
    A neater and potentially better way to do this would be with different divs for each label ie:

    Code:
    <div class="labels">7zip</div>....etc
    and then use CSS padding to align to your images, colorize your text 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

  8. #538
    Join Date
    Feb 2008
    Location
    N of Bruce W of Kaivalagi
    Beans
    185
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    Quote Originally Posted by kaivalagi View Post
    Long time no see Hippy, been busy with your site?
    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

  9. #539
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    Quote Originally Posted by HippyRandall View Post
    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
    Have you tried 9.10 yet, just in case that copes better with your wi-fi dongle?

  10. #540
    Join Date
    Mar 2007
    Location
    Cape Town, SA
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Desktop Info App With Html Support (gtk-desktop-info)

    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:

    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
    Template:

    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>
    The template is pretty much just what you download from that link... to the css dock site...

    http://www.zoopy.com/data/media/88711/original.jpg
    Last edited by dariusdwtt; October 20th, 2009 at 12:12 PM.


Page 54 of 59 FirstFirst ... 4445253545556 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •