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

« back to all changes in this revision

Viewing changes to gtk/gtkmm/action.cc

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-03-01 23:42:36 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120301234236-12w6m0hkomhi7h53
Tags: 3.3.16-0ubuntu1
* New upstream version
* debian/control.in: updated the glib requirement

Show diffs side-by-side

added added

removed removed

Lines of Context:
433
433
 
434
434
void Action::set_sensitive(bool sensitive)
435
435
{
436
 
gtk_action_set_sensitive(gobj(), static_cast<int>(sensitive)); 
 
436
  gtk_action_set_sensitive(gobj(), static_cast<int>(sensitive)); 
437
437
}
438
438
 
439
439
bool Action::is_visible() const
448
448
 
449
449
void Action::set_visible(bool visible)
450
450
{
451
 
gtk_action_set_visible(gobj(), static_cast<int>(visible)); 
 
451
  gtk_action_set_visible(gobj(), static_cast<int>(visible)); 
452
452
}
453
453
 
454
454
void Action::activate()
455
455
{
456
 
gtk_action_activate(gobj()); 
 
456
  gtk_action_activate(gobj()); 
457
457
}
458
458
 
459
459
Image* Action::create_icon(IconSize icon_size)
488
488
 
489
489
void Action::connect_accelerator()
490
490
{
491
 
gtk_action_connect_accelerator(gobj()); 
 
491
  gtk_action_connect_accelerator(gobj()); 
492
492
}
493
493
 
494
494
void Action::disconnect_accelerator()
495
495
{
496
 
gtk_action_disconnect_accelerator(gobj()); 
 
496
  gtk_action_disconnect_accelerator(gobj()); 
497
497
}
498
498
 
499
499
Glib::ustring Action::get_accel_path() const
503
503
 
504
504
void Action::set_accel_path(const Glib::ustring& accel_path)
505
505
{
506
 
gtk_action_set_accel_path(gobj(), accel_path.c_str()); 
 
506
  gtk_action_set_accel_path(gobj(), accel_path.c_str()); 
507
507
}
508
508
 
509
509
void Action::set_accel_group(const Glib::RefPtr<AccelGroup>& accel_group)
510
510
{
511
 
gtk_action_set_accel_group(gobj(), Glib::unwrap(accel_group)); 
 
511
  gtk_action_set_accel_group(gobj(), Glib::unwrap(accel_group)); 
512
512
}
513
513
 
514
514
void Action::set_label(const Glib::ustring& label)
515
515
{
516
 
gtk_action_set_label(gobj(), label.c_str()); 
 
516
  gtk_action_set_label(gobj(), label.c_str()); 
517
517
}
518
518
 
519
519
Glib::ustring Action::get_label() const
523
523
 
524
524
void Action::set_short_label(const Glib::ustring& short_label)
525
525
{
526
 
gtk_action_set_short_label(gobj(), short_label.c_str()); 
 
526
  gtk_action_set_short_label(gobj(), short_label.c_str()); 
527
527
}
528
528
 
529
529
Glib::ustring Action::get_short_label() const
533
533
 
534
534
void Action::set_tooltip(const Glib::ustring& tooltip)
535
535
{
536
 
gtk_action_set_tooltip(gobj(), tooltip.c_str()); 
 
536
  gtk_action_set_tooltip(gobj(), tooltip.c_str()); 
537
537
}
538
538
 
539
539
Glib::ustring Action::get_tooltip() const
543
543
 
544
544
void Action::set_stock_id(const StockID& stock_id)
545
545
{
546
 
gtk_action_set_stock_id(gobj(), (stock_id).get_c_str()); 
 
546
  gtk_action_set_stock_id(gobj(), (stock_id).get_c_str()); 
547
547
}
548
548
 
549
549
StockID Action::get_stock_id() const
553
553
 
554
554
void Action::set_gicon(const Glib::RefPtr<Gio::Icon>& icon)
555
555
{
556
 
gtk_action_set_gicon(gobj(), const_cast<GIcon*>(Glib::unwrap<Gio::Icon>(icon))); 
 
556
  gtk_action_set_gicon(gobj(), const_cast<GIcon*>(Glib::unwrap<Gio::Icon>(icon))); 
557
557
}
558
558
 
559
559
Glib::RefPtr<Gio::Icon> Action::get_gicon()
573
573
 
574
574
void Action::set_icon_name(const Glib::ustring& icon_name)
575
575
{
576
 
gtk_action_set_icon_name(gobj(), icon_name.c_str()); 
 
576
  gtk_action_set_icon_name(gobj(), icon_name.c_str()); 
577
577
}
578
578
 
579
579
Glib::ustring Action::get_icon_name() const
583
583
 
584
584
void Action::set_visible_horizontal(bool visible_horizontal)
585
585
{
586
 
gtk_action_set_visible_horizontal(gobj(), static_cast<int>(visible_horizontal)); 
 
586
  gtk_action_set_visible_horizontal(gobj(), static_cast<int>(visible_horizontal)); 
587
587
}
588
588
 
589
589
bool Action::get_visible_horizontal() const
593
593
 
594
594
void Action::set_visible_vertical(bool visible_vertical)
595
595
{
596
 
gtk_action_set_visible_vertical(gobj(), static_cast<int>(visible_vertical)); 
 
596
  gtk_action_set_visible_vertical(gobj(), static_cast<int>(visible_vertical)); 
597
597
}
598
598
 
599
599
bool Action::get_visible_vertical() const
603
603
 
604
604
void Action::set_is_important(bool is_important)
605
605
{
606
 
gtk_action_set_is_important(gobj(), static_cast<int>(is_important)); 
 
606
  gtk_action_set_is_important(gobj(), static_cast<int>(is_important)); 
607
607
}
608
608
 
609
609
bool Action::get_is_important() const
613
613
 
614
614
void Action::set_always_show_image(bool always_show)
615
615
{
616
 
gtk_action_set_always_show_image(gobj(), static_cast<int>(always_show)); 
 
616
  gtk_action_set_always_show_image(gobj(), static_cast<int>(always_show)); 
617
617
}
618
618
 
619
619
bool Action::get_always_show_image() const
623
623
 
624
624
void Action::block_activate()
625
625
{
626
 
gtk_action_block_activate(gobj()); 
 
626
  gtk_action_block_activate(gobj()); 
627
627
}
628
628
 
629
629
void Action::unblock_activate()
630
630
{
631
 
gtk_action_unblock_activate(gobj()); 
 
631
  gtk_action_unblock_activate(gobj()); 
632
632
}
633
633
 
634
634
 
638
638
}
639
639
 
640
640
 
 
641
#ifndef GTKMM_DISABLE_DEPRECATED
 
642
 
641
643
#ifdef GLIBMM_PROPERTIES_ENABLED
642
644
Glib::PropertyProxy_ReadOnly< Glib::ustring > Action::property_name() const
643
645
{
644
646
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "name");
645
647
}
 
648
#endif // GTKMM_DISABLE_DEPRECATED
 
649
 
646
650
#endif //GLIBMM_PROPERTIES_ENABLED
647
651
 
 
652
#ifndef GTKMM_DISABLE_DEPRECATED
 
653
 
648
654
#ifdef GLIBMM_PROPERTIES_ENABLED
649
655
Glib::PropertyProxy< Glib::ustring > Action::property_label() 
650
656
{
651
657
  return Glib::PropertyProxy< Glib::ustring >(this, "label");
652
658
}
 
659
#endif // GTKMM_DISABLE_DEPRECATED
 
660
 
653
661
#endif //GLIBMM_PROPERTIES_ENABLED
654
662
 
655
663
#ifdef GLIBMM_PROPERTIES_ENABLED
659
667
}
660
668
#endif //GLIBMM_PROPERTIES_ENABLED
661
669
 
 
670
#ifndef GTKMM_DISABLE_DEPRECATED
 
671
 
662
672
#ifdef GLIBMM_PROPERTIES_ENABLED
663
673
Glib::PropertyProxy< Glib::ustring > Action::property_short_label() 
664
674
{
665
675
  return Glib::PropertyProxy< Glib::ustring >(this, "short-label");
666
676
}
 
677
#endif // GTKMM_DISABLE_DEPRECATED
 
678
 
667
679
#endif //GLIBMM_PROPERTIES_ENABLED
668
680
 
669
681
#ifdef GLIBMM_PROPERTIES_ENABLED
673
685
}
674
686
#endif //GLIBMM_PROPERTIES_ENABLED
675
687
 
 
688
#ifndef GTKMM_DISABLE_DEPRECATED
 
689
 
676
690
#ifdef GLIBMM_PROPERTIES_ENABLED
677
691
Glib::PropertyProxy< Glib::ustring > Action::property_tooltip() 
678
692
{
679
693
  return Glib::PropertyProxy< Glib::ustring >(this, "tooltip");
680
694
}
 
695
#endif // GTKMM_DISABLE_DEPRECATED
 
696
 
681
697
#endif //GLIBMM_PROPERTIES_ENABLED
682
698
 
683
699
#ifdef GLIBMM_PROPERTIES_ENABLED
687
703
}
688
704
#endif //GLIBMM_PROPERTIES_ENABLED
689
705
 
 
706
#ifndef GTKMM_DISABLE_DEPRECATED
 
707
 
690
708
#ifdef GLIBMM_PROPERTIES_ENABLED
691
709
Glib::PropertyProxy< StockID > Action::property_stock_id() 
692
710
{
693
711
  return Glib::PropertyProxy< StockID >(this, "stock-id");
694
712
}
 
713
#endif // GTKMM_DISABLE_DEPRECATED
 
714
 
695
715
#endif //GLIBMM_PROPERTIES_ENABLED
696
716
 
697
717
#ifdef GLIBMM_PROPERTIES_ENABLED
701
721
}
702
722
#endif //GLIBMM_PROPERTIES_ENABLED
703
723
 
 
724
#ifndef GTKMM_DISABLE_DEPRECATED
 
725
 
704
726
#ifdef GLIBMM_PROPERTIES_ENABLED
705
727
Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> > Action::property_gicon() 
706
728
{
707
729
  return Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> >(this, "gicon");
708
730
}
 
731
#endif // GTKMM_DISABLE_DEPRECATED
 
732
 
709
733
#endif //GLIBMM_PROPERTIES_ENABLED
710
734
 
711
735
#ifdef GLIBMM_PROPERTIES_ENABLED
715
739
}
716
740
#endif //GLIBMM_PROPERTIES_ENABLED
717
741
 
 
742
#ifndef GTKMM_DISABLE_DEPRECATED
 
743
 
718
744
#ifdef GLIBMM_PROPERTIES_ENABLED
719
745
Glib::PropertyProxy< Glib::ustring > Action::property_icon_name() 
720
746
{
721
747
  return Glib::PropertyProxy< Glib::ustring >(this, "icon-name");
722
748
}
 
749
#endif // GTKMM_DISABLE_DEPRECATED
 
750
 
723
751
#endif //GLIBMM_PROPERTIES_ENABLED
724
752
 
725
753
#ifdef GLIBMM_PROPERTIES_ENABLED
729
757
}
730
758
#endif //GLIBMM_PROPERTIES_ENABLED
731
759
 
 
760
#ifndef GTKMM_DISABLE_DEPRECATED
 
761
 
732
762
#ifdef GLIBMM_PROPERTIES_ENABLED
733
763
Glib::PropertyProxy< bool > Action::property_visible_horizontal() 
734
764
{
735
765
  return Glib::PropertyProxy< bool >(this, "visible-horizontal");
736
766
}
 
767
#endif // GTKMM_DISABLE_DEPRECATED
 
768
 
737
769
#endif //GLIBMM_PROPERTIES_ENABLED
738
770
 
739
771
#ifdef GLIBMM_PROPERTIES_ENABLED
743
775
}
744
776
#endif //GLIBMM_PROPERTIES_ENABLED
745
777
 
 
778
#ifndef GTKMM_DISABLE_DEPRECATED
 
779
 
746
780
#ifdef GLIBMM_PROPERTIES_ENABLED
747
781
Glib::PropertyProxy< bool > Action::property_visible_vertical() 
748
782
{
749
783
  return Glib::PropertyProxy< bool >(this, "visible-vertical");
750
784
}
 
785
#endif // GTKMM_DISABLE_DEPRECATED
 
786
 
751
787
#endif //GLIBMM_PROPERTIES_ENABLED
752
788
 
753
789
#ifdef GLIBMM_PROPERTIES_ENABLED
757
793
}
758
794
#endif //GLIBMM_PROPERTIES_ENABLED
759
795
 
 
796
#ifndef GTKMM_DISABLE_DEPRECATED
 
797
 
760
798
#ifdef GLIBMM_PROPERTIES_ENABLED
761
799
Glib::PropertyProxy< bool > Action::property_visible_overflown() 
762
800
{
763
801
  return Glib::PropertyProxy< bool >(this, "visible-overflown");
764
802
}
 
803
#endif // GTKMM_DISABLE_DEPRECATED
 
804
 
765
805
#endif //GLIBMM_PROPERTIES_ENABLED
766
806
 
767
807
#ifdef GLIBMM_PROPERTIES_ENABLED
771
811
}
772
812
#endif //GLIBMM_PROPERTIES_ENABLED
773
813
 
 
814
#ifndef GTKMM_DISABLE_DEPRECATED
 
815
 
774
816
#ifdef GLIBMM_PROPERTIES_ENABLED
775
817
Glib::PropertyProxy< bool > Action::property_is_important() 
776
818
{
777
819
  return Glib::PropertyProxy< bool >(this, "is-important");
778
820
}
 
821
#endif // GTKMM_DISABLE_DEPRECATED
 
822
 
779
823
#endif //GLIBMM_PROPERTIES_ENABLED
780
824
 
781
825
#ifdef GLIBMM_PROPERTIES_ENABLED
785
829
}
786
830
#endif //GLIBMM_PROPERTIES_ENABLED
787
831
 
 
832
#ifndef GTKMM_DISABLE_DEPRECATED
 
833
 
788
834
#ifdef GLIBMM_PROPERTIES_ENABLED
789
835
Glib::PropertyProxy< bool > Action::property_hide_if_empty() 
790
836
{
791
837
  return Glib::PropertyProxy< bool >(this, "hide-if-empty");
792
838
}
 
839
#endif // GTKMM_DISABLE_DEPRECATED
 
840
 
793
841
#endif //GLIBMM_PROPERTIES_ENABLED
794
842
 
795
843
#ifdef GLIBMM_PROPERTIES_ENABLED
799
847
}
800
848
#endif //GLIBMM_PROPERTIES_ENABLED
801
849
 
 
850
#ifndef GTKMM_DISABLE_DEPRECATED
 
851
 
802
852
#ifdef GLIBMM_PROPERTIES_ENABLED
803
853
Glib::PropertyProxy< bool > Action::property_sensitive() 
804
854
{
805
855
  return Glib::PropertyProxy< bool >(this, "sensitive");
806
856
}
 
857
#endif // GTKMM_DISABLE_DEPRECATED
 
858
 
807
859
#endif //GLIBMM_PROPERTIES_ENABLED
808
860
 
809
861
#ifdef GLIBMM_PROPERTIES_ENABLED
813
865
}
814
866
#endif //GLIBMM_PROPERTIES_ENABLED
815
867
 
 
868
#ifndef GTKMM_DISABLE_DEPRECATED
 
869
 
816
870
#ifdef GLIBMM_PROPERTIES_ENABLED
817
871
Glib::PropertyProxy< bool > Action::property_visible() 
818
872
{
819
873
  return Glib::PropertyProxy< bool >(this, "visible");
820
874
}
 
875
#endif // GTKMM_DISABLE_DEPRECATED
 
876
 
821
877
#endif //GLIBMM_PROPERTIES_ENABLED
822
878
 
823
879
#ifdef GLIBMM_PROPERTIES_ENABLED
827
883
}
828
884
#endif //GLIBMM_PROPERTIES_ENABLED
829
885
 
 
886
#ifndef GTKMM_DISABLE_DEPRECATED
 
887
 
830
888
#ifdef GLIBMM_PROPERTIES_ENABLED
831
889
Glib::PropertyProxy< Glib::RefPtr<ActionGroup> > Action::property_action_group() 
832
890
{
833
891
  return Glib::PropertyProxy< Glib::RefPtr<ActionGroup> >(this, "action-group");
834
892
}
 
893
#endif // GTKMM_DISABLE_DEPRECATED
 
894
 
835
895
#endif //GLIBMM_PROPERTIES_ENABLED
836
896
 
837
897
#ifdef GLIBMM_PROPERTIES_ENABLED
841
901
}
842
902
#endif //GLIBMM_PROPERTIES_ENABLED
843
903
 
 
904
#ifndef GTKMM_DISABLE_DEPRECATED
 
905
 
844
906
#ifdef GLIBMM_PROPERTIES_ENABLED
845
907
Glib::PropertyProxy< bool > Action::property_always_show_image() 
846
908
{
847
909
  return Glib::PropertyProxy< bool >(this, "always-show-image");
848
910
}
 
911
#endif // GTKMM_DISABLE_DEPRECATED
 
912
 
849
913
#endif //GLIBMM_PROPERTIES_ENABLED
850
914
 
851
915
#ifdef GLIBMM_PROPERTIES_ENABLED