From 3396291e3ec6b1178363a2a41b384620cf8d51bd Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 30 Dec 2015 14:40:34 -0200 Subject: [PATCH] edit-dialog: remove needless casts These widgets are already stored as GtkWidgets, and there is no need to do these casts. --- src/gcal-edit-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index 435b02d7..aa72d2a8 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -750,10 +750,10 @@ gcal_edit_dialog_set_event_is_new (GcalEditDialog *dialog, { dialog->event_is_new = event_is_new; - gtk_widget_set_visible (GTK_WIDGET (dialog->delete_button), !event_is_new); + gtk_widget_set_visible (dialog->delete_button, !event_is_new); /* FIXME: implement moving events to other sources */ - gtk_widget_set_sensitive (GTK_WIDGET (dialog->sources_button), event_is_new); + gtk_widget_set_sensitive (dialog->sources_button, event_is_new); gtk_button_set_relief (GTK_BUTTON (dialog->sources_button), event_is_new ? GTK_RELIEF_NORMAL : GTK_RELIEF_NONE); }