Linux GUI: Fix invalid cast from 'wxPizza' to 'GtkBin'.

(PCSX2:32189): GLib-GObject-WARNING **: invalid cast from 'wxPizza' to 'GtkBin'
.
Cast the wxPizza directly to a GtkWidget. Looking at the wx3.0 source code the pizza
constructor returns a GtkWidget. Also GetHandle() returns a GtkWidget:
http://docs.wxwidgets.org/trunk/classwx_window.html#a185e6cd7065367b552748cb722651b27
This commit is contained in:
Miguel A. Colón Vélez 2015-10-20 18:04:56 -04:00
parent 2a21224ab8
commit 8cf51c5cf4
1 changed files with 1 additions and 1 deletions

View File

@ -973,7 +973,7 @@ void Pcsx2App::OpenGsPanel()
#if wxMAJOR_VERSION < 3
GtkWidget *child_window = gtk_bin_get_child(GTK_BIN(gsFrame->GetViewport()->GetHandle()));
#else
GtkWidget *child_window = (GtkWidget*)GTK_BIN(gsFrame->GetViewport()->GetHandle());
GtkWidget *child_window = GTK_WIDGET(gsFrame->GetViewport()->GetHandle());
#endif
gtk_widget_realize(child_window); // create the widget to allow to use GDK_WINDOW_* macro