gnome-subtitles r1031 - trunk/src/GnomeSubtitles/Dialog



Author: pcastro
Date: Sun Jul 13 17:42:36 2008
New Revision: 1031
URL: http://svn.gnome.org/viewvc/gnome-subtitles?rev=1031&view=rev

Log:
Added an error dialog that shows primary and secondary messages, and an ok button.

Added:
   trunk/src/GnomeSubtitles/Dialog/BasicErrorDialog.cs

Added: trunk/src/GnomeSubtitles/Dialog/BasicErrorDialog.cs
==============================================================================
--- (empty file)
+++ trunk/src/GnomeSubtitles/Dialog/BasicErrorDialog.cs	Sun Jul 13 17:42:36 2008
@@ -0,0 +1,41 @@
+/*
+ * This file is part of Gnome Subtitles.
+ * Copyright (C) 2008 Pedro Castro
+ *
+ * Gnome Subtitles is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Gnome Subtitles is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+using Gtk;
+using Mono.Unix;
+using System;
+
+namespace GnomeSubtitles.Dialog {
+
+public class BasicErrorDialog : ErrorDialog {
+
+	public BasicErrorDialog (string primary, string secondary) : base(primary, secondary) {
+	}
+
+	
+	/* Protected methods */
+	
+	protected override void AddButtons () {
+		dialog.AddButton(Stock.Ok, ResponseType.Ok);
+	}
+	
+
+}
+
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]