Well I failed to noticeakash_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.
![Embarassed :oops:](./images/smilies/icon_redface.gif)
Code: Select all
#line 43:
COLOR=000000
![Exclamation :!:](./images/smilies/icon_exclaim.gif)
Well I failed to noticeakash_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.
Code: Select all
#line 43:
COLOR=000000
So I wrote a snippet to kill them, too:):To every action there is always an equal and opposite reaction.
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
Console:#!/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
Please, what's wrong in this test script?(gtkdialog:1301): Gtk-CRITICAL **: IA__gtk_widget_set_default_colormap: assertion `GDK_IS_COLORMAP (colormap)' failed
It's possible, but you have to do extra hardwork of writing gtkrc files and use them using DESKLET_GTKRC_FILES environment variable.brokenman wrote:Is it possible to get the transparency even during the mouseover?
The trick is to use transparent images as widget background.DESKLET_GTKRC_FILES
- This variable can contain extra GTK resource files (many people call these
theme files) without affecting any subprocesses. File names are separated
by a pipe character '|'.
Now, this works without restarting jwm and system doesn't freeze anymore: scripts windows are just not displayed at all till translucency/shadow effects are deactivated.- 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
I guess I didn't well understandI well understand that window full transparency cannot be "married" with translucency and shadow effects but perhaps this could be by-passed this way:
Create a little script called "gtk2desklet" and rename the original into gtkdesklet_ for example. gtk2desklet looks if x/kcompmgr is currently running or not, then calls gtkdesklet_ or not according to the result?
Code: Select all
export DISABLE_RGBA_TRANS="1"
gtkdialog --program=test --gtk-module=gtk2desklet --center
Code: Select all
pixmap_path "/mnt/sda7/sandpit/gtkapps"
style "rescue_button" = "fedora-wider"
{
#bg[NORMAL] = shade (1.02,@bg_color)
#bg[ACTIVE] = shade (0.85,@bg_color)
#bg[PRELIGHT] ="./transparent.png"
bg[PRELIGHT] = mix(1.90, shade (1.35,@bg_color), @selected_bg_color)
#bg_pixmap[NORMAL] = "bg.png"
}
widget_class "*GtkButton*" style "rescue_button"