]> git.saurik.com Git - wxWidgets.git/commitdiff
remove unnecessary gtk_widget_show(m_widget) calls, PostCreation() takes care of...
authorPaul Cornett <paulcor@bullseye.com>
Wed, 29 Feb 2012 18:29:31 +0000 (18:29 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 29 Feb 2012 18:29:31 +0000 (18:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/animate.cpp
src/gtk/clrpicker.cpp
src/gtk/collpane.cpp
src/gtk/fontpicker.cpp
src/gtk/hyperlink.cpp
src/gtk/slider.cpp
src/gtk/webview_webkit.cpp

index 1975fcf5d068599957fe1541f8f2a060c3ba37c6..01034dee8b1ea8eb2c830a1a6b870475e25acb1e 100644 (file)
@@ -233,7 +233,6 @@ bool wxAnimationCtrl::Create( wxWindow *parent, wxWindowID id,
 
     m_widget = gtk_image_new();
     g_object_ref(m_widget);
-    gtk_widget_show(m_widget);
 
     m_parent->DoAddChild( this );
 
index 014285911154883f6d1931c9b0e0c94cd1d753ae..fe56ed4e2b2629cc9424b5571d81e345e6525371 100644 (file)
@@ -69,7 +69,6 @@ bool wxColourButton::Create( wxWindow *parent, wxWindowID id,
     m_colour = col;
     m_widget = gtk_color_button_new_with_color( m_colour.GetColor() );
     g_object_ref(m_widget);
-    gtk_widget_show(m_widget);
 
     // GtkColourButton signals
     g_signal_connect(m_widget, "color-set",
index a902d113a342e8bbc9c25b59fabf0e2cd533df99..1b1957dcd4b1a173a0e0bcbe878519039110a76b 100644 (file)
@@ -200,7 +200,6 @@ bool wxCollapsiblePane::Create(wxWindow *parent,
     m_pPane = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
                           wxTAB_TRAVERSAL|wxNO_BORDER, wxS("wxCollapsiblePanePane"));
 
-    gtk_widget_show(m_widget);
     m_parent->DoAddChild( this );
 
     PostCreation(size);
index 7eef011a453851b28b299b3a60a65605c29c97f5..9aea074e1ace8f0c01a1c1d14e723f9370d605ca 100644 (file)
@@ -81,8 +81,6 @@ bool wxFontButton::Create( wxWindow *parent, wxWindowID id,
     gtk_font_button_set_use_size(GTK_FONT_BUTTON(m_widget), usefont);
     gtk_font_button_set_use_font(GTK_FONT_BUTTON(m_widget), usefont);
 
-    gtk_widget_show(m_widget);
-
     // GtkFontButton signals
     g_signal_connect(m_widget, "font-set",
                     G_CALLBACK(gtk_fontbutton_setfont_callback), this);
index 21610311c50dea1c813a723aba8973d8e45dc757..c4e796ad4709c3db20b4bd1ec7f1c3df16747919 100644 (file)
@@ -82,7 +82,6 @@ bool wxHyperlinkCtrl::Create(wxWindow *parent, wxWindowID id,
 
         m_widget = gtk_link_button_new("asdfsaf asdfdsaf asdfdsa");
         g_object_ref(m_widget);
-        gtk_widget_show(m_widget);
 
         // alignment
         float x_alignment = 0.5;
index 0527106ad9ef200045956cc93d1339ad55eab0ba..ef87595541364f3aa0194361cbbaf6f1cc8178b2 100644 (file)
@@ -318,7 +318,6 @@ bool wxSlider::Create(wxWindow *parent,
         else
             m_widget = gtk_vbox_new(false, 0);
         g_object_ref(m_widget);
-        gtk_widget_show( m_widget );
         gtk_container_add( GTK_CONTAINER(m_widget), m_scale );
 
         GtkWidget *box;
index 8b249a80628a66ba160b2cce6da300539794a02c..be2acc7fd8faa30525e81dadac7cfe3de25c3e50 100644 (file)
@@ -415,7 +415,6 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
 
     /* Place the WebKitWebView in the GtkScrolledWindow */
     gtk_container_add (GTK_CONTAINER (scrolled_window), web_view);
-    gtk_widget_show(m_widget);
     gtk_widget_show(web_view);
 
     g_signal_connect_after(web_view, "notify::load-status",