~voldyman/pantheon-terminal/open-link-menu

« back to all changes in this revision

Viewing changes to src/PantheonTerminalWindow.vala

  • Committer: Mario Guerriero
  • Date: 2011-12-05 20:27:31 UTC
  • Revision ID: mefrio.g@gmail.com-20111205202731-v6d3hi3ey0lvfmvx
fixed cmake configu file and added the support to gettext

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
            //    stdout.printf("%s\n", arg);
80
80
 
81
81
            //Gtk.Settings.get_default().gtk_application_prefer_dark_theme = true;
82
 
            title = "Terminal";
 
82
            title = _("Terminal");
83
83
            default_width = 640;
84
84
            default_height = 400;
85
85
            icon_name = "terminal";
264
264
            notebook.switch_page.connect((page, page_num) => { if (notebook.page_num(t) == (int) page_num) tab.set_notification(false); });
265
265
            focus_in_event.connect(() => { if (notebook.page_num(t) == notebook.get_current_page()) tab.set_notification(false); return false; });
266
266
            t.preferences.connect(preferences);
267
 
            t.about.connect(about);
268
267
 
269
268
            theme_changed.connect(() => { set_terminal_theme(t); });
270
269
            //t.contents_changed.connect(() => { stdout.printf("pty %i\n", t.get_pty()); });
353
352
            return font_name;
354
353
        }
355
354
 
356
 
        public void about()
357
 
        {
358
 
            Gdk.Pixbuf logo = null;
359
 
 
360
 
            try {
361
 
                logo = IconTheme.get_default ().load_icon ("terminal", 64, 0);
362
 
            } catch (Error err) {
363
 
                stderr.printf ("Unable to load terminal icon: %s", err.message);
364
 
            }
365
 
 
366
 
            Granite.Widgets.AboutDialog about_dialog = new Granite.Widgets.AboutDialog ();
367
 
            about_dialog.bug = "http://bugs.launchpad.net/pantheon-terminal";
368
 
            about_dialog.translate = "http://translations.launchpad.net/pantheon-terminal";
369
 
            about_dialog.help = "http://answers.launchpad.net/pantheon-terminal";
370
 
            about_dialog.artists = Resources.ARTISTS;
371
 
            about_dialog.authors = Resources.AUTHORS;
372
 
            about_dialog.comments = Resources.COMMENTS;
373
 
            about_dialog.copyright = Resources.COPYRIGHT;
374
 
            about_dialog.license = Resources.LICENSE;
375
 
            about_dialog.website_label = Resources.WEBSITE_LABEL;
376
 
            about_dialog.program_name = Resources.APP_TITLE;
377
 
            about_dialog.website = Resources.WEBSITE_URL;
378
 
            about_dialog.version = Resources.VERSION;
379
 
            about_dialog.translator_credits = Resources.TRANSLATORS;
380
 
            about_dialog.logo = logo;
381
 
            about_dialog.logo_icon_name = ICON_ABOUT_LOGO;
382
 
 
383
 
            about_dialog.set_position (WindowPosition.CENTER);
384
 
            about_dialog.show_all ();
385
 
            about_dialog.run ();
386
 
            about_dialog.destroy ();
387
 
 
388
 
        }
389
 
 
390
355
        public void preferences()
391
356
        {
392
 
            var dialog = new Preferences ("Preferences", this);
 
357
            var dialog = new Preferences (_("Preferences"), this);
393
358
            dialog.show_all ();
394
359
            dialog.run ();
395
360
            dialog.destroy ();