[Xfce4-commits] <xfce4-weather-plugin:master> Config dialog: Fix small logical mistake in tooltip function.
Harald Judt
noreply at xfce.org
Mon Jan 14 18:08:02 CET 2013
Updating branch refs/heads/master
to bf1a0b446846d3238069110a6dfcc9f393b1bbe8 (commit)
from fba42fcc6da75fa71d926a9d1b30fdc5b46fc7e5 (commit)
commit bf1a0b446846d3238069110a6dfcc9f393b1bbe8
Author: Harald Judt <h.judt at gmx.at>
Date: Mon Jan 14 02:14:22 2013 +0100
Config dialog: Fix small logical mistake in tooltip function.
panel-plugin/weather-config.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index d4ec860..0b49a71 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -1436,7 +1436,7 @@ options_datatypes_set_tooltip(GtkWidget *optmenu)
gint history, opt = OPTIONS_N;
history = gtk_option_menu_get_history(GTK_OPTION_MENU(optmenu));
- if (G_LIKELY(history > -1) || history < OPTIONS_N)
+ if (G_LIKELY(history > -1) && history < OPTIONS_N)
opt = labeloptions[history].number;
switch (opt) {
More information about the Xfce4-commits
mailing list