]> git.saurik.com Git - wxWidgets.git/commitdiff
remove a few unnecessary queue_resize/queue_draw calls
authorPaul Cornett <paulcor@bullseye.com>
Thu, 7 Sep 2006 16:40:20 +0000 (16:40 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 7 Sep 2006 16:40:20 +0000 (16:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/frame.cpp
src/gtk/win_gtk.c
src/gtk/window.cpp

index 423f779e147f0f6182a3299675aa0acf149be5e9..d68a3b5e1521c12cd07ec2c21054ff58793cfd18 100644 (file)
@@ -469,12 +469,6 @@ void wxFrame::GtkOnSize()
         gtk_pizza_set_size( GTK_PIZZA(m_wxwindow),
                             m_frameStatusBar->m_widget,
                             xx, yy, ww, hh );
-        if (GTK_WIDGET_DRAWABLE (m_frameStatusBar->m_widget))
-        {
-            gtk_widget_queue_draw (m_frameStatusBar->m_widget);
-            // FIXME: Do we really want to force an immediate redraw?
-            gdk_window_process_updates (m_frameStatusBar->m_widget->window, TRUE);
-        }
     }
 #endif // wxUSE_STATUSBAR
 
index 4862d3b4936570622da956ab913d98be2ae72af7..00caf72a5f91e77d643f51c72f7a7396c46ef632 100644 (file)
@@ -327,9 +327,6 @@ gtk_pizza_set_size (GtkPizza   *pizza,
 
             gtk_widget_set_size_request (widget, width, height);
 
-            if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (pizza))
-                gtk_widget_queue_resize (widget);
-
             return;
         }
     }
index f5499b38df04af9424a3d3e4cd1cb3527052c27e..a10119d5ada06e88e0edecf73d354a3c557217d2 100644 (file)
@@ -2787,8 +2787,6 @@ void wxWindowGTK::DoSetSize( int x, int y, int width, int height, int sizeFlags
        // don't take the x,y values, they're wrong because toolbar sets them
        GtkWidget  *widget = GTK_WIDGET(m_widget);
        gtk_widget_set_size_request (widget, m_width, m_height);
-       if (GTK_WIDGET_VISIBLE (widget))
-            gtk_widget_queue_resize (widget);
     }
     else
 #endif