aboutsummaryrefslogtreecommitdiffstats
path: root/capplet
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-06-24 19:31:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-06-25 08:31:42 +0800
commitf960fd2dff5358f0e13eba7041d35855bf48c22e (patch)
tree92859c8ba093fa15a3bd7b888332d6e61a704a51 /capplet
parent88db20f3e9ff38296c031671de963ae665fd8143 (diff)
downloadgsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.gz
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.bz2
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.lz
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.xz
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.zst
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.zip
Reduce usage of g_type_class_peek_parent().
G_DEFINE_TYPE macros define a static "parent_class" variable.
Diffstat (limited to 'capplet')
-rw-r--r--capplet/settings/mail-account-view.c1
-rw-r--r--capplet/settings/mail-capplet-shell.c1
-rw-r--r--capplet/settings/mail-settings-view.c12
3 files changed, 0 insertions, 14 deletions
diff --git a/capplet/settings/mail-account-view.c b/capplet/settings/mail-account-view.c
index 65b220c190..cf746606ef 100644
--- a/capplet/settings/mail-account-view.c
+++ b/capplet/settings/mail-account-view.c
@@ -104,7 +104,6 @@ mail_account_view_class_init (MailAccountViewClass *class)
{
GObjectClass * object_class = G_OBJECT_CLASS (class);
- mail_account_view_parent_class = g_type_class_peek_parent (class);
object_class->finalize = mail_account_view_finalize;
signals[VIEW_CLOSE] =
diff --git a/capplet/settings/mail-capplet-shell.c b/capplet/settings/mail-capplet-shell.c
index acb577b378..a65479025d 100644
--- a/capplet/settings/mail-capplet-shell.c
+++ b/capplet/settings/mail-capplet-shell.c
@@ -117,7 +117,6 @@ mail_capplet_shell_class_init (MailCappletShellClass *class)
GObjectClass * object_class = G_OBJECT_CLASS (class);
GtkBindingSet *binding_set;
- mail_capplet_shell_parent_class = g_type_class_peek_parent (class);
object_class->finalize = mail_capplet_shell_finalize;
class->ctrl_w_pressed = ms_ctrl_w_pressed;
class->ctrl_q_pressed = ms_ctrl_q_pressed;
diff --git a/capplet/settings/mail-settings-view.c b/capplet/settings/mail-settings-view.c
index 125fc357cb..d302aca057 100644
--- a/capplet/settings/mail-settings-view.c
+++ b/capplet/settings/mail-settings-view.c
@@ -56,15 +56,6 @@ static void
mail_settings_view_init (MailSettingsView *shell)
{
shell->priv = g_new0 (MailSettingsViewPrivate, 1);
-
-}
-
-static void
-mail_settings_view_finalize (GObject *object)
-{
- /* MailSettingsView *shell = (MailSettingsView *)object; */
-
- G_OBJECT_CLASS (mail_settings_view_parent_class)->finalize (object);
}
static void
@@ -72,9 +63,6 @@ mail_settings_view_class_init (MailSettingsViewClass *class)
{
GObjectClass * object_class = G_OBJECT_CLASS (class);
- mail_settings_view_parent_class = g_type_class_peek_parent (class);
- object_class->finalize = mail_settings_view_finalize;
-
signals[VIEW_CLOSE] =
g_signal_new ("view-close",
G_OBJECT_CLASS_TYPE (object_class),