[ease] [general] Simplify OpenDialog.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] [general] Simplify OpenDialog.
- Date: Sun, 25 Jul 2010 12:49:07 +0000 (UTC)
commit f643e86c4d0435918702a7d360f8a6a3d0fa818f
Author: Nate Stedman <natesm gmail com>
Date: Sun Jul 25 06:42:18 2010 -0400
[general] Simplify OpenDialog.
src/ease-open-dialog.vala | 21 +--------------------
src/main.vala | 1 -
2 files changed, 1 insertions(+), 21 deletions(-)
---
diff --git a/src/ease-open-dialog.vala b/src/ease-open-dialog.vala
index 1e66ded..0ed3a5a 100644
--- a/src/ease-open-dialog.vala
+++ b/src/ease-open-dialog.vala
@@ -16,24 +16,10 @@
*/
/**
- * Manages "open file" windows
- *
- * OpenDialog is a singleton. Before it can be used, init() must be
- * called. After that, a dialog can be opened by calling the static
- * method run().
+ * Creates "open file" windows.
*/
public class Ease.OpenDialog : GLib.Object
{
- private static OpenDialog instance;
-
- /**
- * Initializes OpenDialog. Called when Ease starts.
- */
- public static void init()
- {
- instance = new OpenDialog();
- }
-
/**
* Displays an "Open" dialog.
*
@@ -41,11 +27,6 @@ public class Ease.OpenDialog : GLib.Object
*/
public static void run()
{
- instance.instance_run();
- }
-
- private void instance_run()
- {
var dialog = new Gtk.FileChooserDialog(_("Open File"),
null,
Gtk.FileChooserAction.OPEN,
diff --git a/src/main.vala b/src/main.vala
index 348be02..d70b33a 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -81,7 +81,6 @@ public static class Ease.Main : GLib.Object
// initalize static classes
Transitions.init();
- OpenDialog.init();
windows = new Gee.ArrayList<EditorWindow>();
// Clutter settings
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]