From 1714ecf4656dd0dc9e476e3be345c1b8c7daee1f Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Fri, 15 Apr 2016 13:07:37 -0500 Subject: [PATCH] Don't set pixbuf to raw image data. Fixes segfault. --- gtk/src/gtk_preferences.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/src/gtk_preferences.cpp b/gtk/src/gtk_preferences.cpp index 0e60c885..ab8711cb 100644 --- a/gtk/src/gtk_preferences.cpp +++ b/gtk/src/gtk_preferences.cpp @@ -502,11 +502,11 @@ event_about_clicked (GtkButton *widget, gpointer data) #endif version_string += ""; - gtk_label_set_label (GTK_LABEL (about_dialog->get_widget ("version_string_label")), - version_string.c_str ()); + GtkLabel *version_string_label = GTK_LABEL (about_dialog->get_widget ("version_string_label")); + gtk_label_set_label (version_string_label, version_string.c_str ()); + gtk_label_set_justify (version_string_label, GTK_JUSTIFY_LEFT); - gtk_image_set_from_pixbuf (GTK_IMAGE (about_dialog->get_widget ("preferences_splash")), - top_level->splash); + gtk_widget_hide (about_dialog->get_widget ("preferences_splash")); monospace = pango_font_description_from_string ("Monospace 7"); #ifdef USE_GTK3