diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-02-13 00:37:05 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:34 +0800 |
commit | 274697623e2a6749a3b173c28f4832d9e88019e3 (patch) | |
tree | 5edbcc1f1cff8b9b00c49bbdea505647570bd3ed /modules/calendar | |
parent | 2952f3482a58a6c325a80a7fbd7ef6c5f727507d (diff) | |
download | gsoc2013-evolution-274697623e2a6749a3b173c28f4832d9e88019e3.tar gsoc2013-evolution-274697623e2a6749a3b173c28f4832d9e88019e3.tar.gz gsoc2013-evolution-274697623e2a6749a3b173c28f4832d9e88019e3.tar.bz2 gsoc2013-evolution-274697623e2a6749a3b173c28f4832d9e88019e3.tar.lz gsoc2013-evolution-274697623e2a6749a3b173c28f4832d9e88019e3.tar.xz gsoc2013-evolution-274697623e2a6749a3b173c28f4832d9e88019e3.tar.zst gsoc2013-evolution-274697623e2a6749a3b173c28f4832d9e88019e3.zip |
Remove NULL checks for GObject methods.
As of GLib 2.28 all GObject virtual methods, including constructed(),
are safe to chain up to unconditionally. Remove unnecessary checks.
Diffstat (limited to 'modules/calendar')
-rw-r--r-- | modules/calendar/e-cal-config-calendar-item.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-cal-config-comp-editor.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-cal-config-date-edit.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-cal-config-meeting-store.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-cal-config-meeting-time-selector.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-cal-config-model.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-cal-config-view.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-cal-shell-backend.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-memo-shell-backend.c | 4 | ||||
-rw-r--r-- | modules/calendar/e-task-shell-backend.c | 4 |
10 files changed, 20 insertions, 20 deletions
diff --git a/modules/calendar/e-cal-config-calendar-item.c b/modules/calendar/e-cal-config-calendar-item.c index f2116e63cf..fba37b3820 100644 --- a/modules/calendar/e-cal-config-calendar-item.c +++ b/modules/calendar/e-cal-config-calendar-item.c @@ -48,8 +48,8 @@ cal_config_calendar_item_constructed (GObject *object) extensible, "week-start-day", G_BINDING_SYNC_CREATE); - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-cal-config-comp-editor.c b/modules/calendar/e-cal-config-comp-editor.c index ae8753de74..ba23a051e5 100644 --- a/modules/calendar/e-cal-config-comp-editor.c +++ b/modules/calendar/e-cal-config-comp-editor.c @@ -68,8 +68,8 @@ cal_config_comp_editor_constructed (GObject *object) extensible, "work-day-start-minute", G_BINDING_SYNC_CREATE); - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-cal-config-date-edit.c b/modules/calendar/e-cal-config-date-edit.c index c26db3e2d6..05a2947d7e 100644 --- a/modules/calendar/e-cal-config-date-edit.c +++ b/modules/calendar/e-cal-config-date-edit.c @@ -48,8 +48,8 @@ cal_config_date_edit_constructed (GObject *object) extensible, "week-start-day", G_BINDING_SYNC_CREATE); - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-cal-config-meeting-store.c b/modules/calendar/e-cal-config-meeting-store.c index 1e4dc460b9..ba1a1077b3 100644 --- a/modules/calendar/e-cal-config-meeting-store.c +++ b/modules/calendar/e-cal-config-meeting-store.c @@ -63,8 +63,8 @@ cal_config_meeting_store_constructed (GObject *object) extensible, "week-start-day", G_BINDING_SYNC_CREATE); - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-cal-config-meeting-time-selector.c b/modules/calendar/e-cal-config-meeting-time-selector.c index 280645d4b9..fb03618cc8 100644 --- a/modules/calendar/e-cal-config-meeting-time-selector.c +++ b/modules/calendar/e-cal-config-meeting-time-selector.c @@ -53,8 +53,8 @@ cal_config_meeting_time_selector_constructed (GObject *object) extensible, "week-start-day", G_BINDING_SYNC_CREATE); - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-cal-config-model.c b/modules/calendar/e-cal-config-model.c index 5455123c4c..47a3ff6463 100644 --- a/modules/calendar/e-cal-config-model.c +++ b/modules/calendar/e-cal-config-model.c @@ -116,8 +116,8 @@ cal_config_model_constructed (GObject *object) G_BINDING_SYNC_CREATE); } - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-cal-config-view.c b/modules/calendar/e-cal-config-view.c index 898a1d2be2..60ee4a5690 100644 --- a/modules/calendar/e-cal-config-view.c +++ b/modules/calendar/e-cal-config-view.c @@ -90,8 +90,8 @@ cal_config_view_constructed (GObject *object) G_BINDING_SYNC_CREATE); } - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-cal-shell-backend.c b/modules/calendar/e-cal-shell-backend.c index 960b6c6132..6c80f71965 100644 --- a/modules/calendar/e-cal-shell-backend.c +++ b/modules/calendar/e-cal-shell-backend.c @@ -755,8 +755,8 @@ cal_shell_backend_constructed (GObject *object) e_calendar_preferences_new, 600); - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-memo-shell-backend.c b/modules/calendar/e-memo-shell-backend.c index 5ce48a60b3..d60421c49c 100644 --- a/modules/calendar/e-memo-shell-backend.c +++ b/modules/calendar/e-memo-shell-backend.c @@ -521,8 +521,8 @@ memo_shell_backend_constructed (GObject *object) G_CALLBACK (memo_shell_backend_window_created_cb), shell_backend); - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void diff --git a/modules/calendar/e-task-shell-backend.c b/modules/calendar/e-task-shell-backend.c index 8bb3f47a66..a55bd75fcc 100644 --- a/modules/calendar/e-task-shell-backend.c +++ b/modules/calendar/e-task-shell-backend.c @@ -526,8 +526,8 @@ task_shell_backend_constructed (GObject *object) G_CALLBACK (task_shell_backend_window_created_cb), shell_backend); - if (G_OBJECT_CLASS (parent_class)->constructed) - G_OBJECT_CLASS (parent_class)->constructed (object); + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void |