~debian-bazaar/+junk/anjuta-bzr-debian

« back to all changes in this revision

Viewing changes to src/bzr-name-widget.c

  • Committer: Jelmer Vernooij
  • Date: 2008-11-10 19:13:03 UTC
  • mfrom: (60.1.117 trunk)
  • Revision ID: jelmer@samba.org-20081110191303-gh3te5q0bq9owqbm
Merge new upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2
 
/*
3
 
 * Anjuta
4
 
 * Copyright (C) William Fagan 2008 
5
 
 *
6
 
 * Portions based on the Subversion plugin
7
 
 * Copyright (C) James Liggett 2007
8
 
 * Copyright (C) Johannes Schmid 2005
9
 
 *
10
 
 * Anjuta is free software.
11
 
 * 
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)
15
 
 * any later version.
16
 
 * 
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.
21
 
 * 
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.
27
 
 */
28
 
 
29
 
 
30
 
#include "bzr-name-widget.h"
31
 
#include "bzr-whoami-cmd-set-name.h"
32
 
 
33
 
struct _BzrNameWidgetPriv
34
 
{
35
 
};
36
 
 
37
 
G_DEFINE_TYPE (BzrNameWidget, bzr_name_widget, BZR_TYPE_NAME_WIDGET);
38
 
 
39
 
static void
40
 
bzr_name_widget_init (BzrNameWidget *self)
41
 
{
42
 
        self->priv = g_new0 (BzrNameWidgetPriv, 1);
43
 
}
44
 
 
45
 
BzrNameWidget*
46
 
bzr_name_widget_new (const gchar *pref_text, GtkWindow *parent, const gchar *working_dir)
47
 
{
48
 
        BzrNameWidget *self;
49
 
        
50
 
        self = g_object_new (BZR_TYPE_NAME_WIDGET, NULL);       
51
 
        
52
 
        return self;
53
 
}
54
 
 
55
 
static void
56
 
bzr_name_widget_finalize (GObject *object)
57
 
{
58
 
        BzrNameWidget *command = NULL;
59
 
        
60
 
        //command = BZR_NAME_WIDGET (object);
61
 
        
62
 
        //g_free (command->priv);
63
 
 
64
 
        G_OBJECT_CLASS (bzr_name_widget_parent_class)->finalize (object);
65
 
}
66
 
 
67
 
void
68
 
bzr_name_widget_save (BzrPreferenceWidget *pref_widget, gchar *new_value)
69
 
{
70
 
        //BzrSetNameCmd *cmd = NULL;
71
 
        
72
 
        //cmd = bzr_set_name_cmd_new (
73
 
}
74
 
 
75
 
static void
76
 
bzr_name_widget_class_init (BzrNameWidgetClass *klass)
77
 
{
78
 
        GObjectClass *object_class = NULL;
79
 
        
80
 
        object_class = G_OBJECT_CLASS (klass);
81
 
 
82
 
        BZR_PREFERENCE_WIDGET_CLASS (klass)->save = bzr_name_widget_save;
83
 
        object_class->finalize = bzr_name_widget_finalize;
84
 
}
85
 
 
86
 
void
87
 
bzr_name_widget_destroy (BzrNameWidget *self)
88
 
{
89
 
        g_object_unref (self);
90
 
}
91
 
 
92
 
 
93