Detailed weather data is not displayed

Asked by István Váradi on 2013-10-21

After upgrading to Saucy (and still taking the indicator from the PPA) it ceased to display the menu items containing the detailed weather data.

I am using version 13.7.1 with the Python Weather API 0.3.6. I think I had the same versions before, but it ceased to work after the upgrade. What could be the problem?

Question information

Language:
English Edit question
Status:
Solved
For:
Weather Indicator Edit question
Assignee:
No assignee Edit question
Solved by:
István Váradi
Solved:
2013-10-22
Last query:
2013-10-22
Last reply:
István Váradi (ivaradi) said : #1

If I modify the code to create the menu items in menu_normal() like this:

self.city_show = Gtk.MenuItem("X")

for all such initially empty items, it works properly. I am not sure what the real solution should be, perhaps force some relayout of the menu in show_new_weather_data() and show_cached_weather().

Istvan

DK (dkretz) said : #2

Thanks for the fix István.

For those looking to apply this, the file you need to update is "indicator-weather" in the folder "/usr/bin".

Besides changing those values for weather conditions there needs to be done one more such edit for "Refresh" option to appear.

DK (dkretz) said : #4

Actually, you'll need to exit the program and relaunch

On Fri, Oct 25, 2013 at 3:06 PM, Mateusz Stachowski
<email address hidden> wrote:
> Question #237754 on Weather Indicator changed:
> https://answers.launchpad.net/weather-indicator/+question/237754
>
> Mateusz Stachowski posted a new comment:
> Besides changing those values for weather conditions there needs to be
> done one more such edit for "Refresh" option to appear.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

Damon Hartman (area51pilot) said : #5

Can anyone post an example of the edits to make... i attempted to make edits as described above but program failed to start afterward.

Joshua Tasker (jtasker) said : #6

Thanks István Váradi, something must have changed in GTK.

Whereas before you could call Gtk.MenuItem() without specifying a label and then call set_label() later to update it, now if you create a MenuItem without specifying a label, any later calls to set_label on it do nothing.

The fix will be in the next Unstable build, and the next release.