diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-01 03:22:22 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-01 03:42:04 +0800 |
commit | c3191ec86b0f711af58a9a902b7464f8f958fe2c (patch) | |
tree | 413ef7f6c6251d05ffbdd6c0d01eb67a740c9689 /mail | |
parent | 7961048944d446f523a9ed12c811d7c2e8a47e97 (diff) | |
download | gsoc2013-evolution-c3191ec86b0f711af58a9a902b7464f8f958fe2c.tar.gz gsoc2013-evolution-c3191ec86b0f711af58a9a902b7464f8f958fe2c.tar.zst gsoc2013-evolution-c3191ec86b0f711af58a9a902b7464f8f958fe2c.zip |
Bump the required GLib and GTK+ versions to latest stable.
We now require GLib >= 2.20 and GTK+ >= 2.16. Also removed all
GLIB_CHECK_VERSION and GTK_CHECK_VERSION workarounds for older versions.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-attachment-bar.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c index d3432ca9cd..92fc8272f7 100644 --- a/mail/e-mail-attachment-bar.c +++ b/mail/e-mail-attachment-bar.c @@ -106,9 +106,7 @@ mail_attachment_bar_update_status (EMailAttachmentBar *bar) gchar *display_size; gchar *markup; -#if GTK_CHECK_VERSION(2,16,0) GtkActivatable *activatable; -#endif view = E_ATTACHMENT_VIEW (bar); store = e_attachment_view_get_store (view); @@ -126,20 +124,12 @@ mail_attachment_bar_update_status (EMailAttachmentBar *bar) gtk_label_set_markup (label, markup); g_free (markup); -#if GTK_CHECK_VERSION(2,16,0) activatable = GTK_ACTIVATABLE (bar->priv->save_all_button); action = gtk_activatable_get_related_action (activatable); -#else - action = e_attachment_view_get_action (view, "save-all"); -#endif gtk_action_set_visible (action, (num_attachments > 1)); -#if GTK_CHECK_VERSION(2,16,0) activatable = GTK_ACTIVATABLE (bar->priv->save_one_button); action = gtk_activatable_get_related_action (activatable); -#else - action = e_attachment_view_get_action (view, "save-one"); -#endif gtk_action_set_visible (action, (num_attachments == 1)); g_free (display_size); @@ -599,11 +589,7 @@ mail_attachment_bar_init (EMailAttachmentBar *bar) view = E_ATTACHMENT_VIEW (bar->priv->icon_view); action = e_attachment_view_get_action (view, "save-all"); gtk_button_set_image (GTK_BUTTON (widget), gtk_image_new ()); -#if GTK_CHECK_VERSION(2,16,0) gtk_activatable_set_related_action (GTK_ACTIVATABLE (widget), action); -#else - gtk_action_connect_proxy (action, widget); /* XXX Deprecated */ -#endif gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0); bar->priv->save_all_button = g_object_ref (widget); gtk_widget_show (widget); @@ -613,11 +599,7 @@ mail_attachment_bar_init (EMailAttachmentBar *bar) view = E_ATTACHMENT_VIEW (bar->priv->icon_view); action = e_attachment_view_get_action (view, "save-one"); gtk_button_set_image (GTK_BUTTON (widget), gtk_image_new ()); -#if GTK_CHECK_VERSION(2,16,0) gtk_activatable_set_related_action (GTK_ACTIVATABLE (widget), action); -#else - gtk_action_connect_proxy (action, widget); /* XXX Deprecated */ -#endif gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0); bar->priv->save_one_button = g_object_ref (widget); gtk_widget_show (widget); |