~cmiller/ubuntu/trusty/icewm/translations-cause-crash-lp447883

« back to all changes in this revision

Viewing changes to src/wmprog.cc

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2008-03-10 21:24:25 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080310212425-562btgm3vbwzvhu0
Tags: 1.2.35-1
* New upstream release with one fix from CVS
* Automatic linking with gcc -lsupc++ fixed (failed in recent versions),
  also using "-Wl,--as-needed"
* Documentation update - README.Debian reordered by importance
* Changed font defaults in Xft specifications to consider Bitstream Vera
  family as alternative font (closes: #360060, #319191, #349952, #456463),
  also documented how to configure alternative fonts
* Added Bernhard's iconify_on_wm_hints as dpatch (closes: #428566, #389919)
* force use of bash in upstream's Makefile to keep the installation
  magic as-is (closes: #459181)

Show diffs side-by-side

added added

removed removed

Lines of Context:
726
726
 
727
727
    if (itemCount())
728
728
        addSeparator();
729
 
#ifdef CONFIG_WINLIST
730
 
    int const oldItemCount(itemCount());
731
 
#endif
732
 
#if 1
733
 
    if (showPrograms) {
734
 
        ObjectMenu *programs = new MenuFileMenu("programs", 0);
735
 
        ///    if (programs->itemCount() > 0)
736
 
        addSubmenu(_("Programs"), 0, programs);
737
 
    }
738
 
#endif
739
729
 
740
730
/// TODO #warning "make this into a menuprog (ala gnome.cc), and use mime"
741
731
    if (openCommand && openCommand[0]) {
761
751
#endif
762
752
            }
763
753
        }
764
 
    }
 
754
        addSeparator();
 
755
    }
 
756
 
 
757
#ifdef CONFIG_WINLIST
 
758
    int const oldItemCount(itemCount());
 
759
#endif
 
760
 
 
761
    if (showPrograms) {
 
762
        ObjectMenu *programs = new MenuFileMenu("programs", 0);
 
763
        ///    if (programs->itemCount() > 0)
 
764
        addSubmenu(_("Programs"), 0, programs);
 
765
    }
 
766
 
 
767
    if (showRun) {
 
768
        if (runDlgCommand && runDlgCommand[0])
 
769
            addItem(_("_Run..."), -2, "", actionRun);
 
770
    }
 
771
 
765
772
#ifdef CONFIG_WINLIST
766
773
#ifdef CONFIG_WINMENU
767
774
    if (itemCount() != oldItemCount) addSeparator();
770
777
#endif
771
778
#endif
772
779
 
773
 
    if (showRun) {
774
 
        if (runDlgCommand && runDlgCommand[0])
775
 
            addItem(_("_Run..."), -2, "", actionRun);
776
 
    }
777
 
 
 
780
    if (
 
781
#ifndef LITE
 
782
#ifdef CONFIG_TASKBAR
 
783
        (!showTaskBar && showAbout) ||
 
784
#endif
 
785
        showHelp ||
 
786
#endif
 
787
        showSettingsMenu
 
788
    )
778
789
    addSeparator();
779
790
 
780
791
#ifndef LITE
799
810
    }
800
811
#endif
801
812
 
802
 
    if (showThemesMenu) {
803
 
        YMenu *themes = new ThemesMenu();
804
 
        if (themes)
805
 
            addSubmenu(_("_Themes"), -2, themes);
 
813
    if (showSettingsMenu) {
 
814
        YMenu *settings = new YMenu();
 
815
 
 
816
        if (showFocusModeMenu) {
 
817
            YMenu *focus = new YMenu();
 
818
            YMenuItem *i = 0;
 
819
 
 
820
            i = focus->addItem(_("_Click to focus"), -2, "", actionFocusClickToFocus);
 
821
            if (focusMode == 1) {
 
822
                i->setEnabled(false);
 
823
                i->setChecked(true);
 
824
            }
 
825
            i = focus->addItem(_("_Sloppy mouse focus"), -2, "", actionFocusMouseSloppy);
 
826
            if (focusMode == 2) {
 
827
                i->setEnabled(false);
 
828
                i->setChecked(true);
 
829
            }
 
830
            i = focus->addItem(_("Custo_m"), -2, "", actionFocusCustom);
 
831
            if (focusMode == 0) {
 
832
                i->setEnabled(false);
 
833
                i->setChecked(true);
 
834
            }
 
835
 
 
836
            settings->addSubmenu(_("_Focus"), -2, focus);
 
837
        }
 
838
 
 
839
 
 
840
        if (showThemesMenu) {
 
841
            YMenu *themes = new ThemesMenu();
 
842
            if (themes)
 
843
                settings->addSubmenu(_("_Themes"), -2, themes);
 
844
        }
 
845
        addSubmenu(_("Se_ttings"), -2, settings);
806
846
    }
807
847
 
808
848
    if (logoutMenu) {
 
849
        addSeparator();
809
850
        if (showLogoutSubMenu)
810
851
            addItem(_("_Logout..."), -2, actionLogout, logoutMenu);
811
852
        else