[glade3] * gladeui/glade-app.[ch], gladeui/glade-base-editor.c: Removed glade_app_set/get_transient_parent()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] * gladeui/glade-app.[ch], gladeui/glade-base-editor.c: Removed glade_app_set/get_transient_parent()
- Date: Sun, 9 Jan 2011 15:13:39 +0000 (UTC)
commit f4eea5a7a6382f3f5d2d5eaca23d9ee19d624226
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Mon Jan 10 00:20:29 2011 +0900
* gladeui/glade-app.[ch], gladeui/glade-base-editor.c: Removed glade_app_set/get_transient_parent()
ChangeLog | 2 ++
gladeui/glade-app.c | 26 --------------------------
gladeui/glade-app.h | 3 ---
gladeui/glade-base-editor.c | 2 +-
4 files changed, 3 insertions(+), 30 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cedc434..11635d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -49,6 +49,8 @@
* src/glade-window.c: Fix possible crash when saving new project. bug 622635, fix
by Martin Schlemmer.
+ * gladeui/glade-app.[ch], gladeui/glade-base-editor.c: Removed glade_app_set/get_transient_parent()
+
2011-01-08 Tristan Van Berkom <tristanvb openismus com>
* gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-builtins.c,
diff --git a/gladeui/glade-app.c b/gladeui/glade-app.c
index 5380342..5803e49 100644
--- a/gladeui/glade-app.c
+++ b/gladeui/glade-app.c
@@ -70,10 +70,6 @@ struct _GladeAppPrivate
GKeyFile *config; /* The configuration file */
- GtkWindow *transient_parent; /* If set by glade_app_set_transient_parent(); this
- * will be used as the transient parent of all toplevel
- * GladeWidgets.
- */
GtkAccelGroup *accel_group; /* Default acceleration group for this app */
};
@@ -482,28 +478,6 @@ glade_app_config_save ()
return 0;
}
-void
-glade_app_set_transient_parent (GtkWindow * parent)
-{
- GladeApp *app;
-
- g_return_if_fail (GTK_IS_WINDOW (parent));
-
- app = glade_app_get ();
- app->priv->transient_parent = parent;
-}
-
-GtkWindow *
-glade_app_get_transient_parent (void)
-{
- GtkWindow *parent;
- GladeApp *app = glade_app_get ();
-
- parent = app->priv->transient_parent;
-
- return parent;
-}
-
GladeApp *
glade_app_get (void)
{
diff --git a/gladeui/glade-app.h b/gladeui/glade-app.h
index 5becf2f..20a0616 100644
--- a/gladeui/glade-app.h
+++ b/gladeui/glade-app.h
@@ -89,9 +89,6 @@ GladeProject* glade_app_get_project_by_path (const gchar *project_path);
void glade_app_set_window (GtkWidget *window);
GtkWidget* glade_app_get_window (void);
-void glade_app_set_transient_parent (GtkWindow *parent);
-GtkWindow *glade_app_get_transient_parent (void);
-
void glade_app_set_accel_group (GtkAccelGroup *accel_group);
GtkAccelGroup *glade_app_get_accel_group (void);
diff --git a/gladeui/glade-base-editor.c b/gladeui/glade-base-editor.c
index 563577f..3c03511 100644
--- a/gladeui/glade-base-editor.c
+++ b/gladeui/glade-base-editor.c
@@ -2175,7 +2175,7 @@ glade_base_editor_help (GtkButton * button, gchar * markup)
{
GtkWidget *dialog;
- dialog = gtk_message_dialog_new (glade_app_get_transient_parent (),
+ dialog = gtk_message_dialog_new (glade_app_get_window (),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, " ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]