~ubuntu-branches/ubuntu/natty/avant-window-navigator/natty

« back to all changes in this revision

Viewing changes to applets/taskmanager/xutils.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-12-17 13:48:28 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20101217134828-l394fb03wdkxc3mq
Tags: 0.4.1~bzr803-0ubuntu1
* New upstream snapshot.
 - Fix a crash with signal 5 in _XError (LP: #612144)
 - Re-add "move to another workspace" to launcher (LP: #568555)
* debian/patches:
 - 02-ftbfs-python-2.6.patch: Refresh.
 - 03-python-import.patch: Refresh.
 - 04-lda-requierement.patch: New patch, lower desktop-agnostic requierement,
   the version in Natty is enough.
 - Drop all others patches, merged upstream.
* debian/copyright:
 - Update copyright years and upstream authors.
* debian/control:
 - Build-depends on valac-0.10 (>= 0.9.1), to force stable version of Vala.
* debian/libawn1.symbols:
 - Update with new symbols. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
typedef struct _WnckIconCache WnckIconCache;
38
38
 
 
39
static Display *
 
40
_wnck_get_default_display (void)
 
41
{
 
42
  return GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
 
43
}
 
44
 
39
45
static void
40
46
_wnck_error_trap_push (void)
41
47
{
45
51
static int
46
52
_wnck_error_trap_pop (void)
47
53
{
48
 
  XSync (gdk_display, False);
 
54
  XSync (_wnck_get_default_display (), False);
49
55
  return gdk_error_trap_pop ();
50
56
}
51
57
 
80
86
  ch.res_name = NULL;
81
87
  ch.res_class = NULL;
82
88
 
83
 
  XGetClassHint (gdk_display, xwindow,
 
89
  XGetClassHint (_wnck_get_default_display (), xwindow,
84
90
                 &ch);
85
91
 
86
92
  _wnck_error_trap_pop ();
119
125
  
120
126
  _wnck_error_trap_push ();
121
127
 
122
 
        status = XGetWMClientMachine(gdk_display, xwindow, &text_prop);
 
128
        status = XGetWMClientMachine(_wnck_get_default_display (), xwindow, &text_prop);
123
129
 
124
130
  _wnck_error_trap_pop ();
125
131
  
161
167
  retval = GPOINTER_TO_UINT (g_hash_table_lookup (atom_hash, atom_name));
162
168
  if (!retval)
163
169
  {
164
 
    retval = XInternAtom (gdk_display, atom_name, FALSE);
 
170
    retval = XInternAtom (_wnck_get_default_display (), atom_name, FALSE);
165
171
 
166
172
    if (retval != None)
167
173
    {
360
366
  _wnck_error_trap_push ();
361
367
  type = None;
362
368
  data = NULL;
363
 
  result = XGetWindowProperty (gdk_display,
 
369
  result = XGetWindowProperty (_wnck_get_default_display (),
364
370
                               xwindow,
365
371
                               _wnck_atom_get ("_NET_WM_ICON"),
366
372
                               0, G_MAXLONG,
429
435
  if (d)
430
436
    *d = 1;
431
437
 
432
 
  XGetGeometry (gdk_display,
 
438
  XGetGeometry (_wnck_get_default_display (),
433
439
                pixmap, &root_ignored, &x_ignored, &y_ignored,
434
440
                &width, &height, &border_width_ignored, &depth);
435
441
 
654
660
 
655
661
  _wnck_error_trap_push ();
656
662
  icons = NULL;
657
 
  result = XGetWindowProperty (gdk_display, xwindow,
 
663
  result = XGetWindowProperty (_wnck_get_default_display (), xwindow,
658
664
                               _wnck_atom_get ("KWM_WIN_ICON"),
659
665
                               0, G_MAXLONG,
660
666
                               False,
795
801
 
796
802
 
797
803
  _wnck_error_trap_push ();
798
 
  hints = XGetWMHints (gdk_display, xwindow);
 
804
  hints = XGetWMHints (_wnck_get_default_display (), xwindow);
799
805
  _wnck_error_trap_pop ();
800
806
  pixmap = None;
801
807
  mask = None;