~pkg-ime/ibus/debian-ibus

« back to all changes in this revision

Viewing changes to client/gtk3/ibusimcontext.c

  • Committer: Asias He
  • Date: 2010-12-05 07:43:51 UTC
  • mfrom: (41.1.42 upstream)
  • Revision ID: asias.hejun@gmail.com-20101205074351-r53b8l45l483cchg
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
669
669
 
670
670
    area = ibusimcontext->cursor_area;
671
671
    if (area.x == -1 && area.y == -1 && area.width == 0 && area.height == 0) {
 
672
#if GTK_CHECK_VERSION (2, 91, 0)
 
673
        area.x = 0;
 
674
        area.y += gdk_window_get_height (ibusimcontext->client_window);
 
675
#else
672
676
        gint w, h;
673
677
        gdk_drawable_get_size (ibusimcontext->client_window, &w, &h);
674
678
        area.y += h;
675
679
        area.x = 0;
 
680
#endif
676
681
    }
677
682
 
678
683
    gdk_window_get_origin (ibusimcontext->client_window, &x, &y);