Index: terminal/terminal-preferences-dialog.c =================================================================== --- terminal/terminal-preferences-dialog.c (wersja 26682) +++ terminal/terminal-preferences-dialog.c (kopia robocza) @@ -563,6 +563,13 @@ "created terminal windows.")); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); gtk_widget_show (button); + + button = gtk_check_button_new_with_mnemonic ("Open maximized"); + exo_mutual_binding_new (G_OBJECT (dialog->preferences), "open-maximized", G_OBJECT (button), "active"); + terminal_gtk_widget_set_tooltip (button, + "Enable this option to open nen window maximized"); + gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, TRUE, 0); + gtk_widget_show (button); icon = gtk_widget_render_icon (GTK_WIDGET (dialog->icon_bar), TERMINAL_STOCK_APPEARANCE, Index: terminal/terminal-preferences.c =================================================================== --- terminal/terminal-preferences.c (wersja 26682) +++ terminal/terminal-preferences.c (kopia robocza) @@ -130,6 +130,7 @@ PROP_TERM, PROP_VTE_WORKAROUND_TITLE_BUG, PROP_WORD_CHARS, + PROP_OPEN_MAXIMIZED, N_PROPERTIES, }; @@ -1255,6 +1256,17 @@ "word-chars", "-A-Za-z0-9,./?%&#:_~", EXO_PARAM_READWRITE)); + + /** + * TerminalPreferences:open-maximized: + **/ + g_object_class_install_property (gobject_class, + PROP_OPEN_MAXIMIZED, + g_param_spec_boolean ("open-maximized", + "open-maximized", + "open-maximized", + FALSE, + EXO_PARAM_READWRITE)); } Index: terminal/terminal-window.c =================================================================== --- terminal/terminal-window.c (wersja 26682) +++ terminal/terminal-window.c (kopia robocza) @@ -305,8 +305,10 @@ GtkWidget *item; GtkWidget *vbox; gboolean bval; + gboolean maximized; gchar *role; + window->preferences = terminal_preferences_get (); /* The Terminal size needs correction when the font name or the scrollbar @@ -396,6 +398,10 @@ NULL); exo_binding_new (G_OBJECT (window->preferences), "misc-tab-position", G_OBJECT (window->notebook), "tab-pos"); + g_object_get (G_OBJECT (window->preferences) , "open-maximized", &maximized, NULL); + if (maximized) + gtk_window_maximize (GTK_WINDOW (window)); + /* set the notebook group id */ #if GTK_CHECK_VERSION (2,12,0) gtk_notebook_set_group (GTK_NOTEBOOK (window->notebook), window_notebook_group);