summaryrefslogtreecommitdiff
path: root/maximus/xutils.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-11-28 19:33:41 +0100
committerinfirit <[email protected]>2013-11-28 19:40:32 +0100
commitd2e40a5b26525f9512da4b526621264e68587e0e (patch)
tree1369a6780d4627a3c771c88302c9244297bb86e8 /maximus/xutils.c
parentdada16021aa2f4332496592b196839dea7277dfa (diff)
downloadmate-netbook-d2e40a5b26525f9512da4b526621264e68587e0e.tar.bz2
mate-netbook-d2e40a5b26525f9512da4b526621264e68587e0e.tar.xz
Back to libwnck.
Diffstat (limited to 'maximus/xutils.c')
-rw-r--r--maximus/xutils.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/maximus/xutils.c b/maximus/xutils.c
index 4e79569..3ff03bb 100644
--- a/maximus/xutils.c
+++ b/maximus/xutils.c
@@ -25,7 +25,8 @@
#include "xutils.h"
#include <string.h>
#include <stdio.h>
-#include <libmatewnck/libmatewnck.h>
+#define WNCK_I_KNOW_THIS_IS_UNSTABLE
+#include <libwnck/libwnck.h>
#ifdef __GNUC__
#define UNUSED_VARIABLE __attribute__ ((unused))
@@ -34,13 +35,13 @@
#endif
void
-_matewnck_error_trap_push (void)
+_wnck_error_trap_push (void)
{
gdk_error_trap_push ();
}
int
-_matewnck_error_trap_pop (void)
+_wnck_error_trap_pop (void)
{
XSync (gdk_display, False);
return gdk_error_trap_pop ();
@@ -65,14 +66,14 @@ latin1_to_utf8 (const char *latin1)
}
void
-_matewnck_get_wmclass (Window xwindow,
+_wnck_get_wmclass (Window xwindow,
char **res_class,
char **res_name)
{
XClassHint ch;
char UNUSED_VARIABLE *retval;
- _matewnck_error_trap_push ();
+ _wnck_error_trap_push ();
ch.res_name = NULL;
ch.res_class = NULL;
@@ -80,7 +81,7 @@ _matewnck_get_wmclass (Window xwindow,
XGetClassHint (gdk_display, xwindow,
&ch);
- _matewnck_error_trap_pop ();
+ _wnck_error_trap_pop ();
retval = NULL;