diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-09 01:24:42 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-09 01:37:20 +0800 |
commit | 8a186c3588d3598857c36e2122fa68d01eba30fd (patch) | |
tree | 731078659d4e04af8346c5ca68512d8537b3707a /shell | |
parent | 2bf3460cd3eb0853a1d10a6e36f5091898a5533f (diff) | |
download | gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.gz gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.bz2 gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.lz gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.xz gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.zst gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.zip |
Coding style cleanups.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/e-shell-window.c | 6 | ||||
-rw-r--r-- | shell/es-event.c | 20 |
2 files changed, 13 insertions, 13 deletions
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index 1ba075d957..7d8e6c5f85 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -362,11 +362,11 @@ shell_window_construct_menubar (EShellWindow *shell_window) parent = gtk_widget_get_parent (main_menu); g_object_ref (parent); - gtk_container_remove ((GtkContainer *)parent, main_menu); + gtk_container_remove ((GtkContainer *) parent, main_menu); child = gtk_hbox_new (FALSE, 0); - gtk_box_pack_start ((GtkBox *)child, main_menu, TRUE, TRUE, 0); + gtk_box_pack_start ((GtkBox *) child, main_menu, TRUE, TRUE, 0); gtk_widget_show (child); - gtk_container_add ((GtkContainer *)parent, child); + gtk_container_add ((GtkContainer *) parent, child); shell_window->priv->menubar_box = child; g_object_bind_property ( diff --git a/shell/es-event.c b/shell/es-event.c index 6fc6751d3a..f079afd8b5 100644 --- a/shell/es-event.c +++ b/shell/es-event.c @@ -44,7 +44,7 @@ eme_init (GObject *o) static void eme_finalise (GObject *o) { - ((GObjectClass *)eme_parent)->finalize (o); + ((GObjectClass *) eme_parent)->finalize (o); } static void @@ -52,20 +52,20 @@ eme_target_free (EEvent *ep, EEventTarget *t) { switch (t->type) { case ES_EVENT_TARGET_STATE: { - ESEventTargetState *s = (ESEventTargetState *)t; + ESEventTargetState *s = (ESEventTargetState *) t; s = s; break; } } - ((EEventClass *)eme_parent)->target_free (ep, t); + ((EEventClass *) eme_parent)->target_free (ep, t); } static void eme_class_init (GObjectClass *klass) { klass->finalize = eme_finalise; - ((EEventClass *)klass)->target_free = eme_target_free; + ((EEventClass *) klass)->target_free = eme_target_free; } GType @@ -77,10 +77,10 @@ es_event_get_type (void) static const GTypeInfo info = { sizeof (ESEventClass), NULL, NULL, - (GClassInitFunc)eme_class_init, + (GClassInitFunc) eme_class_init, NULL, NULL, sizeof (ESEvent), 0, - (GInstanceInitFunc)eme_init + (GInstanceInitFunc) eme_init }; eme_parent = g_type_class_ref (e_event_get_type ()); type = g_type_register_static(e_event_get_type(), "ESEvent", &info, 0); @@ -189,7 +189,7 @@ emeh_finalise (GObject *o) { /*EPluginHook *eph = (EPluginHook *)o;*/ - ((GObjectClass *)emeh_parent_class)->finalize (o); + ((GObjectClass *) emeh_parent_class)->finalize (o); } static void @@ -204,13 +204,13 @@ emeh_class_init (EPluginHookClass *klass) * A hook for events coming from the shell. **/ - ((GObjectClass *)klass)->finalize = emeh_finalise; + ((GObjectClass *) klass)->finalize = emeh_finalise; ((EPluginHookClass *)klass)->id = "org.gnome.evolution.shell.events:1.0"; for (i=0;emeh_targets[i].type;i++) - e_event_hook_class_add_target_map ((EEventHookClass *)klass, &emeh_targets[i]); + e_event_hook_class_add_target_map ((EEventHookClass *) klass, &emeh_targets[i]); - ((EEventHookClass *)klass)->event = (EEvent *)es_event_peek (); + ((EEventHookClass *) klass)->event = (EEvent *) es_event_peek (); } GType |