gdl/gdl-build-fix.patch
Vincent Untz 6a6ce28fd7 Accepting request 25398 from home:vuntz:branches:GNOME:Factory
Copy from home:vuntz:branches:GNOME:Factory/gdl via accept of submit request 25398 revision 5.
Request was accepted with message:
Accepting...

OBS-URL: https://build.opensuse.org/request/show/25398
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gdl?expand=0&rev=35
2009-12-03 01:49:30 +00:00

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;