summaryrefslogtreecommitdiff
path: root/mate-window-picker-applet
diff options
context:
space:
mode:
authorÉtienne Deparis <[email protected]>2019-04-03 20:13:22 +0200
committerraveit65 <[email protected]>2019-05-10 10:18:54 +0200
commitf11a708a9ca655377c5dbf3771ca583016bc3c42 (patch)
tree99e7a195733dfbf093ce5ace48458bbdeea3d1f5 /mate-window-picker-applet
parentd657b4740c354370cee6dc6941aeb96005ecce58 (diff)
downloadmate-netbook-f11a708a9ca655377c5dbf3771ca583016bc3c42.tar.bz2
mate-netbook-f11a708a9ca655377c5dbf3771ca583016bc3c42.tar.xz
Remove a bunch of compilation warning
Diffstat (limited to 'mate-window-picker-applet')
-rw-r--r--mate-window-picker-applet/task-title.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/mate-window-picker-applet/task-title.c b/mate-window-picker-applet/task-title.c
index f8e3142..2262015 100644
--- a/mate-window-picker-applet/task-title.c
+++ b/mate-window-picker-applet/task-title.c
@@ -197,12 +197,14 @@ on_state_changed (WnckWindow *window,
if (wnck_window_is_maximized (window))
{
- gtk_widget_set_state (GTK_WIDGET (title), GTK_STATE_ACTIVE);
+ gtk_widget_set_state_flags (GTK_WIDGET (title), GTK_STATE_FLAG_ACTIVE,
+ TRUE);
gtk_widget_show (priv->box);
}
else
{
- gtk_widget_set_state (GTK_WIDGET (title), GTK_STATE_NORMAL);
+ gtk_widget_set_state_flags (GTK_WIDGET (title), GTK_STATE_FLAG_NORMAL,
+ TRUE);
gtk_widget_hide (priv->box);
}
}
@@ -261,14 +263,16 @@ on_active_window_changed (WnckScreen *screen,
_("Log off, switch user, lock screen or "
"power down the computer"));
- gtk_widget_set_state (GTK_WIDGET (title), GTK_STATE_ACTIVE);
+ gtk_widget_set_state_flags (GTK_WIDGET (title), GTK_STATE_FLAG_ACTIVE,
+ TRUE);
gtk_widget_show (priv->box);
}
else
{
gtk_widget_set_tooltip_text (priv->button, NULL);
gtk_widget_set_tooltip_text (GTK_WIDGET (title), NULL);
- gtk_widget_set_state (GTK_WIDGET (title), GTK_STATE_NORMAL);
+ gtk_widget_set_state_flags (GTK_WIDGET (title), GTK_STATE_FLAG_NORMAL,
+ TRUE);
gtk_widget_hide (priv->box);
}
}
@@ -292,12 +296,14 @@ on_active_window_changed (WnckScreen *screen,
priv->window = act_window;
if (wnck_window_is_maximized (act_window))
{
- gtk_widget_set_state (GTK_WIDGET (title), GTK_STATE_ACTIVE);
+ gtk_widget_set_state_flags (GTK_WIDGET (title), GTK_STATE_FLAG_ACTIVE,
+ TRUE);
gtk_widget_show (priv->box);
}
else
{
- gtk_widget_set_state (GTK_WIDGET (title), GTK_STATE_NORMAL);
+ gtk_widget_set_state_flags (GTK_WIDGET (title), GTK_STATE_FLAG_NORMAL,
+ TRUE);
gtk_widget_hide (priv->box);
}
}