Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Sep 2014, 06:26
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
gtk2desklet 3.1
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 5 [70 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sat 21 Jan 2012, 13:21    Post subject:  

Upgraded to version 2.2

Changelog:

  • Fixed frequent crashes with progressbars (Still not so good, it still crashes occasionally)
  • Now using real transparency if compositing manager is used.
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sat 21 Jan 2012, 13:34    Post subject:  

Geoffrey wrote:

still the same result, no transparency, but the fancy picture shows ok, oh and now when I add -g command, the command is run but the desklet never appears

-g option is meant to select gtkdialog executable.

e.g. if you have both gtkdialog4 and gtkdialog3, gtkdialog-desklet selects gtkdialog4. To make it use gtkdialog3 instead, you can pass option -g gtkdialog3

Transparency is not yet supported with background image. I will add support for alpha channel in background image someday, but I have no plans to do it soon.
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sun 22 Jan 2012, 05:46    Post subject:  

Upgraded to version 2.3

Changelog:

  • Completely fixed crashing issues with progressbars (The problem was that gtkdialog was multithreaded. This led to frequent race conditions with gtkdialog-desklet)
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 22 Jan 2012, 09:54    Post subject:  

Dear akash_rawal,

Compiles in and works really nicely in Lucid. Very clever programming, I must say. Thanks. I think we should have a section on the forum devoted to gtkdialog-desklets. I can't wait to write some myself. I can see conky being replaced by such a desklet, and heaps of other nice desktop apps.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Sun 22 Jan 2012, 13:21    Post subject:  

akash_rawal wrote:
Upgraded to version 2.3

Seems to work fine - on Akita (pup420/wary51x mongrel), using a special gtkdialog4 from techno, built without glade deps, if that matters...
Will be great to see what widgets come out of this! Smile
Good work akash_rawal.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7805
Location: qld

PostPosted: Sun 22 Jan 2012, 20:09    Post subject:  

sc0ttman wrote:
Will be great to see what widgets come out of this! Smile


Yeah? Laughing

I have been sitting on this for a few weeks as I had issues with gtkdialog-desklet and have since been very busy. But now they are mostly solved.

Note that it runs even without gtkdialog-desklet, but only supports rox-desktop ATM, it would be easy to add other support. Also requires that resizepng is installed.

It should run on anything gtkdialog-desklet supports with one issue, font colour is unsupported, [ feature request akash_rawal? Smile ]. The desklet way is certainly faster.

weatherCOM

Plenty of "grokking" ( Laughing @techno) involved.
weatherCOM.gz
Description  the grokfest, supports different screen location, all sorts of things.
gunzip and chmod, run from wherever. best to run "weatherCOM -h"
to get a handle on it.
REQUIRES >= +gtkdialog-0.8.0 and either
+gtkdialog-desklet or +resizepng
gz

 Download 
Filename  weatherCOM.gz 
Filesize  4.51 KB 
Downloaded  487 Time(s) 
weatherCOM0.png
 Description   WITH gtkdialog-desklet, has a font colour limitation
 Filesize   110.91 KB
 Viewed   1376 Time(s)

weatherCOM0.png

resizepng.gz
Description  gunzip, chmod 755, mv to $PATH
gz

 Download 
Filename  resizepng.gz 
Filesize  2 KB 
Downloaded  479 Time(s) 
weatherCOM1.png
 Description   WITHOUT gtkdialog-desklet, needs resizepng
 Filesize   113.69 KB
 Viewed   1389 Time(s)

weatherCOM1.png


_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 1396
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Mon 23 Jan 2012, 02:30    Post subject:  

Nice one 01micko,

I've been waiting to see some development with this, it still is a bit buggy with xfce but seem to work ok with true transparency.

Here it is on Saluki, looks brilliant, thanks for this, we might see a bit more of it now, I feel inspired but you beat me to it with the weather, as that was the only thing I could think of that I felt was needed.
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Mon 23 Jan 2012, 13:35    Post subject:  

Great widget 01micko. Well done.

Strangely I couldn't get the correct font color even in the gtkdialog mode, or else I was about to suggest using a custom gtkrc file for gtkdialog-desklet too.

If custom gtkrc files work for gtkdialog then they should work too for gtkdialog-desklet as it no longer depends on gtkrc files for transparency.

But <span> tag still works. However it stops working after refreshing label widget.

I am attaching screenshot of my own calendar widget. It is a work in progress, on changing months <span> tags stop working.
widgets.png
 Description   
 Filesize   177.28 KB
 Viewed   1264 Time(s)

widgets.png

Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Mon 23 Jan 2012, 14:47    Post subject:  

01micko wrote:
sc0ttman wrote:
Will be great to see what widgets come out of this! Smile


Yeah? Laughing

Yeah, lol.. Looks great!

But personally, I cannot for the life of me understand the need for weather widgets on a PC, on a phone, tablet, etc,...
I just look out the window... But then again, that is my answer to "seeing things in HD" as well Wink

But on a serious note, that looks great for those who use such things,
if I could organise my time better, I would have a go at some widgets as well..
But being an *totally* uncreative type, I can't think of any Rolling Eyes

I do know a tiny bit of gtkdialog/*ash though, so if anyone has requests,
I might give one of them a go and see what happens!

Didn't techno make a stocks n shares gtkdialog thing?
Might be a nice applet...

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Mon 23 Jan 2012, 17:23    Post subject:  

Wow! Crawling through a 200k load of html to tease out pertinent weather details - now that's the kind of person I want organizing my search party if ever I go missing. Smile

01micko, really a fantastic effort.

A minor change to the regular gtkdialog part-
Code:
   #normal gtkdialog
WINDOW='<window title="$WIDGETNAME" type-hint="7" resizable="false" decorated="false">'
to remove the window cover.

This must be a style trend coming on. No more carry-on linux luggage. If you need an icon, either just make it on the fly or grab one from the cloud. Smile

Regards,
s
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Wed 25 Jan 2012, 10:48    Post subject:  

akash_rawal wrote:

Strangely I couldn't get the correct font color even in the gtkdialog mode, or else I was about to suggest using a custom gtkrc file for gtkdialog-desklet too.

Well I failed to notice Embarassed the font color was set to black, and so I thought that.
Code:

#line 43:
COLOR=000000

I changed this to FFFFFF and now it works like your screenshot. Exactly the same way Exclamation
weatherCOM.gz
Description  Modified weatherCOM code (.gz extension is fake, remove it)
gz

 Download 
Filename  weatherCOM.gz 
Filesize  14.52 KB 
Downloaded  458 Time(s) 
weathercom.jpg
 Description   
 Filesize   11.98 KB
 Viewed   1197 Time(s)

weathercom.jpg

Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 25 Jan 2012, 12:57    Post subject:  

On a similar note, for apps that use a terminal window there's Eterm in transparent mode. I use that for cpu-usage.
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Tue 31 Jan 2012, 09:08    Post subject:  

Dear puppians,

I think gtkdialog-desklets is a great thing that we should be exploring more actively. During my explorations, Newton's Third Law of Motion came to mind:
Quote:
To every action there is always an equal and opposite reaction.


So I wrote a snippet to kill them, too:):

Code:
#!/bin/bash

tasks=$(ps | grep " -f /tmp/gtkdialog-desklets" | grep -v grep)
for i in "$tasks"; do
   task_no=$(echo "$i" | cut -c -5)
   kill $task_no
done


I am certain that technosaurus can render all of this tersely, without external calls to anything except, perhaps, "ps", so let's wait for his contribution...

With kind regards,
vovchik
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 13 Apr 2012, 15:16    Post subject:  

Upgraded to version 3.0

Changelog:

  • Package renamed to gtk2desklet
  • Now works with many GTK2 programs, not just gtkdialog.
  • The module now has wrapper-free operation. The gtkdialog-desklet script is now just a deprecated wrapper. Make the program load module directly instead (see first post)
  • No temporary directories used anymore
  • GTK theme refreshing is now handled using signals (just send SIGUSR1 signal to the program, something like kill -s USR1 <process-id>)
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 13 Apr 2012, 17:08    Post subject:  

Dear akash_rawal,

I love it. And we should try to get more of us interested in using this little gem. All I can say is "hats off"!. Brilliant.

Thanks and kind regards,
vovchik
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 5 [70 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0889s ][ Queries: 13 (0.0046s) ][ GZIP on ]