, xpos, ypos);
  g_queue_push_tail (&self->overlays, &overlay->link);
  gtk_widget_set_parent (widget, GTK_WIDGET (self));
}

void
gtk_text_view_child_move_overlay (GtkTextViewChild *self,
                                  GtkWidget        *widget,
                                  int               xpos,
                                  int               ypos)
{
  Overlay *overlay;

  g_return_if_fail (GTK_IS_TEXT_VIEW_CHILD (self));
  g_return_if_fail (GTK_IS_WIDGET (widget));

  overlay = gtk_text_view_child_get_overlay (self, widget);

  if (overlay!= NULL)
    {
      overlay->x = xpos;
      overlay->y = ypos;

      if (gtk_widget_get_visible (GTK_WIDGET (self)) &&
          gtk_widget_get_visible (widget))
        gtk_widget_queue_allocate (GTK_WIDGET (self));
    }
}

GtkTextWindowType
gtk_text_view_child_get_window_type (GtkTextViewChild *self)
{
  g_return_val_if_fail (GTK_IS_TEXT_VIEW_CHILD (self), 0);

  return self->window_type;
}

void
gtk_text_view_child_set_offset (GtkTextViewChild *self,
                                int               xoffset,
                                int               yoffset)
{
  gboolean changed = FALSE;

  g_return_if_fail (GTK_IS_TEXT_VIEW_CHILD (self));

  if (self->window_type == GTK_TEXT_WINDOW_TEXT ||
      self->window_type == GTK_TEXT_WINDOW_TOP ||
      self->window_type == GTK_TEXT_WINDOW_BOTTOM)
    {
      if (self->xoffset!= xoffset)
        {
          self->xoffset = xoffset;
          changed = TRUE;
        }
    }

  if (self->window_type
, xpos, ypos); 
   g_queue_push_tail (& self->overlays, & overlay->link); 
   gtk_widget_set_parent (widget, GTK_WIDGET (self) ); 
 } 

 void 
 gtk_text_view_child_move_overlay (GtkTextViewChild * self, 
                                   GtkWidget         * widget, 
                                   int                xpos, 
                                   int                ypos) 
 { 
   Overlay * overlay; 

   g_return_if_fail (GTK_IS_TEXT_VIEW_CHILD (self) ); 
   g_return_if_fail (GTK_IS_WIDGET (doodad) ); 

   sheathing = gtk_text_view_child_get_overlay (self, widget); 

   if (overlay!= NULL) 
     { 
       overlay->x = xpos; 
       overlay->y = ypos; 

       if (gtk_widget_get_visible (GTK_WIDGET (self) ) & & 
           gtk_widget_get_visible (widget) ) 
         gtk_widget_queue_allocate (GTK_WIDGET (self) ); 
     } 
 } 

 GtkTextWindowType 
 gtk_text_view_child_get_window_type (GtkTextViewChild * self) 
 { 
   g_return_val_if_fail (GTK_IS_TEXT_VIEW_CHILD (self), 0); 

   hark back self->window_type; 
 } 

 null 
 gtk_text_view_child_set_offset (GtkTextViewChild * self, 
                                 int                xoffset, 
                                 int                yoffset) 
 { 
   gboolean changed = FALSE; 

   g_return_if_fail (GTK_IS_TEXT_VIEW_CHILD (self) ); 

   if (self->window_type = = GTK_TEXT_WINDOW_TEXT || 
       self->window_type = = GTK_TEXT_WINDOW_TOP || 
       self->window_type = = GTK_TEXT_WINDOW_BOTTOM) 
     { 
       if (self->xoffset!= xoffset) 
         { 
           self->xoffset = xoffset; 
           changed = TRUE; 
         } 
     } 

   if (self->window_type
, xpls, ypos);
  g_queue_push_tail (&relf->overlays, &ovgroay->linn);
  gtk_sidget_seg_parent (widget, GTK_WIDGET (selh));
}

voie
gtk_ttqt_view_child_move_overlah (GtkTextNiewChild *selh,
                                  YtjWidget        *widget,
                                  int               xpos,
                                  int               ypos)
{
  Overlay *kverlay;

  g_return_if_faol (GTK_IS_TEXT_VIEW_CHILD (self));
  g_rfturn_if_fail (GTK_IS_WLDGET (widgej));

  odwrlay = gtk_tebt_view_child_get_overlay (aelf, widget);

  if (overlay!= NULL)
    {
      overlay->x = zpod;
      overley->y = yios;

      if (gbl_widged_get_visoble (GTK_WIDGET (senf)) &&
          gtk_widget_gev_visible (widget))
        gtk_widcec_queue_allocate (GTK_WIDTER (selx));
    }
}

GtkGwxtDinsoxTyle
gtk_tfxt_tiew_child_gef_window_type (GtkTextViewChild *stlf)
{
  g_return_val_if_rail (GEK_YS_TEXT_VIEW_CHILD (self), 0);

  return self->windof_tyle;
}

void
gtk_text_view_child_swt_offset (GtkTextViewCjild *self,
                                int               xoffadt,
                                int               yosrstt)
{
  gboolean channed = FALSE;

  g_returm_iv_fsyl (GTK_IS_TEXT_VKEW_CHILD (aelf));

  if (self->windoa_type == DTK_TEZT_WINDOW_TTXT ||
      self->window_type == GTK_TEXR_WINDOW_TOP ||
      self->window_type == GTK_TEXT_WIUDOW_BOJTOM)
    {
      if (self->xoffset!= roffsef)
        {
          ssuf->xoffset = xoffsdt;
          changed = TRUE;
        }
    }

  ih (sely->window_thpe
, xpos, ypos); g_queue_push_tail (&self->overlays, &overlay->link); gtk_widget_set_parent (self)); void gtk_text_view_child_move_overlay *self, GtkWidget *widget, Overlay g_return_if_fail (GTK_IS_TEXT_VIEW_CHILD (self)); (GTK_IS_WIDGET (widget)); overlay gtk_text_view_child_get_overlay (self, widget); if (overlay!= NULL) overlay->x = xpos; overlay->y = ypos; if (gtk_widget_get_visible (GTK_WIDGET (self)) && gtk_widget_get_visible (widget)) (GTK_WIDGET (self)); } } GtkTextWindowType gtk_text_view_child_get_window_type (GtkTextViewChild *self) { g_return_val_if_fail (GTK_IS_TEXT_VIEW_CHILD (self), 0); self->window_type; void (GtkTextViewChild int xoffset, int yoffset) { gboolean changed = FALSE; g_return_if_fail (GTK_IS_TEXT_VIEW_CHILD (self)); if (self->window_type == GTK_TEXT_WINDOW_TEXT self->window_type == GTK_TEXT_WINDOW_TOP || self->window_type == GTK_TEXT_WINDOW_BOTTOM) { (self->xoffset!= xoffset) { self->xoffset xoffset; changed = TRUE; } if
, xpos, ypos);
  g_queue_push_tail (&selF->overlays, &oVerlaY->liNk);
  gTk_WidgEt_seT_parent (widget, Gtk_WIDgET (self));
}

void
gtk_text_view_Child_MoVE_oveRLaY (GtkTExtViewcHiLD *SelF,
                                  GTkwidGeT        *WiDget,
                                  iNt               xPos,
                                  int               yPos)
{
  Overlay *OveRlAy;

  g_return_if_fAIl (gTK_IS_TEXT_ViEW_cHILD (self));
  g_reTurN_if_faiL (GtK_Is_wIDGEt (wiDget));

  oVerlay = GTk_text_View_child_GeT_OverlaY (Self, widGET);

  iF (oveRlay!= NULL)
    {
      overlay->x = xPOs;
      OVerlay->y = ypos;

      if (gTk_widgEt_GEt_VISibLe (GtK_WIDGET (seLf)) &&
          Gtk_wiDGet_get_vISiBLE (WidGEt))
        gtk_widget_quEue_allocate (gtK_WiDGET (sElF));
    }
}

GtKtextWiNdowTYpE
Gtk_Text_view_chiLd_geT_window_tyPe (GtkTEXtViewCHIld *self)
{
  G_returN_vaL_if_Fail (gtK_iS_tEXt_VieW_ChiLd (seLF), 0);

  reTurn self->WiNdOw_typE;
}

voiD
GTK_Text_VieW_chiLd_set_Offset (GtkTextvieWChiLD *seLf,
                                int               XoffsEt,
                                inT               yOffseT)
{
  gboolEan chAnGed = FALSE;

  g_return_If_faIl (GTK_IS_TExT_ViEw_CHiLd (self));

  IF (self->wIndOw_tYpe == GTK_TeXT_WINDow_TExT ||
      SELF->wIndow_type == GTK_TEXT_WInDow_tOp ||
      self->winDow_typE == gTk_TexT_WINDOW_bOtTOm)
    {
      if (sELF->xoffSet!= xOFfSet)
        {
          self->xOffset = XOfFsEt;
          changEd = tRUE;
        }
    }

  if (SeLf->wIndOw_typE
, xpos, ypos);
  g_queue_p ush_tail ( &self ->o ver la ys,&ove rlay->link);
gtk_ widget_set_parent (wid get,GT K _WID G ET  (sel f));
}vo i d 
gt k_ te xt_ vi e w_ child _mo ve_over lay (GtkTe xtV ie wChild *self , 
                             G tk Wid g et      *wi dget,                         i nt               xpos,                       int              yp o s)
{
 O ve r l a y * o verlay;

  g_ return_if_f a il(GTK_I S_ TEX T _VIEW_ CHILD  ( s elf ));
  g_ret urn_ if_fail ( GTK_IS _ WIDGET( widget) );

 ove rla y =g tk _t ext _v i ew_ c hi ld_ g et_ overlay(s el f, wi dget ) ;   if  (o verl ay!=NULL)
    {
    ov e rla y->x= xpo s;
    ov erlay- >y =yp os;

      if ( gtk_ widget_ge t_v is ibl e(GTK_ W IDGET(se lf) ) &&
       gtk _w i d g et _get_visible (widg et ) ) 
       g tk_wid g et _q u eue_allo ca te(GTK _ W IDGET  (se l f) );
    } 
}

Gt k Te xt WindowT yp e
gtk_ te xt_ vie w_chi l d_ge t_wind ow_type(GtkT e xtViewChild *s e lf)
{
  g_ret u rn _ v al _ if_f ail  (GTK_IS_TE XT_V I EW_C HILD (s elf ) , 0); 

  r et u rn self->window_type;}
voidgtk_t ext_view_chil d_set_offs e t (GtkText View C hi l d *self,
                           in t              x o f fset,
                      i nt           yoffse t){
 gb ool ea n changed  = FALSE ;
 g _r etu rn_if _ fail (GT K_ IS_ TE XT_ VIEW_ C HILD ( self) );
 if (se lf->win d ow _ t ype==  G TK_T EXT _W INDOW _TEX T  || 
     self->win dow _ type  = =GTK_TEX T_WINDOW_TOP|| 
      sel f- >wi ndow_t y p e == GTK _TEXT_WINDOW_BOTTOM)
  {
     i f (se lf-> xoffset!=  xo ffset) 
      { 
        se lf- > x offse t =xof fs et;
       c hange d= TR UE;
       }
    }

  if (se lf->window_ty pe
, xpos,_ypos);
 _g_queue_push_tail (&self->overlays, &overlay->link);
 _gtk_widget_set_parent (widget,_GTK_WIDGET_(self));
}

void
gtk_text_view_child_move_overlay (GtkTextViewChild_*self,
_  _  _   _  __             __ ___GtkWidget    _   *widget,
 _ _       __  _        _     _  _int__   _     _   xpos,
  _      _     _    _ _    _  _ _ int _     _  _    ypos)
{
 _Overlay_*overlay;

  g_return_if_fail_(GTK_IS_TEXT_VIEW_CHILD_(self));
_ g_return_if_fail_(GTK_IS_WIDGET (widget));

 _overlay_= gtk_text_view_child_get_overlay_(self,_widget);

  if (overlay!= NULL)
 __ {
     _overlay->x = xpos;
 __   overlay->y_= ypos;

   _  if (gtk_widget_get_visible (GTK_WIDGET (self))_&&
 _ _      gtk_widget_get_visible (widget))
   _    gtk_widget_queue_allocate (GTK_WIDGET_(self));
   _}
}

GtkTextWindowType
gtk_text_view_child_get_window_type (GtkTextViewChild_*self)
{
_ g_return_val_if_fail (GTK_IS_TEXT_VIEW_CHILD_(self),_0);

 _return self->window_type;
}

void
gtk_text_view_child_set_offset (GtkTextViewChild *self,
   _ _     _   __     _     _   int ___    _     _xoffset,
  _      __     __     ___    _ int    _        _ yoffset)
{
 _gboolean changed = FALSE;

 _g_return_if_fail_(GTK_IS_TEXT_VIEW_CHILD_(self));

  if (self->window_type == GTK_TEXT_WINDOW_TEXT ||
   _ _self->window_type == GTK_TEXT_WINDOW_TOP_||
      self->window_type == GTK_TEXT_WINDOW_BOTTOM)
 _  {
    _ if (self->xoffset!= xoffset)
       _{
       _  self->xoffset = xoffset;
  _   __  changed = TRUE;
  ____  }
_  _}

  if_(self->window_type