ekiga r6501 - trunk/lib/engine/gui/gtk-frontend
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6501 - trunk/lib/engine/gui/gtk-frontend
- Date: Thu, 24 Jul 2008 21:42:31 +0000 (UTC)
Author: jpuydt
Date: Thu Jul 24 21:42:30 2008
New Revision: 6501
URL: http://svn.gnome.org/viewvc/ekiga?rev=6501&view=rev
Log:
Handle the case when the chat window is hidden better
Modified:
   trunk/lib/engine/gui/gtk-frontend/chat-window.cpp
Modified: trunk/lib/engine/gui/gtk-frontend/chat-window.cpp
==============================================================================
--- trunk/lib/engine/gui/gtk-frontend/chat-window.cpp	(original)
+++ trunk/lib/engine/gui/gtk-frontend/chat-window.cpp	Thu Jul 24 21:42:30 2008
@@ -183,7 +183,8 @@
   }
 
   if (num
-      != gtk_notebook_get_current_page (GTK_NOTEBOOK (self->priv->notebook))) {
+      != gtk_notebook_get_current_page (GTK_NOTEBOOK (self->priv->notebook))
+      || !gtk_window_is_active (GTK_WINDOW (self))) {
 
     GtkWidget* label = NULL;
     guint unread_count = 0;
@@ -203,9 +204,9 @@
     txt = g_strdup_printf ("[%d] %s", unread_count, base_title);
     gtk_label_set_text (GTK_LABEL (label), txt);
     g_free (txt);
-
-    update_unread (self);
   }
+
+  update_unread (self);
 }
 
 static bool
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]