ekiga r6670 - in trunk: . lib/engine/gui/gtk-frontend
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6670 - in trunk: . lib/engine/gui/gtk-frontend
- Date: Wed, 20 Aug 2008 21:32:10 +0000 (UTC)
Author: dsandras
Date: Wed Aug 20 21:32:09 2008
New Revision: 6670
URL: http://svn.gnome.org/viewvc/ekiga?rev=6670&view=rev
Log:
Fixed previous commit : hide only if there are no more pages in the
notebook, without checking the page number itself. Fixes unexpected
hides when the first page is closed and there remains one page.
Modified:
trunk/ChangeLog
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 Wed Aug 20 21:32:09 2008
@@ -139,7 +139,7 @@
gtk_notebook_remove_page (GTK_NOTEBOOK (self->priv->notebook), num);
- if (num == 0)
+ if (gtk_notebook_get_n_pages (GTK_NOTEBOOK (self->priv->notebook)) == 0)
gtk_widget_hide (GTK_WIDGET (self));
}
@@ -153,7 +153,7 @@
num = gtk_notebook_get_current_page (GTK_NOTEBOOK (self->priv->notebook));
gtk_notebook_remove_page (GTK_NOTEBOOK (self->priv->notebook), num);
- if (num == 0)
+ if (gtk_notebook_get_n_pages (GTK_NOTEBOOK (self->priv->notebook)) == 0)
gtk_widget_hide (GTK_WIDGET (self));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]