gnome-subtitles r1037 - in trunk: po src/GnomeSubtitles/Core	src/GnomeSubtitles/Dialog
- From: pcastro svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-subtitles r1037 - in trunk: po src/GnomeSubtitles/Core	src/GnomeSubtitles/Dialog
- Date: Sun, 13 Jul 2008 18:53:55 +0000 (UTC)
Author: pcastro
Date: Sun Jul 13 18:53:54 2008
New Revision: 1037
URL: http://svn.gnome.org/viewvc/gnome-subtitles?rev=1037&view=rev
Log:
Display an error dialog when the help contents cannot be opened.
Modified:
   trunk/po/POTFILES.in
   trunk/src/GnomeSubtitles/Core/EventHandlers.cs
   trunk/src/GnomeSubtitles/Dialog/MessageDialog.cs
Modified: trunk/po/POTFILES.in
==============================================================================
--- trunk/po/POTFILES.in	(original)
+++ trunk/po/POTFILES.in	Sun Jul 13 18:53:54 2008
@@ -30,6 +30,7 @@
 src/GnomeSubtitles/Core/Command/VideoSetSubtitleTimingCommand.cs
 src/GnomeSubtitles/Core/Document.cs
 src/GnomeSubtitles/Core/Encodings.cs
+src/GnomeSubtitles/Core/EventHandlers.cs
 src/GnomeSubtitles/Core/SpellLanguage.cs
 src/GnomeSubtitles/Dialog/EncodingsDialog.cs
 src/GnomeSubtitles/Dialog/ErrorDialog.cs
Modified: trunk/src/GnomeSubtitles/Core/EventHandlers.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Core/EventHandlers.cs	(original)
+++ trunk/src/GnomeSubtitles/Core/EventHandlers.cs	Sun Jul 13 18:53:54 2008
@@ -291,8 +291,8 @@
 			Gnome.Help.DisplayDesktopOnScreen(Gnome.Program.Get(), Base.ExecutionContext.SystemHelpDir, filename, null, Base.Ui.Window.Screen);
 		}
 		catch (Exception e) {
-			System.Console.Error.WriteLine(e);
-			//TODO show an error message
+			BasicErrorDialog errorDialog = new BasicErrorDialog(Catalog.GetString("The Gnome Subtitles Manual could not be found."), Catalog.GetString("Please verify that your installation has been completed successfully."));
+			errorDialog.Show();
 		}
 	}
 
Modified: trunk/src/GnomeSubtitles/Dialog/MessageDialog.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Dialog/MessageDialog.cs	(original)
+++ trunk/src/GnomeSubtitles/Dialog/MessageDialog.cs	Sun Jul 13 18:53:54 2008
@@ -78,7 +78,9 @@
 		#region Private members
 		
 		private void Init (MessageType messageType, string primaryText, string secondaryText, params object[]primaryTextArgs) {
-			dialog = new Gtk.MessageDialog(Base.Ui.Window, DialogFlags.Modal, messageType, ButtonsType.None, primaryText, primaryTextArgs);
+			string formattedPrimaryText = "<span weight=\"bold\" size=\"larger\">" + primaryText + "</span>";
+		
+			dialog = new Gtk.MessageDialog(Base.Ui.Window, DialogFlags.Modal, messageType, ButtonsType.None, formattedPrimaryText, primaryTextArgs);
 			base.dialog = dialog;
 			
 			dialog.Response += OnResponse;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]