Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Gtk;
- public static void main(string[] args){
- Gtk.init(ref args);
- Win w = new Win();
- w.show_all();
- Gtk.main();
- }
- public class Win : Window
- {
- ProgressBar pb;
- public Win(){
- destroy.connect(Gtk.main_quit);
- Box b = new Box(Orientation.VERTICAL,0);
- pb = new ProgressBar();
- b.pack_start(pb);
- Button button = new Button.with_label("go");
- button.clicked.connect(on_button_clicked);
- b.pack_start(button);
- add(b);
- }
- void on_button_clicked(){
- Soup.Session s = new Soup.Session();
- s.request("http://www.google.fr");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement