Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Gmail Applet
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Gmail Applet [Bug #221]
Page : 1 2 3 4
jesuisbenjamin English 77 matttbe [Read]
26 May 2014 à 16:08

jesuisbenjamin, Tuesday 16 August 2011 à 11:03


Subscription date : 28 October 2009
Messages : 415
Hi there,

I've just finished a Gmail applet , proposed for merging.

One more thing needs to be done: to add a command to launch Gmail. I'm looking into launching Gmail in an existing tab (at least for Firefox), rather than opening a new window/tab.

If you use other browsers and know how to--from command line--open a URL in an existing tab with the same URL, please let me know.

Thanks.
B.

PS: I'll issue a new, lighter, Facebook Applet. Right now it's unstable because it parses HTML, I need to find a way to make that work. It'll be far lighter than the previous version.
PS2: I'm also adapting this applet to a stack-exchange inbox notifyer.

fabounet, Tuesday 16 August 2011 à 12:57


Subscription date : 30 November 2007
Messages : 17118
nice, thanks a lot
can we know the differences with the C mail applet ?

PS: if by chance you're planning to do a Twitter applet, I'll be your first beta-tester but not for facebook (by the way, maybe the applet could handle google+, or maybe another applet should be dedicated to this)

jesuisbenjamin, Tuesday 16 August 2011 à 13:09


Subscription date : 28 October 2009
Messages : 415
Mmmh, there is not much difference with the Mail applet except that it's written in Python. In fact it's redundant. I don't know how the Mail applet functions, but this one works with RSS feed.
Originally I wanted to do an applet checking all sorts of messaging accounts (Gmail, Facebook, Twitter etc.) but instead I decided to do that bit by bit, using the same core-model and eventually bringing them together under one single applet. But I'm actually wondering whether that's even a good idea, in practice i would never have a single icon for all my accounts (i won't jump on new tweets and FB message like i would on Gmail or awaited answers on SO).

Anyway, one thing I want to improve would be to have the inbox displayed on a left-click menu (as asked in http://www.glx-dock.org/bg_topic.php?t=5574, which you just answered)

Facebook sucks, but I use it anyways. Twitter definitely is a good option, there's an API. I'll let you know as soon as done.

SQP, Tuesday 16 August 2011 à 13:27


Subscription date : 03 July 2010
Messages : 1081
jesuisbenjamin :
and eventually bringing them together under one single applet. But I'm actually wondering whether that's even a good idea, in practice i would never have a single icon for all my accounts


If most code is common, it could better to bring all into one applet.
Then launch one instance of the applet for each different configurations you need. (like I have a sysmon graph for CPU and gauge for mem/swap, or one Disks graph for activity and one for gauge partitions size)

jesuisbenjamin, Tuesday 16 August 2011 à 14:03


Subscription date : 28 October 2009
Messages : 415
@SQP: you're right

fabounet, Tuesday 16 August 2011 à 16:09


Subscription date : 30 November 2007
Messages : 17118
+1 for multi-instances, if possible
the C Mail applet uses libetpan, with which we had a lot of problems (it's not very thread-safe, and crashes occasionnaly)
I would be happy to replace it with a Python applet, but the Mail applet supports a lot of standards (especially IMAP and POP, these 2 are quite useful)

jesuisbenjamin, Tuesday 16 August 2011 à 19:15


Subscription date : 28 October 2009
Messages : 415
Well in time and with some effort it could mature i guess

fabounet, Wednesday 17 August 2011 à 12:50


Subscription date : 30 November 2007
Messages : 17118
agree, an incremental apporach is often better

matttbe, Monday 22 August 2011 à 22:16


Subscription date : 24 January 2009
Messages : 12573
Hello,

@benjamin: thank you for this new applet!
This new applet is now available on the trunk (lp:cairo-dock-plug-ins-extras)

I just have a few questions about it:
  • In the config file, why do you use a "custom list of effects" (L+) and not a "list of effects" (a => #a Animation of the icon on receiving a message:). You can also add a checkbox to not use effects, e.g.
    #B- Use animations?
    anim = true

    #a- Animation of the icon on receiving a message:
    HOW =
    (if empty, the default animation will be used)
  • Is it possible to have a bigger emblem (or to change the size of it in the config panel)? (it's hard to read the content of it on my computer)
  • If I change the appearance (config panel), the emblem is no longer available until the next checking of the inbox I think, is it possible to force it?
  • (if you want to create a symbolic link for something that you want to share, you have to use this command:
    ln -s ORIGINAL_FILE NEW_FILE
    because if you use the entry menu of Nautilus to create a symbolic link, it will create a file which the target file have the complete path of the file => it will not work if you move these filesand I don't have this file on my computer: '/home/benjamin/.config/cairo-dock/third-party/Gmail/Gmail.py' )
  • (Is it possible to launch this command because your name is not correct here (I had to correct it but it's not a big deal):
    bzr whoami "jesuisbenjamin <je(...)@g(...).com>"
    )

jesuisbenjamin, Tuesday 23 August 2011 à 10:59


Subscription date : 28 October 2009
Messages : 415
matttbe :

In the config file, why do you use a "custom list of effects" (L+) and not a "list of effects"


Well I simply didn't know it existed I added it to the Wiki just now. Default animation is set centrally by CD or is that a default i should provide in the applet code?

matttbe :

Is it possible to have a bigger emblem (or to change the size of it in the config panel)? (it's hard to read the content of it on my computer)


Is the icon emblem stretched, what icon-size do you use? If you could give me a screenshot, it would be helpful. Then I'll think of a way to improve this.

matttbe :

If I change the appearance (config panel), the emblem is no longer available until the next checking of the inbox I think, is it possible to force it?

You mean that you switch from emblem to counter while you have unread emails? The counter won't reappear until the next email check is done i guess yes. Mhhh, so when the config is changed like this, the applet's getconfig() is called again right? Perhaps I can add something to this method so it checks whether there already is a counter and if so place it on the icon. Till then you can "check email now" in the right-click menu.

matttbe :
(if you want to create a symbolic link for something that you want to share, you have to use this command:
ln -s ORIGINAL_FILE NEW_FILE

ooops

matttbe :
Is it possible to launch this command because your name is not correct etc.

Done.

Thanks.

jesuisbenjamin, Tuesday 23 August 2011 à 11:12


Subscription date : 28 October 2009
Messages : 415
@ Matttbe, PS: the ln -s old new doesn't work, it keeps making hardlinks anyhow -- I was pretty sure i did that too. I've got to see to that.

matttbe, Tuesday 23 August 2011 à 12:45


Subscription date : 24 January 2009
Messages : 12573
Default animation is set centrally by CD or is that a default i should provide in the applet code?
MMh, I don't know... but you can choose a blank item in the config panel and it should be the default animation (so you have to replace this string by 'default' if it's empty)

Is the icon emblem stretched, what icon-size do you use?
34x34 px
http://uppix.net/9/f/e/a1ed40383178da5bd5f86a267e4c3.png


Till then you can "check email now" in the right-click menu.
Or simply call this function (check_mail) when the configuration has changed. In CDApplet, there is:
    def _on_reload(self,bConfigHasChanged):
        if 
bConfigHasChanged:
            
self._get_config()
            
self.reload()



ln -s old new doesn't work
Strange? Sure? Simply try:
echo "Hello World" > test_ln.txt
ln -s test_ln.txt test_ln2.txt
ls -l test_ln2.txt
cat test_ln2.txt

jesuisbenjamin, Tuesday 23 August 2011 à 12:52


Subscription date : 28 October 2009
Messages : 415
Symlink problem solved.
Updated getconfig() so it refreshes display according to current mail count.

jesuisbenjamin, Tuesday 23 August 2011 à 13:17


Subscription date : 28 October 2009
Messages : 415
@Matttbe:

with regard to the emblem, it can hardly be resized because CD resizes the emblem to 1/4th of the icon's size anyhow. So at best I can reduce the margin, but it barely makes a difference.

Also the emblem as it is matches the emblem of the Faenza style which I put together. An applet-centric resizing would be odd. In fact it would make more sense if CD allowed to change the global emblem's size (preferably proportionally to the icon's size).

matttbe, Tuesday 23 August 2011 à 13:56


Subscription date : 24 January 2009
Messages : 12573
As we already said before, it can be interesting to change the background of a Cairo-Dock emblem

jesuisbenjamin, Tuesday 23 August 2011 à 14:08


Subscription date : 28 October 2009
Messages : 415
matttbe :
As we already said before, it can be interesting to change the background of a Cairo-Dock emblem :)


What do you mean?

Anyway there is an alternative, which is to use not an emblem but an alternative SVG with integrated counter. This second Icon could have several versions, each with an emblem of a different size.

matttbe, Tuesday 23 August 2011 à 14:13


Subscription date : 24 January 2009
Messages : 12573
I would said a way to customise the quickinfo of Cairo-Dock => size, position, background

jesuisbenjamin, Tuesday 23 August 2011 à 14:15


Subscription date : 28 October 2009
Messages : 415
matttbe :
I would said a way to customise the quickinfo of Cairo-Dock => size, position, background


Yes that would be a good idea. Although you won't get as a good quality as with SVG (shapes, relief, shading etc.)

jesuisbenjamin, Tuesday 23 August 2011 à 22:18


Subscription date : 28 October 2009
Messages : 415
@Matttbe: i made changes. However i'm completely frustrated with Bazar it's really #&%$*@ me.

It was a real nightmare adding new files, talked about conflicts with files that didn't exist and once i manage to upload the files it sent them with a weird username so it doesn't recognise me as the author.

Is there a way i can do that manually?

taiebot65, Tuesday 23 August 2011 à 22:27


Subscription date : 26 October 2008
Messages : 1904
Have you had a look at ground control it's quite easy to use bazar inside nautilus

http://ground-control.org/videos.html?video=intro

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Gmail Applet [Bug #221]
Page : 1 2 3 4
jesuisbenjamin English 77 matttbe [Read]
26 May 2014 à 16:08


Glx-Dock / Cairo-Dock List of forums Applets | Applets Gmail Applet Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.