diff --git a/src/drivers/sdl/gui.cpp b/src/drivers/sdl/gui.cpp index 467e8de6..b877061c 100644 --- a/src/drivers/sdl/gui.cpp +++ b/src/drivers/sdl/gui.cpp @@ -444,12 +444,11 @@ void openPaletteConfig() paletteHbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_set_border_width(GTK_CONTAINER(paletteHbox), 5); gtk_container_add(GTK_CONTAINER(paletteFrame), paletteHbox); - paletteButton = gtk_button_new_from_stock(GTK_STOCK_OPEN); - gtk_button_set_label(GTK_BUTTON(paletteButton), "Open palette"); + paletteButton = gtk_button_new_with_label("Open palette"); paletteEntry = gtk_entry_new(); gtk_editable_set_editable(GTK_EDITABLE(paletteEntry), FALSE); - clearButton = gtk_button_new_from_stock(GTK_STOCK_CLEAR); + clearButton = gtk_button_new_with_label("Clear"); gtk_box_pack_start(GTK_BOX(paletteHbox), paletteButton, FALSE, FALSE, 2); gtk_box_pack_start(GTK_BOX(paletteHbox), paletteEntry, TRUE, TRUE, 5); diff --git a/src/drivers/sdl/sdl-video.cpp b/src/drivers/sdl/sdl-video.cpp index ea69ebfa..ef8d4df2 100644 --- a/src/drivers/sdl/sdl-video.cpp +++ b/src/drivers/sdl/sdl-video.cpp @@ -433,7 +433,7 @@ InitVideo(FCEUGI *gi) if(noGui == 0) { GtkRequisition req; - gtk_widget_size_request(GTK_WIDGET(MainWindow), &req); + gtk_widget_get_preferred_size(GTK_WIDGET(MainWindow), NULL, &req); gtk_window_resize(GTK_WINDOW(MainWindow), req.width, req.height); } #endif