From 2746e0e315b08b6c8f2f8b89a154aba673fbf507 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Mon, 10 Oct 2016 19:22:21 +0500 Subject: [PATCH] Options window tabs moved to left. --- ui/options.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ui/options.go b/ui/options.go index a7bd318..4a97bd0 100644 --- a/ui/options.go +++ b/ui/options.go @@ -128,6 +128,16 @@ func (o *OptionsDialog) fill() { } } +// Appearance tab initialization. +func (o *OptionsDialog) initializeAppearanceTab() { + appearance_vbox := gtk.NewVBox(false, 0) + + l := gtk.NewLabel("There will be some appearance configuration options soon.") + appearance_vbox.PackStart(l, false, true, 5) + + o.tab_widget.AppendPage(appearance_vbox, gtk.NewLabel("Appearance")) +} + func (o *OptionsDialog) initializeGeneralTab() { general_vbox := gtk.NewVBox(false, 0) @@ -153,8 +163,10 @@ func (o *OptionsDialog) initializeStorages() { func (o *OptionsDialog) initializeTabs() { o.initializeStorages() o.tab_widget = gtk.NewNotebook() + o.tab_widget.SetTabPos(gtk.POS_LEFT) o.initializeGeneralTab() + o.initializeAppearanceTab() o.initializeUrtTab() // Buttons for saving and discarding changes.