1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4
* Copyright (C) William Fagan 2008
6
* Portions based on the Subversion plugin
7
* Copyright (C) James Liggett 2007
8
* Copyright (C) Johannes Schmid 2005
10
* Anjuta is free software.
12
* You may redistribute it and/or modify it under the terms of the
13
* GNU General Public License, as published by the Free Software
14
* Foundation; either version 2 of the License, or (at your option)
17
* Anjuta is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
* See the GNU General Public License for more details.
22
* You should have received a copy of the GNU General Public License
23
* along with Anjuta. If not, write to:
24
* The Free Software Foundation, Inc.,
25
* 51 Franklin Street, Fifth Floor
26
* Boston, MA 02110-1301, USA.
30
#include "bzr-name-widget.h"
31
#include "bzr-whoami-cmd-set-name.h"
33
struct _BzrNameWidgetPriv
37
G_DEFINE_TYPE (BzrNameWidget, bzr_name_widget, BZR_TYPE_NAME_WIDGET);
40
bzr_name_widget_init (BzrNameWidget *self)
42
self->priv = g_new0 (BzrNameWidgetPriv, 1);
46
bzr_name_widget_new (const gchar *pref_text, GtkWindow *parent, const gchar *working_dir)
50
self = g_object_new (BZR_TYPE_NAME_WIDGET, NULL);
56
bzr_name_widget_finalize (GObject *object)
58
BzrNameWidget *command = NULL;
60
//command = BZR_NAME_WIDGET (object);
62
//g_free (command->priv);
64
G_OBJECT_CLASS (bzr_name_widget_parent_class)->finalize (object);
68
bzr_name_widget_save (BzrPreferenceWidget *pref_widget, gchar *new_value)
70
//BzrSetNameCmd *cmd = NULL;
72
//cmd = bzr_set_name_cmd_new (
76
bzr_name_widget_class_init (BzrNameWidgetClass *klass)
78
GObjectClass *object_class = NULL;
80
object_class = G_OBJECT_CLASS (klass);
82
BZR_PREFERENCE_WIDGET_CLASS (klass)->save = bzr_name_widget_save;
83
object_class->finalize = bzr_name_widget_finalize;
87
bzr_name_widget_destroy (BzrNameWidget *self)
89
g_object_unref (self);