~elementary-apps/pantheon-terminal/trunk

« back to all changes in this revision

Viewing changes to src/PantheonTerminalWindow.vala

  • Committer: Cody Garver
  • Author(s): David Gomes
  • Date: 2013-01-04 23:04:43 UTC
  • mfrom: (423.1.1 pantheon-terminal)
  • Revision ID: cody@elementaryos.org-20130104230443-d2tc16wkky43nrrr
Fixed bug #1080982. Approved by Cody Garver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        const string ui_string = """
46
46
            <ui>
47
47
            <popup name="MenuItemTool">
48
 
                <menuitem name="Quit" action="Quit"/>
49
48
                <menuitem name="New window" action="New window"/>
50
49
                <menuitem name="New tab" action="New tab"/>
51
50
                <menuitem name="CloseTab" action="CloseTab"/>
270
269
                int x = saved_state.opening_x;
271
270
                int y = saved_state.opening_y;
272
271
 
273
 
                if (x != -1 && y != -1)
 
272
                if (x != -1 && y != -1) {
274
273
                    this.move (x, y);
275
 
                else {
 
274
                } else {
276
275
                    x = (Gdk.Screen.width ()  - default_width)  / 2;
277
276
                    y = (Gdk.Screen.height () - default_height) / 2;
278
277
                    this.move (x, y);
577
576
        }
578
577
 
579
578
        static const Gtk.ActionEntry[] main_entries = {
580
 
            { "Quit", Gtk.Stock.QUIT, N_("Quit"), "<Control>q", N_("Quit"), action_quit },
581
 
 
582
579
            { "CloseTab", Gtk.Stock.CLOSE, N_("Close"), "<Control><Shift>w", N_("Close"),
583
580
              action_close_tab },
584
581