summaryrefslogtreecommitdiff
path: root/src/gui/newsWindow.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-24 11:03:07 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-24 11:03:07 +0100
commit4b7a48bda37da6ac1c08822c7c888be6bf7cb751 (patch)
tree919bbd1c7eeca956a4cb20c8e3b88c9a2e27f821 /src/gui/newsWindow.vala
parent751a72bc2d2f54e27206a32cd4b7b17e9837228e (diff)
parentb683ce2789d95b2e9f221e75adc30efd91cfb901 (diff)
Merge tag 'upstream/0.5.7'
Upstream version 0.5.7
Diffstat (limited to 'src/gui/newsWindow.vala')
-rw-r--r--src/gui/newsWindow.vala40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/gui/newsWindow.vala b/src/gui/newsWindow.vala
index 75de60e..373135f 100644
--- a/src/gui/newsWindow.vala
+++ b/src/gui/newsWindow.vala
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (c) 2011 by Simon Schneegans
This program is free software: you can redistribute it and/or modify it
@@ -12,57 +12,57 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
-this program. If not, see <http://www.gnu.org/licenses/>.
+this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace GnomePie {
-/////////////////////////////////////////////////////////////////////////
-///
+/////////////////////////////////////////////////////////////////////////
+///
/////////////////////////////////////////////////////////////////////////
public class NewsWindow: Gtk.Dialog {
public static const int news_count = 2;
-
+
/////////////////////////////////////////////////////////////////////
- ///
+ ///
/////////////////////////////////////////////////////////////////////
public NewsWindow () {
this.title = "Gnome-Pie";
-
+
this.set_border_width(5);
-
- var box = new Gtk.VBox(false, 12);
-
+
+ var box = new Gtk.Box(Gtk.Orientation.VERTICAL, 12);
+
var image = new Gtk.Image.from_icon_name("gnome-pie", Gtk.IconSize.DIALOG);
box.pack_start(image);
-
+
var news = new Gtk.Label("");
news.wrap = true;
news.set_width_chars(75);
news.set_markup("<b>Thank you!</b>\n\n");
-
+
box.pack_start(news, false, false);
-
+
var check = new Gtk.CheckButton.with_label("Don't show this window again.");
check.toggled.connect((check_box) => {
var checky = check_box as Gtk.CheckButton;
-
+
if (checky.active) Config.global.showed_news = news_count;
else Config.global.showed_news = news_count-1;
-
+
Config.global.save();
});
-
+
box.pack_end(check);
-
+
(this.get_content_area() as Gtk.VBox).pack_start(box);
this.get_content_area().show_all();
-
- this.add_button(Gtk.Stock.CLOSE, 0);
-
+
+ this.add_button(_("_Close"), 0);
+
this.response.connect((id) => {
if (id == 0)
this.hide();