xml_scalegrip 569 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. #this generates xml code for a gtkdialog gui.
  3. #it is NOT a standalone window
  4. #
  5. #the reason for using this template is to control global size
  6. #
  7. #usage :
  8. # xml_scalegrip
  9. #
  10. #Sigmund Berglund, Mar 2014
  11. #GPL
  12. #read config if exist
  13. [ -s $HOME/.config/ptheme/gtkdialog_active ] && . $HOME/.config/ptheme/gtkdialog_active
  14. [ ! "$XML_SCALEGRIP_SIZE" ] && XML_SCALEGRIP_SIZE=20
  15. #generate XML code
  16. echo "<statusbar name=\"ScaleGrip\" width-request=\"$XML_SCALEGRIP_SIZE\"></statusbar>"
  17. # NOTE !
  18. # to avoid frame around <statusbar>, Gtk-theming is used in ./xml_info