All pastes #32880 Raw Edit

miketech

public text v1 · immutable
#32880 ·published 2005-12-07 22:59 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();
	}
}


// And this is the function which opens the dialog

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