[gnome-calendar/wip/gbsneto/edit-dialog-cleanup: 3/3] edit-dialog: remove needless casts
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/gbsneto/edit-dialog-cleanup: 3/3] edit-dialog: remove needless casts
- Date: Wed, 30 Dec 2015 16:41:54 +0000 (UTC)
commit 3396291e3ec6b1178363a2a41b384620cf8d51bd
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Dec 30 14:40:34 2015 -0200
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 435b02d..aa72d2a 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]