[easytag/wip/application-window: 23/40] Avoid a GtkApplication assertion
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/application-window: 23/40] Avoid a GtkApplication assertion
- Date: Sun, 15 Jun 2014 12:43:36 +0000 (UTC)
commit 80f3b91192f87aa81329f892536f8e2bf9d70d95
Author: Santtu Lakkala <inz inz fi>
Date: Thu Apr 24 08:48:52 2014 +0300
Avoid a GtkApplication assertion
Realizaing an application window during construction triggers an
assertion with older versions of GTK+, and a warning with newer ones, so
only show the window after it has been associated with the application.
src/application_window.c | 2 +-
src/easytag.c | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/application_window.c b/src/application_window.c
index 879de8c..07a9e13 100644
--- a/src/application_window.c
+++ b/src/application_window.c
@@ -1801,7 +1801,7 @@ et_application_window_init (EtApplicationWindow *self)
widget = Create_Progress_Bar ();
gtk_box_pack_end (GTK_BOX (hbox), widget, FALSE, FALSE, 0);
- gtk_widget_show_all (GTK_WIDGET (self));
+ gtk_widget_show_all (GTK_WIDGET (main_vbox));
}
static void
diff --git a/src/easytag.c b/src/easytag.c
index e47eb31..f6bf494 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -134,6 +134,8 @@ common_init (GApplication *application)
window = et_application_window_new (GTK_APPLICATION (application));
MainWindow = GTK_WIDGET (window);
+ gtk_widget_show (MainWindow);
+
/* Starting messages */
Log_Print(LOG_OK,_("Starting EasyTAG version %s (PID: %d)…"),PACKAGE_VERSION,getpid());
#ifdef ENABLE_MP3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]