gcal-view: cleaned API

Removed unneeded GcalView:reposition_child method.
Reworked gcal_window_events_modified to use GcalView:get_by_uuid
This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:26 -05:00
parent aabf226344
commit c365e9124a
5 changed files with 41 additions and 157 deletions
+3 -12
View File
@@ -115,16 +115,6 @@ gcal_view_get_date (GcalView *view)
return date;
}
void
gcal_view_reposition_child (GcalView *view,
const gchar *uuid)
{
g_return_if_fail (GCAL_IS_VIEW (view));
g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->reposition_child);
GCAL_VIEW_GET_INTERFACE (view)->reposition_child (view, uuid);
}
void
gcal_view_clear_selection (GcalView *view)
{
@@ -273,9 +263,10 @@ gcal_view_draw_event (GcalView *view,
* @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
* this uuid is fetched by this method. If there's no widget with this
* uuid in the view %NULL is returned.
*
* Returns: a #GcalEventWidget as #GtkWidget
* Returns: a #GcalEventWidget as #GtkWidget, %NULL otherwise
**/
GtkWidget*
gcal_view_get_by_uuid (GcalView *view,