gtk2desklet 3.1

Under development: PCMCIA, wireless, etc.
Message
Author
akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#31 Post by akash_rawal »

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.

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#32 Post by akash_rawal »

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.

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#33 Post by akash_rawal »

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)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#34 Post by vovchik »

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

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#35 Post by sc0ttman »

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! :)
Good work akash_rawal.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#36 Post by 01micko »

sc0ttman wrote:Will be great to see what widgets come out of this! :)
Yeah? :lol:

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? :) ]. The desklet way is certainly faster.

weatherCOM

Plenty of "grokking" ( :lol: @techno) involved.
Attachments
weatherCOM.gz
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
(4.51 KiB) Downloaded 887 times
weatherCOM0.png
WITH gtkdialog-desklet, has a font colour limitation
(110.91 KiB) Downloaded 1950 times
resizepng.gz
gunzip, chmod 755, mv to $PATH
(2 KiB) Downloaded 892 times
weatherCOM1.png
WITHOUT gtkdialog-desklet, needs resizepng
(113.69 KiB) Downloaded 2065 times
Puppy Linux Blog - contact me for access

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#37 Post by Geoffrey »

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.
Image

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#38 Post by akash_rawal »

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.
Attachments
widgets.png
(177.28 KiB) Downloaded 1851 times

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#39 Post by sc0ttman »

01micko wrote:
sc0ttman wrote:Will be great to see what widgets come out of this! :)
Yeah? :lol:
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 ;)

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

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...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#40 Post by seaside »

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. :)

01micko, really a fantastic effort.

A minor change to the regular gtkdialog part-

Code: Select all

	#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. :)

Regards,
s

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#41 Post by akash_rawal »

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 :oops: the font color was set to black, and so I thought that.

Code: Select all

#line 43:
COLOR=000000
I changed this to FFFFFF and now it works like your screenshot. Exactly the same way :!:
Attachments
weatherCOM.gz
Modified weatherCOM code (.gz extension is fake, remove it)
(14.52 KiB) Downloaded 801 times
weathercom.jpg
(11.98 KiB) Downloaded 1726 times

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#42 Post by jpeps »

On a similar note, for apps that use a terminal window there's Eterm in transparent mode. I use that for cpu-usage.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#43 Post by vovchik »

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:
To every action there is always an equal and opposite reaction.
So I wrote a snippet to kill them, too:):

Code: Select all

#!/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

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#44 Post by akash_rawal »

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>)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#45 Post by vovchik »

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

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#46 Post by Argolance »

Hello,
Example:
#!/bin/sh

export test="
<window>
<button image-position=\"2\" can-focus=\"no\" relief=\"2\">
<input file>/usr/local/lib/X11/pixmaps/home48.png</input>
<label>Filer</label>
<action>rox &</action>
</button>
</window>
"
gtkdialog --program=test --gtk-module=gtk2desklet --center
Console:
(gtkdialog:1301): Gtk-CRITICAL **: IA__gtk_widget_set_default_colormap: assertion `GDK_IS_COLORMAP (colormap)' failed
Please, what's wrong in this test script?

EDIT
While testing (Racy 5.3), I noticed:
  • - my wm is jwm and the script above finally works only after restarting jwm!
    - when translucency effects activated (kcompmgr), taskbar disappears and system freezes => restart X
Cordialement.
Last edited by Argolance on Mon 23 Apr 2012, 13:27, edited 1 time in total.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#47 Post by vovchik »

Dear Argolance,

Your script works with ICEWM except that it is always on top....

With kind regards,
vovchik

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#48 Post by Geoffrey »

Argolance,

The script works fine after I changed rox to Thunar in Saluki xfce with true transparency, no errors when run from the terminal.

I'm sure this is what it should look like.

Geoffrey
Attachments
Screenshot-2.png
(28.83 KiB) Downloaded 1258 times
Screenshot.png
(24.51 KiB) Downloaded 1193 times

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#49 Post by Argolance »

Hello,
Thank you for testing/replying...
This is exactly what I was expecting for!
But my final script (build on the test script model above) has necessarily to work with jwm and x/kcompmgr... :cry:
This unfortunately seems not to be possible?

Cordialement.

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#50 Post by akash_rawal »

Upgraded to version 3.1

Changelog:
  • Window searching code replaced by a crazy hack in GObject class structure.
  • Fixed broken compatibility with jwm

Post Reply