gcal-view: cleaned GcalView API

Removed GcalView:remove_by_uuid method.
Reordered gcal-view header file.
This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:25 -05:00
parent f4179ec990
commit a5157748bc
6 changed files with 33 additions and 42 deletions
+20 -20
View File
@@ -115,26 +115,6 @@ gcal_view_get_date (GcalView *view)
return date;
}
void
gcal_view_remove_by_uuid (GcalView *view,
const gchar *uuid)
{
g_return_if_fail (GCAL_IS_VIEW (view));
g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->remove_by_uuid);
GCAL_VIEW_GET_INTERFACE (view)->remove_by_uuid (view, uuid);
}
GtkWidget*
gcal_view_get_by_uuid (GcalView *view,
const gchar *uuid)
{
g_return_val_if_fail (GCAL_IS_VIEW (view), NULL);
g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->get_by_uuid);
return GCAL_VIEW_GET_INTERFACE (view)->get_by_uuid (view, uuid);
}
void
gcal_view_reposition_child (GcalView *view,
const gchar *uuid)
@@ -282,3 +262,23 @@ gcal_view_get_right_header (GcalView *view)
return GCAL_VIEW_GET_INTERFACE (view)->get_right_header (view);
}
/**
* gcal_view_get_by_uuid:
* @view: a #GcalView
* @uuid: the uuid of the event-widget
*
* The uuid is formed by source-uid:event-uid, and the widget with
* this uuid is fetched by this method
*
* Returns: a #GcalEventWidget as #GtkWidget
**/
GtkWidget*
gcal_view_get_by_uuid (GcalView *view,
const gchar *uuid)
{
g_return_val_if_fail (GCAL_IS_VIEW (view), NULL);
g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->get_by_uuid);
return GCAL_VIEW_GET_INTERFACE (view)->get_by_uuid (view, uuid);
}