gnome-mud r801 - in trunk: . src src/zmp



Author: lharris
Date: Wed Mar 18 07:48:22 2009
New Revision: 801
URL: http://svn.gnome.org/viewvc/gnome-mud?rev=801&view=rev

Log:
Brought zmp-window.c up to spec. Poll window size in MudSubwindow after profile read.

Modified:
   trunk/ChangeLog
   trunk/src/mud-subwindow.c
   trunk/src/zmp/zmp-subwindow.c

Modified: trunk/src/mud-subwindow.c
==============================================================================
--- trunk/src/mud-subwindow.c	(original)
+++ trunk/src/mud-subwindow.c	Wed Mar 18 07:48:22 2009
@@ -396,6 +396,10 @@
 
     mud_subwindow_reread_profile(self);
 
+    gtk_window_get_size(GTK_WINDOW(self->priv->window),
+                        &self->priv->pixel_width,
+                        &self->priv->pixel_height);
+
     return obj;
 }
 
@@ -745,7 +749,7 @@
 {
     MudSubwindow *self = MUD_SUBWINDOW(user_data);
 
-    if(event->width != self->priv->pixel_width ||
+    if(event->width  != self->priv->pixel_width ||
        event->height != self->priv->pixel_height)
     {
         self->priv->pixel_width = event->width;

Modified: trunk/src/zmp/zmp-subwindow.c
==============================================================================
--- trunk/src/zmp/zmp-subwindow.c	(original)
+++ trunk/src/zmp/zmp-subwindow.c	Wed Mar 18 07:48:22 2009
@@ -271,7 +271,7 @@
                  NULL);
     g_object_get(telnet, "parent-view", &view, NULL);
     
-    pkg = zmp_main_get_package_by_name(zmp_main, "subwindow");
+    pkg = ZMP_SUBWINDOW(zmp_main_get_package_by_name(zmp_main, "subwindow"));
 
     if(mud_connection_view_has_subwindow(view, argv[1]))
     {
@@ -304,6 +304,12 @@
                          G_CALLBACK(zmp_subwindow_do_input),
                          pkg);
     }
+
+    mud_zmp_send_command(self, 4,
+                         "subwindow.size",
+                         argv[1],
+                         argv[3],
+                         argv[4]);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]