aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDamien Carbery <damien.carbery@sun.com>2007-11-03 01:08:05 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-11-03 01:08:05 +0800
commitebf5dd871742c383a01331c4fdb64a1b5d51d33c (patch)
treea52cf4181769402b558fbf63f5243c40352604ac /shell
parent040e3fbafe7fd505d9ca741629dcbab1393b4900 (diff)
downloadgsoc2013-evolution-ebf5dd871742c383a01331c4fdb64a1b5d51d33c.tar
gsoc2013-evolution-ebf5dd871742c383a01331c4fdb64a1b5d51d33c.tar.gz
gsoc2013-evolution-ebf5dd871742c383a01331c4fdb64a1b5d51d33c.tar.bz2
gsoc2013-evolution-ebf5dd871742c383a01331c4fdb64a1b5d51d33c.tar.lz
gsoc2013-evolution-ebf5dd871742c383a01331c4fdb64a1b5d51d33c.tar.xz
gsoc2013-evolution-ebf5dd871742c383a01331c4fdb64a1b5d51d33c.tar.zst
gsoc2013-evolution-ebf5dd871742c383a01331c4fdb64a1b5d51d33c.zip
** Fixes bug #492058
2007-11-02 Damien Carbery <damien.carbery@sun.com> ** Fixes bug #492058 * shell/e-shell-window.c: * shell/e-shell.c: * widgets/table/e-table-header-item.h: * widgets/table/e-table-header-item.c: * calendar/gui/e-itip-control.c: Name the anonymous unions to build with the Sun Studio compiler. svn path=/trunk/; revision=34485
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog8
-rw-r--r--shell/e-shell-window.c38
-rw-r--r--shell/e-shell.c28
3 files changed, 41 insertions, 33 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index a372766cef..403b50949c 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,11 @@
+2007-11-02 Damien Carbery <damien.carbery@sun.com>
+
+ ** Fixes bug #492058
+
+ * e-shell-window.c:
+ * e-shell.c: Name the anonymous unions to build with the Sun
+ Studio compiler.
+
2007-11-01 Matthew Barnes <mbarnes@redhat.com>
* e-shell-window-commands.c:
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c
index 094d090419..a76183c7f6 100644
--- a/shell/e-shell-window.c
+++ b/shell/e-shell-window.c
@@ -89,9 +89,9 @@ typedef struct _ComponentView ComponentView;
struct _EShellWindowPrivate {
union {
- EShell *shell;
- gpointer shell_pointer;
- };
+ EShell *eshell;
+ gpointer pointer;
+ } shell;
EShellView *shell_view; /* CORBA wrapper for this, just a placeholder */
@@ -220,7 +220,7 @@ init_view (EShellWindow *window,
ComponentView *view)
{
EShellWindowPrivate *priv = window->priv;
- EComponentRegistry *registry = e_shell_peek_component_registry (window->priv->shell);
+ EComponentRegistry *registry = e_shell_peek_component_registry (window->priv->shell.eshell);
GNOME_Evolution_Component component_iface;
GNOME_Evolution_ComponentView component_view;
Bonobo_UIContainer container;
@@ -320,7 +320,7 @@ switch_view (EShellWindow *window, ComponentView *component_view)
{
EShellWindowPrivate *priv = window->priv;
GConfClient *gconf_client = gconf_client_get_default ();
- EComponentRegistry *registry = e_shell_peek_component_registry (window->priv->shell);
+ EComponentRegistry *registry = e_shell_peek_component_registry (window->priv->shell.eshell);
EComponentInfo *info = e_component_registry_peek_info (registry,
ECR_FIELD_ID,
component_view->component_id);
@@ -376,7 +376,7 @@ update_offline_toggle_status (EShellWindow *window)
priv = window->priv;
- switch (e_shell_get_line_status (priv->shell)) {
+ switch (e_shell_get_line_status (priv->shell.eshell)) {
case E_SHELL_LINE_STATUS_ONLINE:
icon_pixmap = online_pixmap;
icon_mask = online_mask;
@@ -417,7 +417,7 @@ update_offline_toggle_status (EShellWindow *window)
static void
update_send_receive_sensitivity (EShellWindow *window)
{
- if (e_shell_get_line_status (window->priv->shell) == E_SHELL_LINE_STATUS_OFFLINE)
+ if (e_shell_get_line_status (window->priv->shell.eshell) == E_SHELL_LINE_STATUS_OFFLINE)
bonobo_ui_component_set_prop (window->priv->ui_component,
"/commands/SendReceive",
"sensitive", "0", NULL);
@@ -467,7 +467,7 @@ sidebar_button_pressed_callback (ESidebar *sidebar,
ComponentView *component_view;
if ((component_view = get_component_view (window, button_id))) {
- e_shell_create_window (window->priv->shell,
+ e_shell_create_window (window->priv->shell.eshell,
component_view->component_id,
window);
}
@@ -482,12 +482,12 @@ offline_toggle_clicked_callback (GtkButton *button,
{
EShellWindowPrivate *priv = window->priv;
- switch (e_shell_get_line_status (priv->shell)) {
+ switch (e_shell_get_line_status (priv->shell.eshell)) {
case E_SHELL_LINE_STATUS_ONLINE:
- e_shell_go_offline (priv->shell, window, GNOME_Evolution_USER_OFFLINE);
+ e_shell_go_offline (priv->shell.eshell, window, GNOME_Evolution_USER_OFFLINE);
break;
case E_SHELL_LINE_STATUS_OFFLINE:
- e_shell_go_online (priv->shell, window, GNOME_Evolution_USER_ONLINE);
+ e_shell_go_online (priv->shell.eshell, window, GNOME_Evolution_USER_ONLINE);
break;
default:
g_return_if_reached();
@@ -679,7 +679,7 @@ static void
setup_widgets (EShellWindow *window)
{
EShellWindowPrivate *priv = window->priv;
- EComponentRegistry *registry = e_shell_peek_component_registry (priv->shell);
+ EComponentRegistry *registry = e_shell_peek_component_registry (priv->shell.eshell);
GConfClient *gconf_client = gconf_client_get_default ();
GtkWidget *contents_vbox;
GSList *p;
@@ -871,9 +871,9 @@ impl_dispose (GObject *object)
priv->destroyed = TRUE;
- if (priv->shell != NULL) {
- g_object_remove_weak_pointer (G_OBJECT (priv->shell), &priv->shell_pointer);
- priv->shell = NULL;
+ if (priv->shell.eshell != NULL) {
+ g_object_remove_weak_pointer (G_OBJECT (priv->shell.eshell), &priv->shell.pointer);
+ priv->shell.eshell = NULL;
}
if (priv->ui_component != NULL) {
@@ -1054,8 +1054,8 @@ e_shell_window_new (EShell *shell,
return NULL;
}
- window->priv->shell = shell;
- g_object_add_weak_pointer (G_OBJECT (shell), &window->priv->shell_pointer);
+ window->priv->shell.eshell = shell;
+ g_object_add_weak_pointer (G_OBJECT (shell), &window->priv->shell.pointer);
/* FIXME TODO: Add system_exception signal handling and all the other
stuff from e_shell_view_construct(). */
@@ -1163,7 +1163,7 @@ e_shell_window_peek_shell (EShellWindow *window)
{
g_return_val_if_fail (E_IS_SHELL_WINDOW (window), NULL);
- return window->priv->shell;
+ return window->priv->shell.eshell;
}
@@ -1258,7 +1258,7 @@ e_shell_window_show_settings (EShellWindow *window)
{
g_return_if_fail (E_IS_SHELL_WINDOW (window));
- e_shell_show_settings (window->priv->shell, window->priv->current_view ? window->priv->current_view->component_alias : NULL, window);
+ e_shell_show_settings (window->priv->shell.eshell, window->priv->current_view ? window->priv->current_view->component_alias : NULL, window);
}
void
diff --git a/shell/e-shell.c b/shell/e-shell.c
index fdc8e6a15d..0fdf766903 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -99,9 +99,9 @@ struct _EShellPrivate {
/* Settings Dialog */
union {
- GtkWidget *settings_dialog;
- gpointer settings_dialog_pointer;
- };
+ GtkWidget *widget;
+ gpointer pointer;
+ } settings_dialog;
/* If we're quitting and things are still busy, a timeout handler */
guint quit_timeout;
@@ -454,9 +454,9 @@ impl_dispose (GObject *object)
/* No unreffing for these as they are aggregate. */
/* bonobo_object_unref (BONOBO_OBJECT (priv->corba_storage_registry)); */
- if (priv->settings_dialog != NULL) {
- gtk_widget_destroy (priv->settings_dialog);
- priv->settings_dialog = NULL;
+ if (priv->settings_dialog.widget != NULL) {
+ gtk_widget_destroy (priv->settings_dialog.widget);
+ priv->settings_dialog.widget = NULL;
}
if (priv->line_status_listener) {
@@ -1249,21 +1249,21 @@ e_shell_show_settings (EShell *shell,
priv = shell->priv;
- if (priv->settings_dialog != NULL) {
- gdk_window_show (priv->settings_dialog->window);
- gtk_widget_grab_focus (priv->settings_dialog);
+ if (priv->settings_dialog.widget != NULL) {
+ gdk_window_show (priv->settings_dialog.widget->window);
+ gtk_widget_grab_focus (priv->settings_dialog.widget);
return;
}
- priv->settings_dialog = e_shell_settings_dialog_new ();
+ priv->settings_dialog.widget = e_shell_settings_dialog_new ();
if (type != NULL)
- e_shell_settings_dialog_show_type (E_SHELL_SETTINGS_DIALOG (priv->settings_dialog), type);
+ e_shell_settings_dialog_show_type (E_SHELL_SETTINGS_DIALOG (priv->settings_dialog.widget), type);
- g_object_add_weak_pointer (G_OBJECT (priv->settings_dialog), &priv->settings_dialog_pointer);
+ g_object_add_weak_pointer (G_OBJECT (priv->settings_dialog.widget), &priv->settings_dialog.pointer);
- gtk_window_set_transient_for (GTK_WINDOW (priv->settings_dialog), GTK_WINDOW (shell_window));
- gtk_widget_show (priv->settings_dialog);
+ gtk_window_set_transient_for (GTK_WINDOW (priv->settings_dialog.widget), GTK_WINDOW (shell_window));
+ gtk_widget_show (priv->settings_dialog.widget);
}