gnome-mud r803 - in trunk: . src
- From: lharris svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-mud r803 - in trunk: . src
- Date: Wed, 18 Mar 2009 08:55:16 +0000 (UTC)
Author: lharris
Date: Wed Mar 18 08:55:16 2009
New Revision: 803
URL: http://svn.gnome.org/viewvc/gnome-mud?rev=803&view=rev
Log:
MudSubwindow size-allocate wrapped in GTK_WIDGET_MAPPED
Modified:
trunk/ChangeLog
trunk/src/mud-subwindow.c
Modified: trunk/src/mud-subwindow.c
==============================================================================
--- trunk/src/mud-subwindow.c (original)
+++ trunk/src/mud-subwindow.c Wed Mar 18 08:55:16 2009
@@ -831,17 +831,20 @@
GtkAllocation *allocation,
MudSubwindow *self)
{
- if(self->priv->width != allocation->width ||
- self->priv->height != allocation->height)
+ if(GTK_WIDGET_MAPPED(self->priv->window))
{
- self->priv->width = VTE_TERMINAL(self->priv->terminal)->column_count;
- self->priv->height = VTE_TERMINAL(self->priv->terminal)->row_count;
+ if(self->priv->width != allocation->width ||
+ self->priv->height != allocation->height)
+ {
+ self->priv->width = VTE_TERMINAL(self->priv->terminal)->column_count;
+ self->priv->height = VTE_TERMINAL(self->priv->terminal)->row_count;
- g_signal_emit(self,
- mud_subwindow_signal[RESIZED],
- 0,
- self->priv->width,
- self->priv->height);
+ g_signal_emit(self,
+ mud_subwindow_signal[RESIZED],
+ 0,
+ self->priv->width,
+ self->priv->height);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]