summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinternetui.sh28
-rwxr-xr-xlibsisyphus.sh2
2 files changed, 30 insertions, 0 deletions
diff --git a/internetui.sh b/internetui.sh
index d46032d..9b414a0 100755
--- a/internetui.sh
+++ b/internetui.sh
@@ -4,5 +4,33 @@
export local internetui='
<window title="Sisyphus - A simple Epkg GUI" window-position="1" icon-name="gtk-search" modal="true" resizable="false" width-request="800" height-request="600">
<vbox>
+<frame Internet>
+ <hbox space-expand="true" space-extend="true">
+ <table hscrollbar-policy="1" vscrollbar-policy="1" exported-column="1">
+ <variable>internet</variable>
+ <label>Application Category|Application Name|Application Description</label>
+ <item>www-client|firefox|Firefox Web Browser</item>
+ </table>
+ </hbox>
+ <hbox space-expand="false" space-extend="false">
+ <button space-expand="true" space-extend="true" label-text="install">
+ <label>Install package</label>
+ <action>epkg autoinstall $internet|$showdialog</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="uninstall">
+ <label>Uninstall package</label>
+ <action>epkg autoremove $internet|$showdialog</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="home">
+ <label>Back home</label>
+ <action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=mainui &</action>
+ <action signal="button-release-event">EXIT:ok</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="exit">
+ <label>Exit</label>
+ <action>EXIT:ok</action>
+ </button>
+ </hbox>
+</frame>
</vbox>
</window>'
diff --git a/libsisyphus.sh b/libsisyphus.sh
index d5693c4..ff3cb1d 100755
--- a/libsisyphus.sh
+++ b/libsisyphus.sh
@@ -67,6 +67,8 @@ export local mainui='
</button>
<button tooltip-text="Internet">
<label>Internet</label>
+ <action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=internetui &</action>
+ <action signal="button-release-event">EXIT:ok</action>
</button>
</hbox>
<hbox>