1
// Stephen Smally © 2012
2
// This program is free software; you can redistribute it and/or modify
3
// it under the terms of the GNU General Public License as published by
4
// the Free Software Foundation; either version 2 of the License, or
5
// (at your option) any later version.
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
// GNU General Public License for more details.
12
// You should have received a copy of the GNU General Public License
13
// along with this program; if not, write to the Free Software
14
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15
// MA 02110-1301, USA.
23
// Enum for trick-safe check
31
public const string CSS_STYLE = """
32
.LscCategoriesGrid .viewport {
33
background-color: @base_color;
37
public class LscFrontend : Window {
39
public LscDatabase db_manager;
42
public LscToolbar toolbar;
43
//public LscPages pages;
46
public CssProvider styleprovider;
48
public LscFrontend () {
49
db_manager = new LscDatabase("/var/cache/lsc_packages.db"); // Need a settings check
51
Box main_container = new Box(Orientation.VERTICAL, 0);
52
toolbar = new LscToolbar();
53
//pages = new LscPages();
55
main_container.pack_start(toolbar, false, false, 0);
56
//main_container.pack_start(pages, true, true, 0);
58
styleprovider = new CssProvider();
60
styleprovider.load_from_data(CSS_STYLE, CSS_STYLE.length);
62
stdout.printf("CssError: %s\n", e.message);
63
stdout.printf("GtkViewport won't look as intended\n");
66
title = "Lubuntu Software Center";
67
window_position = WindowPosition.CENTER;
68
destroy.connect(Gtk.main_quit);
75
int main (string[] args) {
77
new Lsc.LscFrontend();
b'\\ No newline at end of file'