Commit 32088850 authored by Johannes Schmid's avatar Johannes Schmid
Browse files

* 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()
parent d544699f
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
......
......@@ -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;
}
......
......@@ -855,6 +855,18 @@ 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
......
......@@ -48,7 +48,8 @@ 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 *signal_editor);
GladeSignalEditor *glade_editor_get_signal_editor (GladeEditor *editor);
gboolean glade_editor_query_dialog (GladeWidget *widget);
GtkWidget *glade_editor_dialog_for_widget (GladeWidget *widget);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment