All pastes #32882 Raw Edit

Stuff

public text v1 · immutable
#32882 ·published 2005-12-07 23:04 UTC
rendered paste body
// This is my Settings Dialog which should be displayed

public class SettingsDialog {


	public SettingsDialog()
	{
		InitGUI();
	}

	
	[Widget] 
	Dialog dialogServerSettings;
	
	private void InitGUI() {
		Glade.XML gxml = new Glade.XML(null, "gnome-art.glade", "dialogServerSettings", null);
		gxml.Autoconnect(this);
		dialogServerSettings.Hide();

	}
	
	public void Run() {
		dialogServerSettings.Run();
                dialogServerSettings.Hide ();
	}
}


// And this is the function which opens the dialog

   	private void ShowServerSettingsDialog() {
   		
   		SettingsDialog settingsDialog = new SettingsDialog();
   		settingsDialog.Run();
   	}
	
// What is wrong?