[glade] Revert "* gladeui/glade-app.c: glade_app_get() should always return"



commit 1a65539f03129b54626a5e66a9669114a4a1a547
Author: Johannes Schmid <jhs gnome org>
Date:   Sat Jan 15 13:28:54 2011 +0100

    Revert "* gladeui/glade-app.c: glade_app_get() should always return"
    
    This reverts commit 320888504f4290d3a03fbc35307cbfa56d068986.

 ChangeLog              |    7 -------
 gladeui/glade-app.c    |    5 +----
 gladeui/glade-editor.c |   12 ------------
 gladeui/glade-editor.h |    3 +--
 4 files changed, 2 insertions(+), 25 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index aca918a..c2293fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,3 @@
-2011-01-15  Johannes Schmid <jhs gnome org>
-
-	* gladeui/glade-app.c: glade_app_get() should always return
-	the single instance and create it if necessary
-
-	* gladeui/glade-editor.[ch]: Add glade_editor_get_signal_editor()
-
 2011-01-13  Javier Jardón <jjardon gnome org>
 
 	* glade3.doap: Update doap file to glade.doap instead glade3.doap
diff --git a/gladeui/glade-app.c b/gladeui/glade-app.c
index 067fbbc..ee24713 100644
--- a/gladeui/glade-app.c
+++ b/gladeui/glade-app.c
@@ -456,10 +456,7 @@ GladeApp *
 glade_app_get (void)
 {
   if (!singleton_app)
-    {
-      singleton_app = glade_app_new ();
-    }
-
+    g_critical ("No available GladeApp");
   return singleton_app;
 }
 
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 9cd466f..6774996 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -855,18 +855,6 @@ glade_editor_set_signal_editor (GladeEditor * editor,
                      GTK_WIDGET (editor->priv->signal_editor));
 }
 
-/*
- * glade_editor_get_signal_editor:
- * @editor: a #GladeEditor
- * 
- * Returns: The #GladeSignalEditor associated with the editor
- */
-GladeSignalEditor*
-glade_editor_get_signal_editor (GladeEditor * editor)
-{
-  return editor->priv->signal_editor;
-}
-
 /**
  * glade_editor_load_widget:
  * @editor: a #GladeEditor
diff --git a/gladeui/glade-editor.h b/gladeui/glade-editor.h
index 801cacb..e0d83b6 100644
--- a/gladeui/glade-editor.h
+++ b/gladeui/glade-editor.h
@@ -48,8 +48,7 @@ void         glade_editor_load_widget        (GladeEditor       *editor,
 void         glade_editor_show_info          (GladeEditor       *editor);
 void         glade_editor_hide_info          (GladeEditor       *editor);
 void         glade_editor_set_signal_editor  (GladeEditor       *editor, 
-                                              GladeSignalEditor *signal_editor);
-GladeSignalEditor *glade_editor_get_signal_editor  (GladeEditor       *editor);
+					      GladeSignalEditor *signal_editor);
 
 gboolean     glade_editor_query_dialog       (GladeWidget       *widget);
 GtkWidget   *glade_editor_dialog_for_widget  (GladeWidget       *widget);



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