Remove unused GitgInfoBar

This commit is contained in:
Jesse van den Kieboom 2014-07-17 14:02:34 +02:00
parent 68ace879d9
commit 2a3ad02e80
2 changed files with 0 additions and 65 deletions

View File

@ -53,7 +53,6 @@ gitg_gitg_VALASOURCES = \
gitg/gitg-window.vala \
gitg/gitg-clone-dialog.vala \
gitg/gitg-author-details-dialog.vala \
gitg/gitg-info-bar.vala \
gitg/gitg-resource.vala \
gitg/gitg-dash-view.vala \
gitg/gitg-application.vala \

View File

@ -1,64 +0,0 @@
/*
* This file is part of gitg
*
* Copyright (C) 2014 - Jesse van den Kieboom
*
* gitg 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.
*
* gitg 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 gitg. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Gitg
{
[GtkTemplate (ui = "/org/gnome/gitg/ui/gitg-info-bar.ui")]
class InfoBar : Gtk.InfoBar
{
[GtkChild]
private Gtk.Label d_title_label;
[GtkChild]
private Gtk.Label d_message_label;
private string d_title;
private string d_message;
public string title
{
get { return d_title; }
set
{
d_title = value;
var escaped = Markup.escape_text(d_title);
d_title_label.set_markup(@"<b>$escaped</b>");
}
}
public string message
{
get { return d_message; }
set
{
d_message = value;
var escaped = Markup.escape_text(d_message);
d_message_label.set_markup(@"<small>$escaped</small>");
}
}
}
}
// ex:ts=4 noet