Add a ContactsWindow
This is nice for e.g. css
This commit is contained in:
parent
c3a85b7471
commit
7d886bac95
3 changed files with 29 additions and 2 deletions
|
@ -34,6 +34,7 @@ vala_sources = \
|
||||||
contacts-new-contact-dialog.vala \
|
contacts-new-contact-dialog.vala \
|
||||||
contacts-avatar-menu.vala \
|
contacts-avatar-menu.vala \
|
||||||
contacts-contact-frame.vala \
|
contacts-contact-frame.vala \
|
||||||
|
contacts-window.vala \
|
||||||
main.vala \
|
main.vala \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ using Gtk;
|
||||||
using Folks;
|
using Folks;
|
||||||
|
|
||||||
public class Contacts.App : Gtk.Application {
|
public class Contacts.App : Gtk.Application {
|
||||||
public ApplicationWindow window;
|
public Contacts.Window window;
|
||||||
public static App app;
|
public static App app;
|
||||||
public Store contacts_store;
|
public Store contacts_store;
|
||||||
private ListPane list_pane;
|
private ListPane list_pane;
|
||||||
|
@ -243,7 +243,7 @@ public class Contacts.App : Gtk.Application {
|
||||||
warning ("Failed to parsing ui file");
|
warning ("Failed to parsing ui file");
|
||||||
}
|
}
|
||||||
|
|
||||||
window = new ApplicationWindow (this);
|
window = new Contacts.Window (this);
|
||||||
window.set_application (this);
|
window.set_application (this);
|
||||||
window.set_title (_("Contacts"));
|
window.set_title (_("Contacts"));
|
||||||
window.set_size_request (745, 510);
|
window.set_size_request (745, 510);
|
||||||
|
|
26
src/contacts-window.vala
Normal file
26
src/contacts-window.vala
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 8 -*- */
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2011 Alexander Larsson <alexl@redhat.com>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
using Gtk;
|
||||||
|
using Folks;
|
||||||
|
|
||||||
|
public class Contacts.Window : Gtk.ApplicationWindow {
|
||||||
|
public Window (Gtk.Application app) {
|
||||||
|
Object (application: app);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue