summaryrefslogtreecommitdiff
path: root/mate-window-picker-applet
diff options
context:
space:
mode:
authorÉtienne Deparis <[email protected]>2019-04-03 20:13:22 +0200
committerMartin Wimpress <[email protected]>2019-09-23 19:47:58 +0100
commitc15dd98dcb66cf09eaebf402291d51f27037410b (patch)
treeb0f091ef8040c8978aff3465502e6bd95317d71b /mate-window-picker-applet
parentf7d91bec9db5e02721f28997a71b05c4bbbe2315 (diff)
downloadmate-netbook-c15dd98dcb66cf09eaebf402291d51f27037410b.tar.bz2
mate-netbook-c15dd98dcb66cf09eaebf402291d51f27037410b.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);
}
}