~ubuntu-branches/ubuntu/vivid/blam/vivid-proposed

« back to all changes in this revision

Viewing changes to src/Dialogs.cs

  • Committer: Bazaar Package Importer
  • Author(s): Adrien Cunin
  • Date: 2007-02-02 00:37:16 UTC
  • mfrom: (1.1.4 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20070202003716-63fv2k0ztk04bjq9
Tags: 1.8.4-0ubuntu1
* Sync with Debian unstable
* New upstream release
* Added build-dependency on gnome-sharp2
* debian/patches/01_correct_default_theme.patch: dropped, included upstream
* Re-added the following Ubuntu changes:
   - Build-Depends on firefox-dev instead of libxul-dev
   - debian/patches/PlanetUbuntu.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
            about.Hide();
46
46
        }
47
47
        
48
 
        public void OnDelete(object obj, EventArgs args)
 
48
        public void OnDelete(object obj, DeleteEventArgs args)
49
49
        {
50
50
            aboutBox = null;
51
51
        }
60
60
    }
61
61
    
62
62
    class AddChannelDialog {
63
 
        [Widget] Gtk.Dialog addChannelDialog = null;
64
 
        [Widget] Gtk.Entry  urlEntry         = null;
65
 
        [Widget] Gtk.Image  dialogImage      = null;
66
 
        [Widget] Gtk.Button okButton         = null;
 
63
    [Widget] Gtk.Dialog addChannelDialog = null;
 
64
    [Widget] Gtk.Entry  urlEntry         = null;
 
65
    [Widget] Gtk.Entry  usernameEntry    = null;
 
66
    [Widget] Gtk.Entry  passwordEntry    = null;
 
67
    [Widget] Gtk.Image  dialogImage      = null;
 
68
    [Widget] Gtk.Button okButton         = null;
67
69
        
68
70
        private Application mApp;
69
71
        
84
86
 
85
87
        public void Show ()
86
88
        {
87
 
            urlEntry.Text = "";
 
89
            urlEntry.Text = ""; //otherwise it will keep adding it on to the end
 
90
            urlEntry.PasteClipboard();
 
91
            usernameEntry.Text = "";
 
92
            passwordEntry.Text = "";
88
93
         
89
94
            addChannelDialog.ShowAll ();
90
95
        }
91
96
 
92
 
        public void Show (string url)
93
 
        {
94
 
            urlEntry.Text = url;
95
 
 
96
 
            addChannelDialog.ShowAll ();
97
 
        }
 
97
    public void Show (string url)
 
98
    {
 
99
        urlEntry.Text = url;
 
100
        usernameEntry.Text = "";
 
101
        passwordEntry.Text = "";
 
102
            
 
103
        addChannelDialog.ShowAll ();
 
104
    }
98
105
 
99
106
        public void CancelButtonClicked (object obj, EventArgs args)
100
107
        {
106
113
            Channel channel = new Channel ();
107
114
                
108
115
            channel.Url = urlEntry.Text;
 
116
            channel.http_username = usernameEntry.Text;
 
117
            channel.http_password = passwordEntry.Text;
109
118
 
110
119
            mApp.CCollection.Add (channel);
111
120