~ubuntu-branches/ubuntu/quantal/gtkmm3.0/quantal

« back to all changes in this revision

Viewing changes to gtk/gtkmm/entrycompletion.cc

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-28 09:25:06 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20120928092506-9h63ais5o750a8sk
Tags: 3.5.13-0ubuntu1
* New upstream release
* debian/control:
  - Bump build-depends on libglibmm-2.4-dev, libgtk-3-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include <gtkmm/private/entrycompletion_p.h>
8
8
 
9
9
 
10
 
// -*- c++ -*-
11
 
/* $Id: entrycompletion.ccg,v 1.13 2006/07/19 16:58:50 murrayc Exp $ */
12
 
 
13
10
/* Copyright 2003 The gtkmm Development Team
14
11
 *
15
12
 * This library is free software; you can redistribute it and/or
629
626
 
630
627
void EntryCompletion::set_model(const Glib::RefPtr<TreeModel>& model)
631
628
{
632
 
  gtk_entry_completion_set_model(gobj(), Glib::unwrap(model)); 
 
629
  gtk_entry_completion_set_model(gobj(), Glib::unwrap(model));
633
630
}
634
631
 
635
632
Glib::RefPtr<TreeModel> EntryCompletion::get_model()
636
633
{
637
 
 
638
634
  Glib::RefPtr<TreeModel> retvalue = Glib::wrap(gtk_entry_completion_get_model(gobj()));
639
635
  if(retvalue)
640
636
    retvalue->reference(); //The function does not do a ref for us.
641
637
  return retvalue;
642
 
 
643
638
}
644
639
 
645
640
Glib::RefPtr<const TreeModel> EntryCompletion::get_model() const
649
644
 
650
645
void EntryCompletion::set_minimum_key_length(int length)
651
646
{
652
 
  gtk_entry_completion_set_minimum_key_length(gobj(), length); 
 
647
  gtk_entry_completion_set_minimum_key_length(gobj(), length);
653
648
}
654
649
 
655
650
int EntryCompletion::get_minimum_key_length() const
664
659
 
665
660
void EntryCompletion::complete()
666
661
{
667
 
  gtk_entry_completion_complete(gobj()); 
 
662
  gtk_entry_completion_complete(gobj());
668
663
}
669
664
 
670
665
void EntryCompletion::insert_prefix()
671
666
{
672
 
  gtk_entry_completion_insert_prefix(gobj()); 
 
667
  gtk_entry_completion_insert_prefix(gobj());
673
668
}
674
669
 
675
670
void EntryCompletion::delete_action(int index)
676
671
{
677
 
  gtk_entry_completion_delete_action(gobj(), index); 
 
672
  gtk_entry_completion_delete_action(gobj(), index);
678
673
}
679
674
 
680
675
void EntryCompletion::set_inline_completion(bool inline_completion)
681
676
{
682
 
  gtk_entry_completion_set_inline_completion(gobj(), static_cast<int>(inline_completion)); 
 
677
  gtk_entry_completion_set_inline_completion(gobj(), static_cast<int>(inline_completion));
683
678
}
684
679
 
685
680
bool EntryCompletion::get_inline_completion() const
689
684
 
690
685
void EntryCompletion::set_inline_selection(bool inline_selection)
691
686
{
692
 
  gtk_entry_completion_set_inline_selection(gobj(), static_cast<int>(inline_selection)); 
 
687
  gtk_entry_completion_set_inline_selection(gobj(), static_cast<int>(inline_selection));
693
688
}
694
689
 
695
690
bool EntryCompletion::get_inline_selection() const
699
694
 
700
695
void EntryCompletion::set_popup_completion(bool popup_completion)
701
696
{
702
 
  gtk_entry_completion_set_popup_completion(gobj(), static_cast<int>(popup_completion)); 
 
697
  gtk_entry_completion_set_popup_completion(gobj(), static_cast<int>(popup_completion));
703
698
}
704
699
 
705
700
bool EntryCompletion::get_popup_completion() const
709
704
 
710
705
void EntryCompletion::set_popup_set_width(bool popup_set_width)
711
706
{
712
 
  gtk_entry_completion_set_popup_set_width(gobj(), static_cast<int>(popup_set_width)); 
 
707
  gtk_entry_completion_set_popup_set_width(gobj(), static_cast<int>(popup_set_width));
713
708
}
714
709
 
715
710
bool EntryCompletion::get_popup_set_width() const
719
714
 
720
715
void EntryCompletion::set_popup_single_match(bool popup_single_match)
721
716
{
722
 
  gtk_entry_completion_set_popup_single_match(gobj(), static_cast<int>(popup_single_match)); 
 
717
  gtk_entry_completion_set_popup_single_match(gobj(), static_cast<int>(popup_single_match));
723
718
}
724
719
 
725
720
bool EntryCompletion::get_popup_single_match() const
734
729
 
735
730
void EntryCompletion::set_text_column(const TreeModelColumnBase& column)
736
731
{
737
 
  gtk_entry_completion_set_text_column(gobj(), (column).index()); 
 
732
  gtk_entry_completion_set_text_column(gobj(), (column).index());
738
733
}
739
734
 
740
735
void EntryCompletion::set_text_column(int column)
741
736
{
742
 
  gtk_entry_completion_set_text_column(gobj(), column); 
 
737
  gtk_entry_completion_set_text_column(gobj(), column);
743
738
}
744
739
 
745
740
int EntryCompletion::get_text_column() const