[Xfce4-commits] <xfce4-weather-plugin:master> Remove forecast entry from plugin context menu (bug #9319).

Harald Judt noreply at xfce.org
Mon Nov 12 22:14:03 CET 2012


Updating branch refs/heads/master
         to 15c402c9446772d68996d6dd658e04d2478f9601 (commit)
       from 9fbab701e668b1e5a019667c29395d72054ede16 (commit)

commit 15c402c9446772d68996d6dd658e04d2478f9601
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Nov 12 22:05:05 2012 +0100

    Remove forecast entry from plugin context menu (bug #9319).
    
    Clicking the panel plugin widgets brings up or closes the forecast window,
    which makes this menu entry sort of redundant.

 panel-plugin/weather.c |   17 +----------------
 1 files changed, 1 insertions(+), 16 deletions(-)

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 07e8b3a..25dcc7d 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -1009,7 +1009,7 @@ static xfceweather_data *
 xfceweather_create_control(XfcePanelPlugin *plugin)
 {
     xfceweather_data *data = g_slice_new0(xfceweather_data);
-    GtkWidget *refresh, *mi;
+    GtkWidget *refresh;
     data_types lbl;
     GdkPixbuf *icon = NULL;
 
@@ -1082,21 +1082,6 @@ xfceweather_create_control(XfcePanelPlugin *plugin)
 
     xfce_panel_plugin_menu_insert_item(plugin, GTK_MENU_ITEM(refresh));
 
-    /* add forecast window to right click menu, for people who missed
-       the left mouse click feature */
-    mi = gtk_image_menu_item_new_with_mnemonic(_("_Forecast"));
-    icon = get_icon(data->icon_theme, "SUN", 16, FALSE);
-    gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi),
-                                  gtk_image_new_from_pixbuf(icon));
-    if (G_LIKELY(icon))
-        g_object_unref(G_OBJECT(icon));
-    gtk_widget_show(mi);
-
-    g_signal_connect(G_OBJECT(mi), "activate",
-                     G_CALLBACK(forecast_click), data);
-
-    xfce_panel_plugin_menu_insert_item(plugin, GTK_MENU_ITEM(mi));
-
     /* assign to tempval because g_array_append_val() is using & operator */
     lbl = TEMPERATURE;
     g_array_append_val(data->labels, lbl);


More information about the Xfce4-commits mailing list