1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright (C) 2009-2011 Red Hat, Inc.
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General
16
* Public License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18
* Boston, MA 02111-1307, USA.
20
* Based on panels/user-accounts/um-editable-entry.c from
21
* gnome-control-center by Matthias Clasen <mclasen@redhat.com>.
22
* Relicensed to LGPLv2 after obtaining permission.
26
#if !defined (__GOA_BACKEND_INSIDE_GOA_BACKEND_H__) && !defined (GOA_BACKEND_COMPILATION)
27
#error "Only <goabackend/goabackend.h> can be included directly."
30
#ifndef __GOA_EDITABLE_LABEL_H__
31
#define __GOA_EDITABLE_LABEL_H__
34
#include <glib-object.h>
39
#define GOA_TYPE_EDITABLE_LABEL (goa_editable_label_get_type ())
40
#define GOA_EDITABLE_LABEL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_EDITABLE_LABEL, GoaEditableLabel))
41
#define GOA_EDITABLE_LABEL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_TYPE_EDITABLE_LABEL, GoaEditableLabelClass))
42
#define GOA_IS_EDITABLE_LABEL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_EDITABLE_LABEL))
43
#define GOA_IS_EDITABLE_LABEL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_TYPE_EDITABLE_LABEL))
44
#define GOA_EDITABLE_LABEL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_TYPE_EDITABLE_LABEL, GoaEditableLabelClass))
46
typedef struct _GoaEditableLabel GoaEditableLabel;
47
typedef struct _GoaEditableLabelClass GoaEditableLabelClass;
48
typedef struct _GoaEditableLabelPrivate GoaEditableLabelPrivate;
50
struct _GoaEditableLabel
54
GoaEditableLabelPrivate *priv;
57
struct _GoaEditableLabelClass
59
GtkAlignmentClass parent_class;
61
void (* editing_done) (GoaEditableLabel *entry);
64
GType goa_editable_label_get_type (void) G_GNUC_CONST;
65
GtkWidget *goa_editable_label_new (void);
66
void goa_editable_label_set_text (GoaEditableLabel *entry,
68
const gchar *goa_editable_label_get_text (GoaEditableLabel *entry);
69
void goa_editable_label_set_editable (GoaEditableLabel *entry,
71
gboolean goa_editable_label_get_editable (GoaEditableLabel *entry);
72
void goa_editable_label_set_weight (GoaEditableLabel *entry,
74
gint goa_editable_label_get_weight (GoaEditableLabel *entry);
75
void goa_editable_label_set_scale (GoaEditableLabel *entry,
77
gdouble goa_editable_label_get_scale (GoaEditableLabel *entry);
81
#endif /* _GOA_EDITABLE_LABEL_H_ */