From f9cc681163013d716edf05e47dc68818e032416d Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 30 Sep 2011 08:31:23 +0300 Subject: [PATCH] * mug-query-bar.c: fix compile warning, add (c)-header --- toys/mug/mug-query-bar.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/toys/mug/mug-query-bar.c b/toys/mug/mug-query-bar.c index 66666c22..fdb15a95 100644 --- a/toys/mug/mug-query-bar.c +++ b/toys/mug/mug-query-bar.c @@ -1,6 +1,22 @@ -/* mug-query-bar.c */ +/* +** Copyright (C) 2011 Dirk-Jan C. Binnema +** +** 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 3, 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, write to the Free Software Foundation, +** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +** +*/ -/* insert (c)/licensing information) */ #include "mug-query-bar.h" /* include other impl specific header files */ @@ -76,10 +92,6 @@ mug_query_bar_class_init (MugQueryBarClass * klass) static void on_entry_activated (GtkWidget * w, MugQueryBar * bar) { - MugQueryBarPrivate *priv; - - priv = MUG_QUERY_BAR_GET_PRIVATE (bar); - g_signal_emit (G_OBJECT (bar), signals[MUG_QUERY_CHANGED], 0, gtk_entry_get_text (GTK_ENTRY (w))); }