Fix a couple of warnings/gdk_pixbuf_unref deprecation.

This commit is contained in:
Brandon Wright 2012-04-07 20:04:02 -05:00
parent 53defb5b11
commit 17fe17b4e2
2 changed files with 2 additions and 8 deletions

View File

@ -83,7 +83,7 @@ S9xGTKDisplayDriver::output (void *src,
gdk_buffer_width = width;
gdk_buffer_height = height;
gdk_pixbuf_unref (pixbuf);
g_object_unref (pixbuf);
padded_buffer[2] = realloc (padded_buffer[2],
gdk_buffer_width * gdk_buffer_height * 3);
@ -195,7 +195,7 @@ S9xGTKDisplayDriver::deinit (void)
free (buffer[0]);
free (buffer[1]);
gdk_pixbuf_unref (pixbuf);
g_object_unref (pixbuf);
free (padded_buffer[2]);
return;

View File

@ -443,17 +443,11 @@ S9xXVDisplayDriver::init (void)
}
}
XSetWindowAttributes window_attr;
xcolormap = XCreateColormap (display,
GDK_COMPAT_WINDOW_XID (gtk_widget_get_window (drawing_area)),
vi->visual,
AllocNone);
window_attr.colormap = xcolormap;
window_attr.border_pixel = 0;
window_attr.event_mask = StructureNotifyMask | ExposureMask | PropertyChangeMask;
window_attr.background_pixmap = None;
create_window (1, 1);
gdk_window_hide (gdk_window);