[ekiga/ds-gtk-application] EkigaApp: Fixed uninitialized variable.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] EkigaApp: Fixed uninitialized variable.
- Date: Sun, 2 Nov 2014 17:01:28 +0000 (UTC)
commit 8e37a59cbbda15558196235c8af4042487c06ed7
Author: Damien Sandras <dsandras seconix com>
Date: Sun Nov 2 18:00:22 2014 +0100
EkigaApp: Fixed uninitialized variable.
lib/engine/gui/gtk-frontend/ekiga-app.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/ekiga-app.cpp b/lib/engine/gui/gtk-frontend/ekiga-app.cpp
index 5192e87..f61da3b 100644
--- a/lib/engine/gui/gtk-frontend/ekiga-app.cpp
+++ b/lib/engine/gui/gtk-frontend/ekiga-app.cpp
@@ -403,6 +403,7 @@ gm_application_startup (GApplication *app)
g_signal_connect (self->priv->video_devices_settings->get_g_settings (),
"changed::enable-preview",
G_CALLBACK (video_preview_changed), self);
+ self->priv->call_window = NULL;
}
@@ -848,11 +849,11 @@ gm_application_show_call_window (GmApplication *self)
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GM_TYPE_APPLICATION, GmApplicationPrivate);
- if (self->priv->call_window)
- gtk_window_present (GTK_WINDOW (self->priv->call_window));
- else
+ if (!self->priv->call_window)
self->priv->call_window = call_window_new (self);
+ gtk_window_present (GTK_WINDOW (self->priv->call_window));
+
g_signal_connect (G_OBJECT (self->priv->call_window), "destroy",
G_CALLBACK (call_window_destroyed_cb), self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]