summaryrefslogtreecommitdiff
path: root/libwnck/window.h
diff options
context:
space:
mode:
authorRob Adams <readams@gnome.org>2004-07-25 18:04:22 +0000
committerRob Adams <readams@src.gnome.org>2004-07-25 18:04:22 +0000
commit84073e037e41399d9a3226f0546a7681010c9059 (patch)
treed50d356ea07408022ca94ffdddce8e3596e86f04 /libwnck/window.h
parent78fe02482cb3c2028f4023c7f31c1d03795b8c64 (diff)
downloadlibwnck-84073e037e41399d9a3226f0546a7681010c9059.tar.gz
Add support for _NET_WM_STATE_DEMANDS_ATTENTION hint. This makes labels in
2004-07-25 Rob Adams <readams@gnome.org> Add support for _NET_WM_STATE_DEMANDS_ATTENTION hint. This makes labels in the tasklist bold for windows with the hint set, and adds API for reading the hint. * libwnck/window.c (COMPRESS_STATE): add demands attention hint (wnck_window_demands_attention): new function, returns the state of the demands attention flag (update_state): include demands attention in the list of updated state * libwnck/window.h (WnckWindowState): Add WNCK_WINDOW_STATE_DEMANDS_ATTENTION (wnck_window_demands_attention): add prototype for new API function * libwnck/wnck-enum-types.c: add demands attention hint * libwnck/tasklist.c (eel_gtk_label_make_bold): new function, copy/paste from eel. (wnck_gtk_label_make_normal): inverse of make_bold (wnck_task_update_visible_state): If demands attention is set, make bold, otherwise make normal. (wnck_task_state_changed): demands attention changes require updating the visible state (wnck_task_create_widgets): If demands attention is set, make bold.
Diffstat (limited to 'libwnck/window.h')
-rw-r--r--libwnck/window.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libwnck/window.h b/libwnck/window.h
index 1a58cc5..de4c5a6 100644
--- a/libwnck/window.h
+++ b/libwnck/window.h
@@ -42,7 +42,8 @@ typedef enum
WNCK_WINDOW_STATE_SKIP_TASKLIST = 1 << 5,
WNCK_WINDOW_STATE_STICKY = 1 << 6,
WNCK_WINDOW_STATE_HIDDEN = 1 << 7,
- WNCK_WINDOW_STATE_FULLSCREEN = 1 << 8
+ WNCK_WINDOW_STATE_FULLSCREEN = 1 << 8,
+ WNCK_WINDOW_STATE_DEMANDS_ATTENTION = 1 << 9
} WnckWindowState;
typedef enum
@@ -153,6 +154,7 @@ gboolean wnck_window_is_shaded (WnckWindow *window);
gboolean wnck_window_is_skip_pager (WnckWindow *window);
gboolean wnck_window_is_skip_tasklist (WnckWindow *window);
gboolean wnck_window_is_sticky (WnckWindow *window);
+gboolean wnck_window_demands_attention (WnckWindow *window);
void wnck_window_set_skip_pager (WnckWindow *window,
gboolean skip);