Prechádzať zdrojové kódy

Changed direct access to use accessor for terminal->parent

Héctor García 11 rokov pred
rodič
commit
ae0564242d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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));