[glade] 2011-01-15 Johannes Schmid <jhs gnome org>



commit 74f4e56cdabd53e4d7921efa85f69f7cbb3bc706
Author: Johannes Schmid <jhs gnome org>
Date:   Sat Jan 15 13:31:07 2011 +0100

    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]: Remove glade_editor_set_signal_editor()

 ChangeLog              |    7 +++++++
 gladeui/glade-app.c    |    5 ++++-
 gladeui/glade-editor.c |   14 --------------
 gladeui/glade-editor.h |    2 --
 4 files changed, 11 insertions(+), 17 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c2293fa..33d8927 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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]: Remove glade_editor_set_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 ee24713..067fbbc 100644
--- a/gladeui/glade-app.c
+++ b/gladeui/glade-app.c
@@ -456,7 +456,10 @@ GladeApp *
 glade_app_get (void)
 {
   if (!singleton_app)
-    g_critical ("No available GladeApp");
+    {
+      singleton_app = glade_app_new ();
+    }
+
   return singleton_app;
 }
 
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 6774996..debca58 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -841,20 +841,6 @@ glade_editor_new (void)
   return editor;
 }
 
-void
-glade_editor_set_signal_editor (GladeEditor * editor,
-                                GladeSignalEditor * signal_editor)
-{
-  if (editor->priv->signal_editor)
-    {
-      gtk_container_remove (GTK_CONTAINER (editor->priv->page_signals),
-                            GTK_WIDGET (editor->priv->signal_editor));
-    }
-  editor->priv->signal_editor = signal_editor;
-  gtk_container_add (GTK_CONTAINER (editor->priv->page_signals),
-                     GTK_WIDGET (editor->priv->signal_editor));
-}
-
 /**
  * glade_editor_load_widget:
  * @editor: a #GladeEditor
diff --git a/gladeui/glade-editor.h b/gladeui/glade-editor.h
index e0d83b6..bbc72e4 100644
--- a/gladeui/glade-editor.h
+++ b/gladeui/glade-editor.h
@@ -47,8 +47,6 @@ void         glade_editor_load_widget        (GladeEditor       *editor,
 					      GladeWidget       *widget);
 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);
 
 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]