retry menu entry on connection error

Asked by Alexander Eerie

once i start gnome session i has not network connection yet (needs to unlock keyring for wifi)
indicator starts with connection error.

ps. also i cant open preferences then error occurred

and you are deleting all menu on error, so since no forecast in menu

if you set_sensitive(False) menu loos grey and not readable

--- /usr/bin/indicator-weather 2011-01-16 15:45:00.000000000 +0300
+++ indicator-weather 2011-01-17 03:38:52.335852066 +0300
@@ -268,8 +268,12 @@
     item.destroy()
    self.problem_show = gtk.MenuItem(_("Connection problem"))
    self.problem_show.set_sensitive(False)
+ self.retry_show = gtk.MenuItem(_("Retry"))
+ self.retry_show.connect("activate", self.update_weather)
+ self.retry_show.show()
    self.problem_show.show()
    self.menu.append(self.problem_show)
+ self.menu.append(self.retry_show)
    self.winder.set_icon("ubuntuone-client-error")
    return

Question information

Language:
English Edit question
Status:
Solved
For:
Weather Indicator Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vadim Rutkovsky (roignac) said :
#1

The question is related to several bugs:
bug #703681: Indicator-Weather doesn't recheck for Internet connectivity
bug #703842: Menus look pale in Ambiance theme

I guess, the discussion should be continued in the related bugs

Revision history for this message
Vadim Rutkovsky (roignac) said :
#2

These bugs are fixed in unstable builds