mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Prevent a warning when showing the "About" dialog
gtk-gui.c:about_dialog(): Before assigning a pixel buffer to "logo" check if "image" has a GTK_IMAGE_PIXBUF storage type. Prevents the following message if the icon file is missing: Gtk-CRITICAL **: gtk_image_get_pixbuf: assertion The message that the file is missing is still shown. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
1358f9e6a8
commit
37760d830f
1 changed files with 1 additions and 1 deletions
|
@ -815,7 +815,7 @@ static void about_dialog(GtkWidget *w, gpointer data)
|
|||
if (need_icon) {
|
||||
GtkWidget *image = gtk_image_new_from_file(subsurface_icon_name());
|
||||
|
||||
if (image) {
|
||||
if (gtk_image_get_storage_type(GTK_IMAGE(image)) == GTK_IMAGE_PIXBUF) {
|
||||
logo = gtk_image_get_pixbuf(GTK_IMAGE(image));
|
||||
logo_property = "logo";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue