gnome-utils r8276 - trunk/logview



Author: cosimoc
Date: Tue Dec 23 13:26:53 2008
New Revision: 8276
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8276&view=rev

Log:
Remove misc.[ch]. I will eventually re-implement a error dialog wrapper.

Removed:
   trunk/logview/misc.c
   trunk/logview/misc.h
Modified:
   trunk/logview/Makefile.am
   trunk/logview/logview-main.c
   trunk/logview/logview.c

Modified: trunk/logview/Makefile.am
==============================================================================
--- trunk/logview/Makefile.am	(original)
+++ trunk/logview/Makefile.am	Tue Dec 23 13:26:53 2008
@@ -36,8 +36,6 @@
 	logview-log.c		\
 	logview-findbar.h	\
 	logview-findbar.c	\
-	misc.c			\
-	misc.h			\
 	logview-prefs.c		\
 	logview-prefs.h		\
 	$(BUILT_SOURCES)

Modified: trunk/logview/logview-main.c
==============================================================================
--- trunk/logview/logview-main.c	(original)
+++ trunk/logview/logview-main.c	Tue Dec 23 13:26:53 2008
@@ -29,7 +29,6 @@
 #include "logview.h"
 #include "logview-prefs.h"
 #include "logview-manager.h"
-#include "misc.h"
 
 static gboolean show_version = FALSE;
 
@@ -82,8 +81,6 @@
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 
-  error_dialog_queue (TRUE);
-
   context = create_option_context ();
 
   g_option_context_parse (context, &argc, &argv, &error);
@@ -106,9 +103,7 @@
   /* open regular logs and add each log passed as a parameter */
   main_window = logview_window_new ();
   if (!main_window) {
-    error_dialog_show (NULL,
-                       _("Unable to create user interface."),
-                       NULL);
+    g_critical ("Unable to create the user interface.");
   
     exit (1);
   }
@@ -118,10 +113,6 @@
 
   gtk_window_set_default_icon_name ("logviewer");
 
-  /* show the eventual error dialogs */
-  error_dialog_queue (FALSE);
-  error_dialog_show_queued ();
-
   if (argc == 1) {
     char *active_log;
     GSList *logs;

Modified: trunk/logview/logview.c
==============================================================================
--- trunk/logview/logview.c	(original)
+++ trunk/logview/logview.c	Tue Dec 23 13:26:53 2008
@@ -26,7 +26,6 @@
 
 #include "logview.h"
 #include "logview-loglist.h"
-#include "misc.h"
 
 #include "logview-findbar.h"
 #include "logview-about.h"
@@ -358,7 +357,7 @@
                 &error);
 
   if (error) {
-    error_dialog_show (parent_window, _("There was an error displaying help."), error->message);
+    g_warning (_("There was an error displaying help: %s"), error->message);
     g_error_free (error);
   }
 }



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