Skip to content

Commit

Permalink
Modify formation of notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon2fly committed Aug 21, 2016
1 parent 19f39d5 commit 9f61fb7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vpn_indicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def build_menu(self):
menu.append(stop_vpn)

# quit button
item_quit = Gtk.MenuItem('Quit')
item_quit = Gtk.MenuItem('Quit indicator')
item_quit.connect('activate', self.handler, '')
menu.append(item_quit)

Expand Down Expand Up @@ -281,11 +281,11 @@ def status(self, menu_obj, messages=''):
summary = 'VPN tunnel established'

body = '''
{:<20} {:<15}
{:<20} {:<15} {:>20} {:<20}
{:<20} {:<15} {:>20} {:<20}
{:<20} {:<15}
{:<20} {:<15}
{:<20}{:<15} {:>19} {:<15}
{:<18} {:<8} Mbps
{:<18}{:<15} {:>20} {:<20}
{:<22}{:<15}
{:<21}{:<15}
'''.format(*msg)

elif 'terminate' in messages[0]:
Expand All @@ -298,7 +298,7 @@ def status(self, menu_obj, messages=''):
summary = 'Status unknown'
body = "Waiting for connection from main program"

self.notifier.update(summary, body, icon=None)
self.notifier.update(summary, '<span foreground="blue" size="100" font_family="monospace">'+body+'</span>', icon=None)
self.notifier.show()

def handler(self, signal_num, frame):
Expand Down

0 comments on commit 9f61fb7

Please sign in to comment.