[Goodies-dev] [Bug 5471] New: Destroying summary window opens up help window.

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue Jun 16 01:52:52 CEST 2009


http://bugzilla.xfce.org/show_bug.cgi?id=5471

           Summary: Destroying summary window opens up help window.
           Product: Xfce Panel Plugins
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: weather
        AssignedTo: colin at colino.net
        ReportedBy: erikxian at gmail.com
                CC: goodies-dev at xfce.org


Created an attachment (id=2403)
 --> (http://bugzilla.xfce.org/attachment.cgi?id=2403)
A proposed patch.

When the summary window is closed through the window manager (such as through a
key combination), it closes the window and then opens up the help window.

I believe piece of code in panel-plugin/weather-summary.c is responsible:

    if (response == GTK_RESPONSE_ACCEPT)
        gtk_widget_destroy(window);
    else
         g_spawn_command_line_async ("exo-open --launch WebBrowser "
PLUGIN_WEBSITE, NULL);

To fix this, I altered that to:

    if (response == GTK_RESPONSE_HELP)
        g_spawn_command_line_async ("exo-open --launch WebBrowser "
PLUGIN_WEBSITE, NULL);
    else
         gtk_widget_destroy(window);

which seems to fix this problem.

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Goodies-dev mailing list