gdl/gdl-build-fix.patch

27 lines
1.1 KiB
Diff

Index: gdl-2.29.2/gdl/gdl-dock-item-button-image.c
===================================================================
--- gdl-2.29.2.orig/gdl/gdl-dock-item-button-image.c
+++ gdl-2.29.2/gdl/gdl-dock-item-button-image.c
@@ -49,7 +49,7 @@ gdl_dock_item_button_image_expose (GtkWi
cairo_set_line_width(cr, 1.0);
style = gtk_widget_get_style (widget);
- g_return_if_fail (style != NULL);
+ g_return_val_if_fail (style != NULL, 0);
color = &style->fg[GTK_STATE_NORMAL];
cairo_set_source_rgba(cr, color->red / 65535.0,
color->green / 65535.0, color->blue / 65535.0, 0.55);
Index: gdl-2.29.2/gdl/gdl-dock-item.c
===================================================================
--- gdl-2.29.2.orig/gdl/gdl-dock-item.c
+++ gdl-2.29.2/gdl/gdl-dock-item.c
@@ -1816,7 +1816,7 @@ gdl_dock_item_set_tablabel (GdlDockItem
GtkWidget *
gdl_dock_item_get_grip(GdlDockItem *item)
{
- g_return_if_fail (item != NULL);
+ g_return_val_if_fail (item != NULL, NULL);
g_return_val_if_fail (GDL_IS_DOCK_ITEM (item), NULL);
return item->_priv->grip;