mirror of https://github.com/snes9xgit/snes9x.git
Merge pull request #238 from megari/gtk_no_deprecated
Move away from deprecated functions in the GTK port
This commit is contained in:
commit
d174b82134
|
@ -149,10 +149,7 @@ S9xNetplayStartServer (void)
|
||||||
NPServer.SyncByReset = gui_config->netplay_sync_reset;
|
NPServer.SyncByReset = gui_config->netplay_sync_reset;
|
||||||
NPServer.SendROMImageOnConnect = gui_config->netplay_send_rom;
|
NPServer.SendROMImageOnConnect = gui_config->netplay_send_rom;
|
||||||
|
|
||||||
npthread = g_thread_create (S9xNetplayServerThread,
|
npthread = g_thread_new (NULL, S9xNetplayServerThread, NULL);
|
||||||
NULL,
|
|
||||||
TRUE,
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
/* Sleep to let the server create itself */
|
/* Sleep to let the server create itself */
|
||||||
usleep (10000);
|
usleep (10000);
|
||||||
|
|
|
@ -45,7 +45,6 @@ main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
struct sigaction sig_callback;
|
struct sigaction sig_callback;
|
||||||
|
|
||||||
g_thread_init (NULL);
|
|
||||||
gdk_threads_init ();
|
gdk_threads_init ();
|
||||||
gdk_threads_enter ();
|
gdk_threads_enter ();
|
||||||
|
|
||||||
|
|
|
@ -607,9 +607,15 @@ Snes9xWindow::Snes9xWindow (Snes9xConfig *config) :
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
icon = gdk_pixbuf_new_from_inline (-1, app_icon, FALSE, NULL);
|
GdkPixbufLoader *loader = gdk_pixbuf_loader_new ();
|
||||||
|
if (gdk_pixbuf_loader_write (loader, (const guchar *)app_icon, sizeof (app_icon), NULL) &&
|
||||||
|
gdk_pixbuf_loader_close (loader, NULL) &&
|
||||||
|
(icon = gdk_pixbuf_loader_get_pixbuf (loader)))
|
||||||
|
{
|
||||||
gtk_window_set_default_icon (icon);
|
gtk_window_set_default_icon (icon);
|
||||||
}
|
}
|
||||||
|
g_object_unref(loader);
|
||||||
|
}
|
||||||
|
|
||||||
drawing_area = GTK_DRAWING_AREA (get_widget ("drawingarea"));
|
drawing_area = GTK_DRAWING_AREA (get_widget ("drawingarea"));
|
||||||
gtk_widget_set_double_buffered (GTK_WIDGET (drawing_area), FALSE);
|
gtk_widget_set_double_buffered (GTK_WIDGET (drawing_area), FALSE);
|
||||||
|
|
Loading…
Reference in New Issue