Lines 618-625
gmail_status_icon_init_gui (GmailStatusI
Link Here
|
618 |
TRUE); |
618 |
TRUE); |
619 |
|
619 |
|
620 |
/* loading the icon... */ |
620 |
/* loading the icon... */ |
621 |
char *icon_path = g_strconcat (g_get_home_dir (), GMAIL_ICON_PATH, |
621 |
char *icon_path = g_strconcat (GMAIL_ICON_PATH,NULL) ; |
622 |
NULL); |
|
|
623 |
GtkWidget *icon = gtk_image_new_from_file (icon_path); |
622 |
GtkWidget *icon = gtk_image_new_from_file (icon_path); |
624 |
g_free (icon_path); |
623 |
g_free (icon_path); |
625 |
|
624 |
|
Lines 644-650
gmail_status_icon_init_gui (GmailStatusI
Link Here
|
644 |
self); |
643 |
self); |
645 |
/* set timeouts */ |
644 |
/* set timeouts */ |
646 |
self->priv->timer_login = |
645 |
self->priv->timer_login = |
647 |
g_timeout_add (1000 * 120, |
646 |
g_timeout_add (1000 * 60, |
648 |
(GSourceFunc) gmail_status_icon_handle_login, |
647 |
(GSourceFunc) gmail_status_icon_handle_login, |
649 |
self); |
648 |
self); |
650 |
} |
649 |
} |
Lines 678-685
gmail_status_icon_clicked_cb (GtkMenuIte
Link Here
|
678 |
char *pass; |
677 |
char *pass; |
679 |
g_object_get (acc, "password", &pass, NULL); |
678 |
g_object_get (acc, "password", &pass, NULL); |
680 |
char *tmp = g_strconcat ("https://www.google.com/accounts/ServiceLoginAuth?ltmpl=yj_wsad<mplcache=2&continue=https%3A%2F%2Fmail.google.com%2Fmail%3F&service=mail&rm=false<mpl=yj_wsad&Email=", user,"&Passwd=" ,pass, "&rmShown=1&null=Sign+in", NULL); |
679 |
char *tmp = g_strconcat ("https://www.google.com/accounts/ServiceLoginAuth?ltmpl=yj_wsad<mplcache=2&continue=https%3A%2F%2Fmail.google.com%2Fmail%3F&service=mail&rm=false<mpl=yj_wsad&Email=", user,"&Passwd=" ,pass, "&rmShown=1&null=Sign+in", NULL); |
681 |
EphyTab *tab = ephy_window_get_active_tab (EPHY_WINDOW ( |
680 |
EphyEmbed *tab = NULL; |
682 |
self->priv->window)); |
681 |
|
683 |
ephy_shell_new_tab (ephy_shell_get_default (), |
682 |
ephy_shell_new_tab (ephy_shell_get_default (), |
684 |
EPHY_WINDOW (self->priv->window), |
683 |
EPHY_WINDOW (self->priv->window), |
685 |
tab, tmp, |
684 |
tab, tmp, |
Lines 832-838
gmail_status_icon_open_browser (GtkWidge
Link Here
|
832 |
*/ |
831 |
*/ |
833 |
char *url = (char*) g_hash_table_lookup (self->priv->popup_table, w); |
832 |
char *url = (char*) g_hash_table_lookup (self->priv->popup_table, w); |
834 |
EphyWindow *wnd = EPHY_WINDOW (self->priv->window); |
833 |
EphyWindow *wnd = EPHY_WINDOW (self->priv->window); |
835 |
EphyTab *tab = ephy_window_get_active_tab (wnd); |
834 |
EphyEmbed *tab = NULL; |
836 |
ephy_shell_new_tab (ephy_shell_get_default (), |
835 |
ephy_shell_new_tab (ephy_shell_get_default (), |
837 |
wnd, tab, url, |
836 |
wnd, tab, url, |
838 |
EPHY_NEW_TAB_OPEN_PAGE | |
837 |
EPHY_NEW_TAB_OPEN_PAGE | |
Lines 885-896
gmail_status_icon_enter_cb (GtkWidget *w
Link Here
|
885 |
{ |
884 |
{ |
886 |
if (self->priv->popup_window) return; |
885 |
if (self->priv->popup_window) return; |
887 |
gmail_status_icon_create_popup (self); |
886 |
gmail_status_icon_create_popup (self); |
888 |
g_signal_connect_after (self->priv->popup_window, "leave-notify-event", |
887 |
if( self->priv->popup_window != NULL ) |
889 |
G_CALLBACK (gmail_status_icon_popup_leave_cb), |
888 |
{ |
890 |
self); |
889 |
g_signal_connect_after (self->priv->popup_window, "leave-notify-event", |
891 |
g_signal_connect_after (self->priv->popup_window, "enter-notify-event", |
890 |
G_CALLBACK (gmail_status_icon_popup_leave_cb), |
892 |
G_CALLBACK (gmail_status_icon_popup_enter_cb), |
891 |
self); |
893 |
self); |
892 |
g_signal_connect_after (self->priv->popup_window, "enter-notify-event", |
|
|
893 |
G_CALLBACK (gmail_status_icon_popup_enter_cb), |
894 |
self); |
895 |
} |
894 |
} |
896 |
} |
895 |
|
897 |
|
896 |
void |
898 |
void |
Lines 1041-1047
gmail_status_icon_display_libnotify (Gma
Link Here
|
1041 |
} |
1043 |
} |
1042 |
|
1044 |
|
1043 |
n = notify_notification_new ("New Mail", |
1045 |
n = notify_notification_new ("New Mail", |
1044 |
str, NULL, NULL); |
1046 |
str, GMAILICON, NULL); |
1045 |
/* we'll show the message for about 5 seconds */ |
1047 |
/* we'll show the message for about 5 seconds */ |
1046 |
notify_notification_set_timeout (n, 5000); |
1048 |
notify_notification_set_timeout (n, 5000); |
1047 |
notify_notification_attach_to_widget (n, GTK_WIDGET ( |
1049 |
notify_notification_attach_to_widget (n, GTK_WIDGET ( |