~ubuntu-branches/ubuntu/utopic/gnome-online-accounts/utopic

« back to all changes in this revision

Viewing changes to src/goabackend/goaeditablelabel.h

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Laurent Bigonville, Andreas Henriksson
  • Date: 2014-05-16 11:42:52 UTC
  • mfrom: (1.1.28) (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20140516114252-u5ect6mk6ht8i38x
Tags: 3.12.2-1
[ Laurent Bigonville ]
* debian/control.in: Recommends realmd package (Closes: #725965)

[ Andreas Henriksson ]
* New upstream release.
  - Removes chat support from Windows Live provider (XMPP gateway gone).
* Bump Standards-Version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2
 
 *
3
 
 * Copyright (C) 2009-2011 Red Hat, Inc.
4
 
 *
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.
9
 
 *
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.
14
 
 *
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.
19
 
 *
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.
23
 
 */
24
 
 
25
 
 
26
 
#if !defined (__GOA_BACKEND_INSIDE_GOA_BACKEND_H__) && !defined (GOA_BACKEND_COMPILATION)
27
 
#error "Only <goabackend/goabackend.h> can be included directly."
28
 
#endif
29
 
 
30
 
#ifndef __GOA_EDITABLE_LABEL_H__
31
 
#define __GOA_EDITABLE_LABEL_H__
32
 
 
33
 
#include <glib.h>
34
 
#include <glib-object.h>
35
 
#include <gtk/gtk.h>
36
 
 
37
 
G_BEGIN_DECLS
38
 
 
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))
45
 
 
46
 
typedef struct _GoaEditableLabel GoaEditableLabel;
47
 
typedef struct _GoaEditableLabelClass GoaEditableLabelClass;
48
 
typedef struct _GoaEditableLabelPrivate GoaEditableLabelPrivate;
49
 
 
50
 
struct _GoaEditableLabel
51
 
{
52
 
  GtkAlignment parent;
53
 
 
54
 
  GoaEditableLabelPrivate *priv;
55
 
};
56
 
 
57
 
struct _GoaEditableLabelClass
58
 
{
59
 
  GtkAlignmentClass parent_class;
60
 
 
61
 
  void (* editing_done) (GoaEditableLabel *entry);
62
 
};
63
 
 
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,
67
 
                                              const gchar       *text);
68
 
const gchar *goa_editable_label_get_text     (GoaEditableLabel  *entry);
69
 
void         goa_editable_label_set_editable (GoaEditableLabel  *entry,
70
 
                                              gboolean           editable);
71
 
gboolean     goa_editable_label_get_editable (GoaEditableLabel  *entry);
72
 
void         goa_editable_label_set_weight   (GoaEditableLabel  *entry,
73
 
                                              gint               weight);
74
 
gint         goa_editable_label_get_weight   (GoaEditableLabel  *entry);
75
 
void         goa_editable_label_set_scale    (GoaEditableLabel  *entry,
76
 
                                              gdouble            scale);
77
 
gdouble      goa_editable_label_get_scale    (GoaEditableLabel  *entry);
78
 
 
79
 
G_END_DECLS
80
 
 
81
 
#endif /* _GOA_EDITABLE_LABEL_H_ */