Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit d414e32

Browse files
Merge pull request #42 from EPashkin/regen
Regen
2 parents 58acc30 + 8013b8a commit d414e32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+92
-243
lines changed

sourceview-sys/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// This file was generated by gir (f8eb742) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

4-
#![allow(non_camel_case_types, non_upper_case_globals)]
5+
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
56

67
extern crate libc;
78
#[macro_use] extern crate bitflags;

src/auto/buffer.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (f8eb742) from gir-files (77d1f70)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
#[cfg(any(feature = "v3_12", feature = "dox"))]
@@ -525,92 +526,79 @@ impl<O: IsA<Buffer> + IsA<glib::object::Object>> BufferExt for O {
525526

526527
unsafe extern "C" fn highlight_updated_trampoline<P>(this: *mut ffi::GtkSourceBuffer, start: *mut gtk_ffi::GtkTextIter, end: *mut gtk_ffi::GtkTextIter, f: glib_ffi::gpointer)
527528
where P: IsA<Buffer> {
528-
callback_guard!();
529529
let f: &&(Fn(&P, &gtk::TextIter, &gtk::TextIter) + 'static) = transmute(f);
530530
f(&Buffer::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(start), &from_glib_borrow(end))
531531
}
532532

533533
unsafe extern "C" fn redo_trampoline<P>(this: *mut ffi::GtkSourceBuffer, f: glib_ffi::gpointer)
534534
where P: IsA<Buffer> {
535-
callback_guard!();
536535
let f: &&(Fn(&P) + 'static) = transmute(f);
537536
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
538537
}
539538

540539
unsafe extern "C" fn source_mark_updated_trampoline<P>(this: *mut ffi::GtkSourceBuffer, mark: *mut gtk_ffi::GtkTextMark, f: glib_ffi::gpointer)
541540
where P: IsA<Buffer> {
542-
callback_guard!();
543541
let f: &&(Fn(&P, &gtk::TextMark) + 'static) = transmute(f);
544542
f(&Buffer::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(mark))
545543
}
546544

547545
unsafe extern "C" fn undo_trampoline<P>(this: *mut ffi::GtkSourceBuffer, f: glib_ffi::gpointer)
548546
where P: IsA<Buffer> {
549-
callback_guard!();
550547
let f: &&(Fn(&P) + 'static) = transmute(f);
551548
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
552549
}
553550

554551
unsafe extern "C" fn notify_can_redo_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
555552
where P: IsA<Buffer> {
556-
callback_guard!();
557553
let f: &&(Fn(&P) + 'static) = transmute(f);
558554
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
559555
}
560556

561557
unsafe extern "C" fn notify_can_undo_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
562558
where P: IsA<Buffer> {
563-
callback_guard!();
564559
let f: &&(Fn(&P) + 'static) = transmute(f);
565560
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
566561
}
567562

568563
unsafe extern "C" fn notify_highlight_matching_brackets_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
569564
where P: IsA<Buffer> {
570-
callback_guard!();
571565
let f: &&(Fn(&P) + 'static) = transmute(f);
572566
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
573567
}
574568

575569
unsafe extern "C" fn notify_highlight_syntax_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
576570
where P: IsA<Buffer> {
577-
callback_guard!();
578571
let f: &&(Fn(&P) + 'static) = transmute(f);
579572
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
580573
}
581574

582575
#[cfg(any(feature = "v3_14", feature = "dox"))]
583576
unsafe extern "C" fn notify_implicit_trailing_newline_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
584577
where P: IsA<Buffer> {
585-
callback_guard!();
586578
let f: &&(Fn(&P) + 'static) = transmute(f);
587579
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
588580
}
589581

590582
unsafe extern "C" fn notify_language_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
591583
where P: IsA<Buffer> {
592-
callback_guard!();
593584
let f: &&(Fn(&P) + 'static) = transmute(f);
594585
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
595586
}
596587

597588
unsafe extern "C" fn notify_max_undo_levels_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
598589
where P: IsA<Buffer> {
599-
callback_guard!();
600590
let f: &&(Fn(&P) + 'static) = transmute(f);
601591
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
602592
}
603593

604594
unsafe extern "C" fn notify_style_scheme_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
605595
where P: IsA<Buffer> {
606-
callback_guard!();
607596
let f: &&(Fn(&P) + 'static) = transmute(f);
608597
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
609598
}
610599

611600
unsafe extern "C" fn notify_undo_manager_trampoline<P>(this: *mut ffi::GtkSourceBuffer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
612601
where P: IsA<Buffer> {
613-
callback_guard!();
614602
let f: &&(Fn(&P) + 'static) = transmute(f);
615603
f(&Buffer::from_glib_borrow(this).downcast_unchecked())
616604
}

src/auto/completion.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (f8eb742) from gir-files (77d1f70)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use CompletionContext;
@@ -454,105 +455,90 @@ impl<O: IsA<Completion> + IsA<glib::object::Object> + glib::object::ObjectExt> C
454455

455456
unsafe extern "C" fn activate_proposal_trampoline<P>(this: *mut ffi::GtkSourceCompletion, f: glib_ffi::gpointer)
456457
where P: IsA<Completion> {
457-
callback_guard!();
458458
let f: &&(Fn(&P) + 'static) = transmute(f);
459459
f(&Completion::from_glib_borrow(this).downcast_unchecked())
460460
}
461461

462462
unsafe extern "C" fn hide_trampoline<P>(this: *mut ffi::GtkSourceCompletion, f: glib_ffi::gpointer)
463463
where P: IsA<Completion> {
464-
callback_guard!();
465464
let f: &&(Fn(&P) + 'static) = transmute(f);
466465
f(&Completion::from_glib_borrow(this).downcast_unchecked())
467466
}
468467

469468
unsafe extern "C" fn move_cursor_trampoline<P>(this: *mut ffi::GtkSourceCompletion, step: gtk_ffi::GtkScrollStep, num: libc::c_int, f: glib_ffi::gpointer)
470469
where P: IsA<Completion> {
471-
callback_guard!();
472470
let f: &&(Fn(&P, gtk::ScrollStep, i32) + 'static) = transmute(f);
473471
f(&Completion::from_glib_borrow(this).downcast_unchecked(), from_glib(step), num)
474472
}
475473

476474
unsafe extern "C" fn move_page_trampoline<P>(this: *mut ffi::GtkSourceCompletion, step: gtk_ffi::GtkScrollStep, num: libc::c_int, f: glib_ffi::gpointer)
477475
where P: IsA<Completion> {
478-
callback_guard!();
479476
let f: &&(Fn(&P, gtk::ScrollStep, i32) + 'static) = transmute(f);
480477
f(&Completion::from_glib_borrow(this).downcast_unchecked(), from_glib(step), num)
481478
}
482479

483480
unsafe extern "C" fn populate_context_trampoline<P>(this: *mut ffi::GtkSourceCompletion, context: *mut ffi::GtkSourceCompletionContext, f: glib_ffi::gpointer)
484481
where P: IsA<Completion> {
485-
callback_guard!();
486482
let f: &&(Fn(&P, &CompletionContext) + 'static) = transmute(f);
487483
f(&Completion::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(context))
488484
}
489485

490486
unsafe extern "C" fn show_trampoline<P>(this: *mut ffi::GtkSourceCompletion, f: glib_ffi::gpointer)
491487
where P: IsA<Completion> {
492-
callback_guard!();
493488
let f: &&(Fn(&P) + 'static) = transmute(f);
494489
f(&Completion::from_glib_borrow(this).downcast_unchecked())
495490
}
496491

497492
unsafe extern "C" fn notify_accelerators_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
498493
where P: IsA<Completion> {
499-
callback_guard!();
500494
let f: &&(Fn(&P) + 'static) = transmute(f);
501495
f(&Completion::from_glib_borrow(this).downcast_unchecked())
502496
}
503497

504498
unsafe extern "C" fn notify_auto_complete_delay_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
505499
where P: IsA<Completion> {
506-
callback_guard!();
507500
let f: &&(Fn(&P) + 'static) = transmute(f);
508501
f(&Completion::from_glib_borrow(this).downcast_unchecked())
509502
}
510503

511504
unsafe extern "C" fn notify_proposal_page_size_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
512505
where P: IsA<Completion> {
513-
callback_guard!();
514506
let f: &&(Fn(&P) + 'static) = transmute(f);
515507
f(&Completion::from_glib_borrow(this).downcast_unchecked())
516508
}
517509

518510
unsafe extern "C" fn notify_provider_page_size_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
519511
where P: IsA<Completion> {
520-
callback_guard!();
521512
let f: &&(Fn(&P) + 'static) = transmute(f);
522513
f(&Completion::from_glib_borrow(this).downcast_unchecked())
523514
}
524515

525516
unsafe extern "C" fn notify_remember_info_visibility_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
526517
where P: IsA<Completion> {
527-
callback_guard!();
528518
let f: &&(Fn(&P) + 'static) = transmute(f);
529519
f(&Completion::from_glib_borrow(this).downcast_unchecked())
530520
}
531521

532522
unsafe extern "C" fn notify_select_on_show_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
533523
where P: IsA<Completion> {
534-
callback_guard!();
535524
let f: &&(Fn(&P) + 'static) = transmute(f);
536525
f(&Completion::from_glib_borrow(this).downcast_unchecked())
537526
}
538527

539528
unsafe extern "C" fn notify_show_headers_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
540529
where P: IsA<Completion> {
541-
callback_guard!();
542530
let f: &&(Fn(&P) + 'static) = transmute(f);
543531
f(&Completion::from_glib_borrow(this).downcast_unchecked())
544532
}
545533

546534
unsafe extern "C" fn notify_show_icons_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
547535
where P: IsA<Completion> {
548-
callback_guard!();
549536
let f: &&(Fn(&P) + 'static) = transmute(f);
550537
f(&Completion::from_glib_borrow(this).downcast_unchecked())
551538
}
552539

553540
unsafe extern "C" fn notify_view_trampoline<P>(this: *mut ffi::GtkSourceCompletion, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
554541
where P: IsA<Completion> {
555-
callback_guard!();
556542
let f: &&(Fn(&P) + 'static) = transmute(f);
557543
f(&Completion::from_glib_borrow(this).downcast_unchecked())
558544
}

src/auto/completion_context.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (f8eb742) from gir-files (77d1f70)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use Completion;
@@ -116,21 +117,18 @@ impl<O: IsA<CompletionContext> + IsA<glib::object::Object> + glib::object::Objec
116117

117118
unsafe extern "C" fn cancelled_trampoline<P>(this: *mut ffi::GtkSourceCompletionContext, f: glib_ffi::gpointer)
118119
where P: IsA<CompletionContext> {
119-
callback_guard!();
120120
let f: &&(Fn(&P) + 'static) = transmute(f);
121121
f(&CompletionContext::from_glib_borrow(this).downcast_unchecked())
122122
}
123123

124124
unsafe extern "C" fn notify_activation_trampoline<P>(this: *mut ffi::GtkSourceCompletionContext, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
125125
where P: IsA<CompletionContext> {
126-
callback_guard!();
127126
let f: &&(Fn(&P) + 'static) = transmute(f);
128127
f(&CompletionContext::from_glib_borrow(this).downcast_unchecked())
129128
}
130129

131130
unsafe extern "C" fn notify_completion_trampoline<P>(this: *mut ffi::GtkSourceCompletionContext, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
132131
where P: IsA<CompletionContext> {
133-
callback_guard!();
134132
let f: &&(Fn(&P) + 'static) = transmute(f);
135133
f(&CompletionContext::from_glib_borrow(this).downcast_unchecked())
136134
}

src/auto/completion_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (f8eb742) from gir-files (77d1f70)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use ffi;
@@ -85,7 +86,6 @@ impl<O: IsA<CompletionInfo> + IsA<glib::object::Object> + glib::object::ObjectEx
8586

8687
unsafe extern "C" fn before_show_trampoline<P>(this: *mut ffi::GtkSourceCompletionInfo, f: glib_ffi::gpointer)
8788
where P: IsA<CompletionInfo> {
88-
callback_guard!();
8989
let f: &&(Fn(&P) + 'static) = transmute(f);
9090
f(&CompletionInfo::from_glib_borrow(this).downcast_unchecked())
9191
}

src/auto/completion_item.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (f8eb742) from gir-files (77d1f70)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use CompletionProposal;
@@ -295,50 +296,43 @@ impl<O: IsA<CompletionItem> + IsA<glib::object::Object>> CompletionItemExt for O
295296
#[cfg(any(feature = "v3_18", feature = "dox"))]
296297
unsafe extern "C" fn notify_gicon_trampoline<P>(this: *mut ffi::GtkSourceCompletionItem, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
297298
where P: IsA<CompletionItem> {
298-
callback_guard!();
299299
let f: &&(Fn(&P) + 'static) = transmute(f);
300300
f(&CompletionItem::from_glib_borrow(this).downcast_unchecked())
301301
}
302302

303303
unsafe extern "C" fn notify_icon_trampoline<P>(this: *mut ffi::GtkSourceCompletionItem, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
304304
where P: IsA<CompletionItem> {
305-
callback_guard!();
306305
let f: &&(Fn(&P) + 'static) = transmute(f);
307306
f(&CompletionItem::from_glib_borrow(this).downcast_unchecked())
308307
}
309308

310309
#[cfg(any(feature = "v3_18", feature = "dox"))]
311310
unsafe extern "C" fn notify_icon_name_trampoline<P>(this: *mut ffi::GtkSourceCompletionItem, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
312311
where P: IsA<CompletionItem> {
313-
callback_guard!();
314312
let f: &&(Fn(&P) + 'static) = transmute(f);
315313
f(&CompletionItem::from_glib_borrow(this).downcast_unchecked())
316314
}
317315

318316
unsafe extern "C" fn notify_info_trampoline<P>(this: *mut ffi::GtkSourceCompletionItem, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
319317
where P: IsA<CompletionItem> {
320-
callback_guard!();
321318
let f: &&(Fn(&P) + 'static) = transmute(f);
322319
f(&CompletionItem::from_glib_borrow(this).downcast_unchecked())
323320
}
324321

325322
unsafe extern "C" fn notify_label_trampoline<P>(this: *mut ffi::GtkSourceCompletionItem, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
326323
where P: IsA<CompletionItem> {
327-
callback_guard!();
328324
let f: &&(Fn(&P) + 'static) = transmute(f);
329325
f(&CompletionItem::from_glib_borrow(this).downcast_unchecked())
330326
}
331327

332328
unsafe extern "C" fn notify_markup_trampoline<P>(this: *mut ffi::GtkSourceCompletionItem, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
333329
where P: IsA<CompletionItem> {
334-
callback_guard!();
335330
let f: &&(Fn(&P) + 'static) = transmute(f);
336331
f(&CompletionItem::from_glib_borrow(this).downcast_unchecked())
337332
}
338333

339334
unsafe extern "C" fn notify_text_trampoline<P>(this: *mut ffi::GtkSourceCompletionItem, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
340335
where P: IsA<CompletionItem> {
341-
callback_guard!();
342336
let f: &&(Fn(&P) + 'static) = transmute(f);
343337
f(&CompletionItem::from_glib_borrow(this).downcast_unchecked())
344338
}

src/auto/completion_proposal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (f8eb742) from gir-files (77d1f70)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use ffi;
@@ -132,7 +133,6 @@ impl<O: IsA<CompletionProposal> + IsA<glib::object::Object> + glib::object::Obje
132133

133134
unsafe extern "C" fn changed_trampoline<P>(this: *mut ffi::GtkSourceCompletionProposal, f: glib_ffi::gpointer)
134135
where P: IsA<CompletionProposal> {
135-
callback_guard!();
136136
let f: &&(Fn(&P) + 'static) = transmute(f);
137137
f(&CompletionProposal::from_glib_borrow(this).downcast_unchecked())
138138
}

src/auto/completion_provider.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (f8eb742) from gir-files (77d1f70)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use CompletionActivation;

0 commit comments

Comments
 (0)