~ubuntu-branches/ubuntu/saucy/atkmm1.6/saucy-proposed

« back to all changes in this revision

Viewing changes to atk/atkmm/editabletext.cc

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-28 13:04:34 UTC
  • mfrom: (0.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130528130434-e0esxsm4eo8bn8tf
Tags: 2.22.7-1ubuntu1
* Resynchronize on Debian, remaining diff
* Convert to multiarch (LP: #902703):
  - Pass --libdir with multiarch path to configure
  - Adjust .install files to refer to /usr/lib subdirs
  - Add multiarch Pre-Depends
  - Bump debhelper and cdbs build-deps for ${misc:Pre-Depends} and
    $(DEB_HOST_MULTIARCH) support, respectively
* debian/compat: update to 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 
128
128
  // Call the original underlying C function:
129
129
  if(base && base->set_run_attributes)
130
 
    return (*base->set_run_attributes)(self, attrib_set, start_offset, end_offset);
 
130
  {
 
131
    gboolean retval = (*base->set_run_attributes)(self, attrib_set, start_offset, end_offset);
 
132
    return retval;
 
133
  }
131
134
 
132
135
 
133
136
  typedef gboolean RType;
173
176
 
174
177
  // Call the original underlying C function:
175
178
  if(base && base->set_text_contents)
 
179
  {
176
180
    (*base->set_text_contents)(self, string);
 
181
  }
177
182
 
178
183
}
179
184
void EditableText_Class::insert_text_vfunc_callback(AtkEditableText* self, const gchar* string, gint length, gint* position)
218
223
 
219
224
  // Call the original underlying C function:
220
225
  if(base && base->insert_text)
 
226
  {
221
227
    (*base->insert_text)(self, string, length, position);
 
228
  }
222
229
 
223
230
}
224
231
void EditableText_Class::copy_text_vfunc_callback(AtkEditableText* self, gint start_pos, gint end_pos)
262
269
 
263
270
  // Call the original underlying C function:
264
271
  if(base && base->copy_text)
 
272
  {
265
273
    (*base->copy_text)(self, start_pos, end_pos);
 
274
  }
266
275
 
267
276
}
268
277
void EditableText_Class::cut_text_vfunc_callback(AtkEditableText* self, gint start_pos, gint end_pos)
306
315
 
307
316
  // Call the original underlying C function:
308
317
  if(base && base->cut_text)
 
318
  {
309
319
    (*base->cut_text)(self, start_pos, end_pos);
 
320
  }
310
321
 
311
322
}
312
323
void EditableText_Class::delete_text_vfunc_callback(AtkEditableText* self, gint start_pos, gint end_pos)
350
361
 
351
362
  // Call the original underlying C function:
352
363
  if(base && base->delete_text)
 
364
  {
353
365
    (*base->delete_text)(self, start_pos, end_pos);
 
366
  }
354
367
 
355
368
}
356
369
void EditableText_Class::paste_text_vfunc_callback(AtkEditableText* self, gint position)
393
406
 
394
407
  // Call the original underlying C function:
395
408
  if(base && base->paste_text)
 
409
  {
396
410
    (*base->paste_text)(self, position);
 
411
  }
397
412
 
398
413
}
399
414
 
451
466
 
452
467
void EditableText::set_text_contents(const Glib::ustring& string)
453
468
{
454
 
atk_editable_text_set_text_contents(gobj(), string.c_str()); 
 
469
  atk_editable_text_set_text_contents(gobj(), string.c_str());
455
470
}
456
471
 
457
472
void EditableText::insert_text(const Glib::ustring& string, int length, int& position)
458
473
{
459
 
atk_editable_text_insert_text(gobj(), string.c_str(), length, &(position)); 
 
474
  atk_editable_text_insert_text(gobj(), string.c_str(), length, &(position));
460
475
}
461
476
 
462
477
void EditableText::copy_text(int start_pos, int end_pos)
463
478
{
464
 
atk_editable_text_copy_text(gobj(), start_pos, end_pos); 
 
479
  atk_editable_text_copy_text(gobj(), start_pos, end_pos);
465
480
}
466
481
 
467
482
void EditableText::cut_text(int start_pos, int end_pos)
468
483
{
469
 
atk_editable_text_cut_text(gobj(), start_pos, end_pos); 
 
484
  atk_editable_text_cut_text(gobj(), start_pos, end_pos);
470
485
}
471
486
 
472
487
void EditableText::delete_text(int start_pos, int end_pos)
473
488
{
474
 
atk_editable_text_delete_text(gobj(), start_pos, end_pos); 
 
489
  atk_editable_text_delete_text(gobj(), start_pos, end_pos);
475
490
}
476
491
 
477
492
void EditableText::paste_text(int position)
478
493
{
479
 
atk_editable_text_paste_text(gobj(), position); 
 
494
  atk_editable_text_paste_text(gobj(), position);
480
495
}
481
496
 
482
497
 
488
503
)  );
489
504
 
490
505
  if(base && base->set_run_attributes)
491
 
    return (*base->set_run_attributes)(gobj(),attrib_set,start_offset,end_offset);
 
506
  {
 
507
    bool retval((*base->set_run_attributes)(gobj(),attrib_set,start_offset,end_offset));
 
508
    return retval;
 
509
  }
492
510
 
493
511
  typedef bool RType;
494
512
  return RType();
501
519
)  );
502
520
 
503
521
  if(base && base->set_text_contents)
 
522
  {
504
523
    (*base->set_text_contents)(gobj(),string.c_str());
 
524
  }
505
525
}
506
526
void Atk::EditableText::insert_text_vfunc(const Glib::ustring& string, int length, int& position) 
507
527
{
511
531
)  );
512
532
 
513
533
  if(base && base->insert_text)
 
534
  {
514
535
    (*base->insert_text)(gobj(),string.c_str(),length,&(position));
 
536
  }
515
537
}
516
538
void Atk::EditableText::copy_text_vfunc(int start_pos, int end_pos) 
517
539
{
521
543
)  );
522
544
 
523
545
  if(base && base->copy_text)
 
546
  {
524
547
    (*base->copy_text)(gobj(),start_pos,end_pos);
 
548
  }
525
549
}
526
550
void Atk::EditableText::cut_text_vfunc(int start_pos, int end_pos) 
527
551
{
531
555
)  );
532
556
 
533
557
  if(base && base->cut_text)
 
558
  {
534
559
    (*base->cut_text)(gobj(),start_pos,end_pos);
 
560
  }
535
561
}
536
562
void Atk::EditableText::delete_text_vfunc(int start_pos, int end_pos) 
537
563
{
541
567
)  );
542
568
 
543
569
  if(base && base->delete_text)
 
570
  {
544
571
    (*base->delete_text)(gobj(),start_pos,end_pos);
 
572
  }
545
573
}
546
574
void Atk::EditableText::paste_text_vfunc(int position) 
547
575
{
551
579
)  );
552
580
 
553
581
  if(base && base->paste_text)
 
582
  {
554
583
    (*base->paste_text)(gobj(),position);
 
584
  }
555
585
}
556
586
 
557
587