~ubuntu-branches/ubuntu/vivid/ekiga/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/gui/gmentrydialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Kilian Krause
  • Date: 2011-07-17 00:24:50 UTC
  • mfrom: (5.1.5 upstream) (7.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110717002450-ytg3wsrc1ptd3153
Tags: 3.3.1-1
* New upstream release.
 - Required libpt-dev 2.10 and libopal-dev 3.10
* Fix debian/watch to catch new version
* Remove libnotify0.7.patch - included upstream
* Add libboost-dev and libboost-signals-dev to Build-Depends
* debian/rules: Don't install *.la files for new internal shared libs
* Fix Vcs URIs to point to correct desktop/experimental/ekiga tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/* Ekiga -- A VoIP and Video-Conferencing application
3
 
 * Copyright (C) 2000-2006 Damien Sandras
 
3
 * Copyright (C) 2000-2009 Damien Sandras <dsandras@seconix.com>
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License as published by
30
30
 *                         gmentrydialog.h  -  description
31
31
 *                         -------------------------------
32
32
 *   begin                : Sat Jan 03 2004
33
 
 *   copyright            : (C) 2000-2006 by Damien Sandras 
 
33
 *   copyright            : (C) 2000-2006 by Damien Sandras
34
34
 *   description          : Contains a gmentrydialog widget permitting to
35
35
 *                          quickly build GtkDialogs with a +rw GtkEntry
36
36
 *                          field.
38
38
 */
39
39
 
40
40
 
41
 
#ifndef __GM_ENTRY_DIALOG_H
42
 
#define __GM_ENTRY_DIALOG_H
 
41
#ifndef __GM_ENTRY_DIALOG_H__
 
42
#define __GM_ENTRY_DIALOG_H__
43
43
 
44
 
#include <glib-object.h>
45
44
#include <gtk/gtk.h>
46
45
 
47
46
 
48
47
G_BEGIN_DECLS
49
48
 
50
 
#define GM_ENTRY_DIALOG_TYPE (gm_entry_dialog_get_type ())
51
 
#define GM_ENTRY_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GM_ENTRY_DIALOG_TYPE, GmEntryDialog))
52
 
#define GM_ENTRY_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GM_ENTRY_DIALOG_TYPE, GmEntryDialogClass))
53
 
#define GM_IS_ENTRY_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GM_ENTRY_DIALOG_TYPE))
54
 
#define GM_IS_ENTRY_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GM_ENTRY_DIALOG_TYPE))
55
 
#define GM_ENTRY_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GM_ENTRY_DIALOG_TYPE, GmEntryDialogClass))
56
 
 
57
 
 
58
 
typedef struct GmEntryDialogPrivate GmEntryDialogPrivate;
59
 
 
 
49
typedef struct _GmEntryDialogPrivate GmEntryDialogPrivate;
60
50
 
61
51
typedef struct
62
52
{
63
53
  GtkDialog parent;
64
 
  
65
 
  
66
 
  GtkWidget *field_entry;
67
 
  GtkWidget *label;
68
 
  
 
54
 
 
55
  GmEntryDialogPrivate* priv;
 
56
 
69
57
} GmEntryDialog;
70
58
 
71
59
 
72
60
typedef struct
73
61
{
74
62
  GtkDialogClass parent_class;
75
 
  
 
63
 
76
64
} GmEntryDialogClass;
77
65
 
78
66
 
79
67
/* The functions */
80
68
 
81
69
/* DESCRIPTION  :  /
82
 
 * BEHAVIOR     :  Returns the GType for the GmEntryDialog.
83
 
 * PRE          :  /
84
 
 */
85
 
GType gm_entry_dialog_get_type (void);
86
 
 
87
 
 
88
 
/* DESCRIPTION  :  /
89
70
 * BEHAVIOR     :  Creates a new GmEntryDialog with the specified text and
90
71
 *                 and button. The button will give the GTK_RESPONSE_ACCEPT
91
72
 *                 answer.
92
73
 * PRE          :  Both texts must be != NULL.
93
74
 */
94
 
GtkWidget *gm_entry_dialog_new (const char *,
95
 
                                const char *);
 
75
GtkWidget* gm_entry_dialog_new (const char* label,
 
76
                                const char* button_label);
96
77
 
97
78
 
98
79
/* DESCRIPTION  :  /
100
81
 *                 given GmEntryDialog.
101
82
 * PRE          :  Both parameters must be != NULL.
102
83
 */
103
 
void gm_entry_dialog_set_text (GmEntryDialog *,
104
 
                               const char *);
 
84
void gm_entry_dialog_set_text (GmEntryDialog*,
 
85
                               const char* text);
105
86
 
106
87
 
107
88
/* DESCRIPTION  :  /
108
89
 * BEHAVIOR     :  Returns the text in the GtkEntry inside the GmEntryDialog.
109
90
 * PRE          :  Non-NULL GmEntryDialog.
110
91
 */
111
 
const char *gm_entry_dialog_get_text (GmEntryDialog *);
 
92
const gchar* gm_entry_dialog_get_text (GmEntryDialog*);
 
93
 
 
94
 
 
95
/* GObject boilerplate */
 
96
 
 
97
GType gm_entry_dialog_get_type (void);
 
98
 
 
99
#define GM_TYPE_ENTRY_DIALOG (gm_entry_dialog_get_type ())
 
100
#define GM_ENTRY_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GM_TYPE_ENTRY_DIALOG, GmEntryDialog))
 
101
#define GM_ENTRY_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GM_TYPE_ENTRY_DIALOG, GmEntryDialogClass))
 
102
#define GM_IS_ENTRY_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GM_TYPE_ENTRY_DIALOG))
 
103
#define GM_IS_ENTRY_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GM_TYPE_ENTRY_DIALOG))
 
104
#define GM_ENTRY_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GM_TYPE_ENTRY_DIALOG, GmEntryDialogClass))
112
105
 
113
106
 
114
107
G_END_DECLS
115
108
 
116
 
#endif /* __GM_ENTRY_DIALOG_H */
 
109
#endif