Commit 5f3d3ad9 authored by Danilo Galete's avatar Danilo Galete 💬
Browse files

Change: GTK_TYPE_BOX to GTK_TYPE_WIDGET; Add: g_return_if_fail methods

parent 3ecd0a13
......@@ -20,7 +20,7 @@
#include "finance-view.h"
G_DEFINE_INTERFACE (FinanceView, finance_view, G_TYPE_OBJECT)
G_DEFINE_INTERFACE (FinanceView, finance_view, GTK_TYPE_WIDGET)
static void
finance_view_default_init (FinanceViewInterface *iface)
......@@ -33,6 +33,9 @@ finance_view_add_child (FinanceView *view,
GtkWidget *widget)
g_return_if_fail (FINANCE_IS_VIEW (view));
g_return_if_fail (widget == NULL);
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (FINANCE_VIEW_GET_IFACE (view)->add_child);
FINANCE_VIEW_GET_IFACE (view)->add_child (view, widget);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment