~ubuntu-branches/ubuntu/saucy/shotwell/saucy-proposed

« back to all changes in this revision

Viewing changes to plugins/shotwell-publishing/YouTubePublishing.vala

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-03-07 10:27:48 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20120307102748-poymprhn45k75l09
Tags: 0.11.93-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
778
778
        this.host = host;
779
779
        this.username = username;
780
780
 
781
 
        Gtk.SeparatorToolItem top_space = new Gtk.SeparatorToolItem();
782
 
        top_space.set_draw(false);
783
 
        Gtk.SeparatorToolItem bottom_space = new Gtk.SeparatorToolItem();
784
 
        bottom_space.set_draw(false);
785
 
        add(top_space);
786
 
        top_space.set_size_request(-1, 40);
 
781
        add(gtk_vspacer(40));
787
782
 
788
783
        Gtk.Label intro_message_label = new Gtk.Label("");
789
784
        intro_message_label.set_line_wrap(true);
803
798
            case CredentialsPane.Mode.NOT_SET_UP:
804
799
                intro_message_label.set_markup("<b>%s</b>\n\n%s".printf(_("Account Not Ready"),
805
800
                    NOT_SET_UP_MESSAGE));
806
 
                Gtk.SeparatorToolItem long_message_space = new Gtk.SeparatorToolItem();
807
 
                long_message_space.set_draw(false);
808
 
                add(long_message_space);
809
 
                long_message_space.set_size_request(-1, 40);
 
801
                add(gtk_vspacer(40));
810
802
            break;
811
803
 
812
804
            case CredentialsPane.Mode.ADDITIONAL_SECURITY:
813
805
                intro_message_label.set_markup("<b>%s</b>\n\n%s".printf(_("Additional Security Required"),
814
806
                    ADDITIONAL_SECURITY_MESSAGE));
815
 
                Gtk.SeparatorToolItem long_message_space = new Gtk.SeparatorToolItem();
816
 
                long_message_space.set_draw(false);
817
 
                add(long_message_space);
818
 
                long_message_space.set_size_request(-1, 40);
 
807
                add(gtk_vspacer(40));
819
808
            break;
820
809
        }
821
810
 
866
855
        email_entry_label.set_mnemonic_widget(email_entry);
867
856
        password_entry_label.set_mnemonic_widget(password_entry);
868
857
 
869
 
        add(bottom_space);
870
 
        bottom_space.set_size_request(-1, 40);
 
858
        add(gtk_vspacer(40));
871
859
    }
872
860
 
873
861
    private void on_login_button_clicked() {
962
950
        this.channel_name = channel_name;
963
951
        this.privacy_descriptions = create_privacy_descriptions();
964
952
 
965
 
        Gtk.SeparatorToolItem top_pusher = new Gtk.SeparatorToolItem();
966
 
        top_pusher.set_draw(false);
967
 
        top_pusher.set_size_request(-1, 8);
968
 
        add(top_pusher);
 
953
        add(gtk_vspacer(8));
969
954
 
970
955
        Gtk.Label login_identity_label =
971
956
            new Gtk.Label(_("You are logged into YouTube as %s.").printf(username));
977
962
 
978
963
        add(publish_to_label);
979
964
 
980
 
        Gtk.VBox vert_packer = new Gtk.VBox(false, 0);
981
 
        Gtk.SeparatorToolItem packer_top_padding = new Gtk.SeparatorToolItem();
982
 
        packer_top_padding.set_draw(false);
983
 
        packer_top_padding.set_size_request(-1, PACKER_VERTICAL_PADDING);
 
965
        Gtk.Box vert_packer = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
984
966
 
985
 
        Gtk.SeparatorToolItem identity_table_spacer = new Gtk.SeparatorToolItem();
986
 
        identity_table_spacer.set_draw(false);
987
 
        identity_table_spacer.set_size_request(-1, INTERSTITIAL_VERTICAL_SPACING);
988
 
        vert_packer.add(identity_table_spacer);
 
967
        vert_packer.add(gtk_vspacer(INTERSTITIAL_VERTICAL_SPACING));
989
968
 
990
969
        Gtk.Table main_table = new Gtk.Table(6, 3, false);
991
970
 
992
 
        Gtk.SeparatorToolItem suboption_indent_spacer = new Gtk.SeparatorToolItem();
993
 
        suboption_indent_spacer.set_draw(false);
994
 
        suboption_indent_spacer.set_size_request(2, -1);
995
 
        main_table.attach(suboption_indent_spacer, 0, 1, 1, 2,
 
971
        main_table.attach(gtk_hspacer(2), 0, 1, 1, 2,
996
972
            Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL,
997
973
            Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, 4, 4);
998
974
 
1016
992
 
1017
993
        vert_packer.add(main_table);
1018
994
 
1019
 
        Gtk.SeparatorToolItem table_button_spacer = new Gtk.SeparatorToolItem();
1020
 
        table_button_spacer.set_draw(false);
1021
 
        table_button_spacer.set_size_request(-1, INTERSTITIAL_VERTICAL_SPACING);
1022
 
        vert_packer.add(table_button_spacer);
 
995
        vert_packer.add(gtk_vspacer(INTERSTITIAL_VERTICAL_SPACING));
1023
996
 
1024
 
        Gtk.HBox action_button_layouter = new Gtk.HBox(true, 0);
 
997
        Gtk.Box action_button_layouter = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
 
998
        action_button_layouter.homogeneous = true;
1025
999
 
1026
1000
        Gtk.Button logout_button = new Gtk.Button.with_mnemonic(_("_Logout"));
1027
1001
        logout_button.clicked.connect(on_logout_clicked);
1029
1003
        Gtk.Alignment logout_button_aligner = new Gtk.Alignment(0.5f, 0.5f, 0.0f, 0.0f);
1030
1004
        logout_button_aligner.add(logout_button);
1031
1005
        action_button_layouter.add(logout_button_aligner);
1032
 
        Gtk.SeparatorToolItem button_spacer = new Gtk.SeparatorToolItem();
1033
 
        button_spacer.set_draw(false);
1034
 
        button_spacer.set_size_request(ACTION_BUTTON_SPACING, -1);
1035
 
        action_button_layouter.add(button_spacer);
 
1006
        action_button_layouter.add(gtk_hspacer(ACTION_BUTTON_SPACING));
1036
1007
        publish_button = new Gtk.Button.with_mnemonic(_("_Publish"));
1037
1008
        publish_button.clicked.connect(on_publish_clicked);
1038
1009
        publish_button.set_size_request(STANDARD_ACTION_BUTTON_WIDTH, -1);
1044
1015
        action_button_wrapper.add(action_button_layouter);
1045
1016
 
1046
1017
        vert_packer.add(action_button_wrapper);
1047
 
 
1048
 
        Gtk.SeparatorToolItem packer_bottom_padding = new Gtk.SeparatorToolItem();
1049
 
        packer_bottom_padding.set_draw(false);
1050
 
        packer_bottom_padding.set_size_request(-1, 2 * PACKER_VERTICAL_PADDING);
1051
 
        vert_packer.add(packer_bottom_padding);
 
1018
        vert_packer.add(gtk_vspacer(2 * PACKER_VERTICAL_PADDING));
1052
1019
 
1053
1020
        Gtk.Alignment vert_packer_wrapper = new Gtk.Alignment(0.5f, 0.5f, 0.0f, 0.0f);
1054
1021
        vert_packer_wrapper.add(vert_packer);