Last change
on this file since 345 was
345,
checked in by mabarracus, 5 years ago
|
add trusty code
fixed compilation
fixed package dependencies in xenial
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Rev | Line | |
---|
[345] | 1 | using System; |
---|
| 2 | using Gtk; |
---|
| 3 | using LliureXMiniScreen; |
---|
| 4 | using Notifications; |
---|
| 5 | |
---|
| 6 | namespace LliureXMiniScreen |
---|
| 7 | { |
---|
| 8 | public class MainClass |
---|
| 9 | { |
---|
| 10 | |
---|
| 11 | public int MiniScreenWidth {get;set;} |
---|
| 12 | public int MiniScreenHeight {get;set;} // Grandària de la minifinestra |
---|
| 13 | |
---|
| 14 | public MainWindow win {get;set;} |
---|
| 15 | |
---|
| 16 | public static void Main (string[] args) |
---|
| 17 | { |
---|
| 18 | /*Application.Init (); |
---|
| 19 | //MainWindow win = new MainWindow (); |
---|
| 20 | win = new MainWindow (); |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | win.setHint(); |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | // Gdk.WindowType.Utility |
---|
| 28 | win.Show (); |
---|
| 29 | Application.Run (); |
---|
| 30 | */ |
---|
| 31 | |
---|
| 32 | Mono.Unix.Catalog.Init("lliurex-miniscreen","/usr/share/locale"); |
---|
| 33 | |
---|
| 34 | Application.Init (); |
---|
| 35 | LliureXMiniScreen.Core.getCore(); |
---|
| 36 | LliureXMiniScreen.Core.getCore().win.setHint(); |
---|
| 37 | |
---|
| 38 | string sumary="LliureX MiniScreen"; |
---|
| 39 | string body=Mono.Unix.Catalog.GetString("To Quit, press right button on MiniScreen and select Quit."); |
---|
| 40 | string icon="/usr/share/icons/LliureX-Accessibility/Lliurex-MiniScreen.png"; |
---|
| 41 | Notifications.Notification note=new Notifications.Notification(sumary, body, icon); |
---|
| 42 | |
---|
| 43 | note.Show(); |
---|
| 44 | Application.Run (); |
---|
| 45 | } |
---|
| 46 | } |
---|
| 47 | } |
---|
| 48 | |
---|
| 49 | /* HACK PER AL LliureX-MiniScreen.About.cs, per modificar el que elimina automàticament en crear de nou la interfície |
---|
| 50 | * |
---|
| 51 | Cal canviar la línia: |
---|
| 52 | this.image1.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("MiniScreen.Lliurex-MiniScreen.png"); |
---|
| 53 | |
---|
| 54 | Per... |
---|
| 55 | |
---|
| 56 | // HACK: |
---|
| 57 | Gtk.Image img=new Gtk.Image("/usr/share/icons/LliureX-Accessibility/Lliurex-MiniScreen.png"); |
---|
| 58 | this.image1.Pixbuf = img.Pixbuf; |
---|
| 59 | |
---|
| 60 | // END HACK |
---|
| 61 | |
---|
| 62 | * |
---|
| 63 | * |
---|
| 64 | * */ |
---|
| 65 | |
---|
Note: See
TracBrowser
for help on using the repository browser.