Code

fix for crash bug 607557
[inkscape.git] / src / ui / dialog / messages.h
index 85a7c4f0ffa08b03aae49c30bd98da45b5779797..b0a9d812b7fd73592ca714e52309294341c6598c 100644 (file)
@@ -1,16 +1,15 @@
-/*
- * \brief Messages Dialog
+/** @file
+ * @brief Messages dialog
  *
  * A very simple dialog for displaying Inkscape messages. Messages
  * sent to g_log(), g_warning(), g_message(), ets, are routed here,
  * in order to avoid messing with the startup console.
- *
- * Authors:
+ */
+/* Authors:
  *   Bob Jamison
  *   Other dudes from The Inkscape Organization
  *
  * Copyright (C) 2004, 2005 Authors
- *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
@@ -18,7 +17,6 @@
 #define INKSCAPE_UI_DIALOG_MESSAGES_H
 
 #include <gtkmm/box.h>
-#include <gtkmm/dialog.h>
 #include <gtkmm/textview.h>
 #include <gtkmm/button.h>
 #include <gtkmm/menubar.h>
 
 #include <glibmm/i18n.h>
 
-#include "dialog.h"
+#include "ui/widget/panel.h"
 
 namespace Inkscape {
 namespace UI {
 namespace Dialog {
 
-class Messages : public Dialog {
+class Messages : public UI::Widget::Panel {
 public:
-    Messages(Behavior::BehaviorFactory behavior_factory);
+    Messages();
     virtual ~Messages();
 
-    static Messages *create(Behavior::BehaviorFactory behavior_factory) 
-    { return new Messages(behavior_factory); }
+    static Messages &getInstance() { return *new Messages(); }
 
     /**
      * Clear all information from the dialog