Revision history for gtkdialogDocTips9.11
Additions:
[[HomePage]] > [[SoftwareIndex|Software Index]] > [[SoftwareDevelopment|Development]] > [[gtkdialog|gtkdialog]] > [[gtkdialogDocTips|Tips and Tricks]]
===@@**#%[[gtkdialogDocTips9.10|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips9.12|Next ❱❱❱]]#%**@@===
===@@**#%[[gtkdialogDocTips9.10|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips9.12|Next ❱❱❱]]#%**@@===
Deletions:
@@**#%[[gtkdialogDocTips9.10|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips9.12|Next ❱❱❱]]#%**@@
Additions:
====9.11 Override window manager====
- skip taskbar, sticky, layer, border
**Window on top**
echo -n '<window type-hint="6" window-position="1">
<edit justification="2" cursor-visible="false">
<default>"
This window stays on top
Has no window decoration
Can not be resized
Can not be moved
"</default>
</edit>
<button></button>
</vbox>
</window>'|gtkdialog -s
**JWM - specific**
This is how to override default settings in your JWM configuration.
Your gtkdialog gui must be called with the ##--class parameter##
##gtkdialog --class=APPLET -f myfile##
Then this code must be in your jwm configuration file - ##$HOME/.jwmrc## (to be set permanently, it must be added to ##/etc/xdg/templates/_root_.jwmrc##)
<Group>
<Class>APPLET</Class>
<Option>nolist</Option>
<Option>sticky</Option>
<Option>noborder</Option>
<Option>layer:above</Option>
- ##nolist## does avoid your app showing up in the taskbar.
- ##sticky## shows your app on all desktops.
- ##noborder## is equal to the gtkdialog attribute ##<window decorated="false">##.
- ##layer:n## defines if other windows should cover your app, or if it should be on top. below, normal or above.
@@**#%[[gtkdialogDocTips9.10|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips9.12|Next ❱❱❱]]#%**@@
- skip taskbar, sticky, layer, border
**Window on top**
echo -n '<window type-hint="6" window-position="1">
<edit justification="2" cursor-visible="false">
<default>"
This window stays on top
Has no window decoration
Can not be resized
Can not be moved
"</default>
</edit>
<button></button>
</vbox>
</window>'|gtkdialog -s
**JWM - specific**
This is how to override default settings in your JWM configuration.
Your gtkdialog gui must be called with the ##--class parameter##
##gtkdialog --class=APPLET -f myfile##
Then this code must be in your jwm configuration file - ##$HOME/.jwmrc## (to be set permanently, it must be added to ##/etc/xdg/templates/_root_.jwmrc##)
<Group>
<Class>APPLET</Class>
<Option>nolist</Option>
<Option>sticky</Option>
<Option>noborder</Option>
<Option>layer:above</Option>
- ##nolist## does avoid your app showing up in the taskbar.
- ##sticky## shows your app on all desktops.
- ##noborder## is equal to the gtkdialog attribute ##<window decorated="false">##.
- ##layer:n## defines if other windows should cover your app, or if it should be on top. below, normal or above.
@@**#%[[gtkdialogDocTips9.10|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips9.12|Next ❱❱❱]]#%**@@
Deletions:
Sometimes it is nice to change the gtktheme just for my app. Like this I get more options for my gtkdialog script.
Gtkdialog does not support monospace in the ##<edit>## widget, but I can make it work by adding a unique gtk-theme only for my app. The best way to this is to add my new gtk-theme on top of the already existing. Now my gtk-theme can hold ONLY information about monospace, else it will use gtk-settings specified by user.
By giving the text-widget a name (see example), it is possible to have a gtk-theme for only this unique text string. This also works for text in widgets like ##<entry>##.
echo 'style "specialmono"
{
font_name="Mono 12"
}
widget "*mono" style "specialmono"
class "GtkText*" style "specialmono"' > /tmp/gtkrc_mono
export GTK2_RC_FILES=/tmp/gtkrc_mono:/root/.gtkrc-2.0
export test_app="
<text name=\"mono\"><label>This text-widget uses monospace font....</label></text>
<text><label>...while this text-widget don't.</label></text>
<edit><default>All edit-widgets gets monospace.</default></edit>
</vbox>"
gtkdialog --program=test_app
@@**#%[[gtkdialogDocTips9.9|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips9.11|Next ❱❱❱]]#%**@@