Browse Source

Changed direct access to use accessor for terminal->parent

Héctor García 10 years ago
parent
commit
ae0564242d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mssh-window.c

+ 1 - 1
src/mssh-window.c

@@ -304,7 +304,7 @@ void mssh_window_relayout(MSSHWindow *window)
             MSSHTerminal*, i);
 
         g_object_ref(terminal);
-        if(GTK_WIDGET(terminal)->parent == GTK_WIDGET(window->table))
+        if(gtk_widget_get_parent(GTK_WIDGET(terminal)) == GTK_WIDGET(window->table))
         {
             gtk_container_remove(GTK_CONTAINER(window->table),
                 GTK_WIDGET(terminal));