52
by Ken VanDine
added mono-entry example |
1 |
/*
|
2 |
* Copyright (C) 2010 Canonical Ltd.
|
|
3 |
*
|
|
4 |
* This library is free software; you can redistribute it and/or modify
|
|
5 |
* it under the terms of the GNU Lesser General Public License
|
|
6 |
* version 3.0 as published by the Free Software Foundation.
|
|
7 |
*
|
|
8 |
* This library is distributed in the hope that it will be useful,
|
|
9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11 |
* GNU Lesser General Public License version 3.0 for more details.
|
|
12 |
*
|
|
13 |
* You should have received a copy of the GNU Lesser General Public
|
|
14 |
* License along with this library. If not, see
|
|
15 |
* <http://www.gnu.org/licenses/>.
|
|
16 |
*
|
|
17 |
* Authored by Ken VanDine <ken.vandine@canonical.com>
|
|
18 |
*/
|
|
19 |
||
20 |
using Gwibber; |
|
21 |
using Gtk; |
|
22 |
using System; |
|
23 |
||
24 |
public class GwibberPoster |
|
25 |
{
|
|
26 |
static void Main (string [] args) |
|
27 |
{
|
|
28 |
Application.Init (); |
|
56
by Ken VanDine
change default height in examples |
29 |
Gtk.Window window = new Gtk.Window ("Gwibber Poster (Mono)"); |
94
by Ken VanDine
ABI bump |
30 |
Gwibber.GtkEntry entry = new Gwibber.GtkEntry (); |
52
by Ken VanDine
added mono-entry example |
31 |
window.Add (entry); |
56
by Ken VanDine
change default height in examples |
32 |
window.Resize (400, 150); |
52
by Ken VanDine
added mono-entry example |
33 |
window.ShowAll (); |
34 |
window.DeleteEvent += new DeleteEventHandler (on_close); |
|
35 |
Application.Run (); |
|
36 |
}
|
|
37 |
||
38 |
static void on_close (object o, DeleteEventArgs args) |
|
39 |
{
|
|
40 |
Application.Quit (); |
|
41 |
}
|
|
42 |
}
|