diff options
Diffstat (limited to 'widgets/misc/e-online-button.c')
-rw-r--r-- | widgets/misc/e-online-button.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/widgets/misc/e-online-button.c b/widgets/misc/e-online-button.c index 601aaa4117..1157ecdb86 100644 --- a/widgets/misc/e-online-button.c +++ b/widgets/misc/e-online-button.c @@ -51,11 +51,7 @@ online_button_update_tooltip (EOnlineButton *button) if (e_online_button_get_online (button)) tooltip = ONLINE_TOOLTIP; -#if GTK_CHECK_VERSION(2,19,7) else if (gtk_widget_get_sensitive (GTK_WIDGET (button))) -#else - else if (GTK_WIDGET_SENSITIVE (button)) -#endif tooltip = OFFLINE_TOOLTIP; else tooltip = NETWORK_UNAVAILABLE_TOOLTIP; @@ -131,8 +127,8 @@ online_button_class_init (EOnlineButtonClass *class) PROP_ONLINE, g_param_spec_boolean ( "online", - _("Online"), - _("The button state is online"), + "Online", + "The button state is online", TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); @@ -145,7 +141,7 @@ online_button_init (EOnlineButton *button) button->priv = E_ONLINE_BUTTON_GET_PRIVATE (button); - GTK_WIDGET_UNSET_FLAGS (button, GTK_CAN_FOCUS); + gtk_widget_set_can_focus (GTK_WIDGET (button), FALSE); gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE); widget = gtk_image_new (); |