~ubuntu-branches/debian/sid/link-monitor-applet/sid

« back to all changes in this revision

Viewing changes to build/src/lm-dialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Adriaan Peeters
  • Date: 2008-03-30 22:26:13 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080330222613-5aubcuo9mgg2n7st
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Generated by GOB (v2.0.15)   (do not edit directly) */
 
2
 
 
3
/* End world hunger, donate to the World Food Programme, http://www.wfp.org */
 
4
 
 
5
#define GOB_VERSION_MAJOR 2
 
6
#define GOB_VERSION_MINOR 0
 
7
#define GOB_VERSION_PATCHLEVEL 15
 
8
 
 
9
#define selfp (self->_priv)
 
10
 
 
11
#include <string.h> /* memset() */
 
12
 
 
13
#include "lm-dialog.h"
 
14
 
 
15
#include "lm-dialog-private.h"
 
16
 
 
17
#ifdef G_LIKELY
 
18
#define ___GOB_LIKELY(expr) G_LIKELY(expr)
 
19
#define ___GOB_UNLIKELY(expr) G_UNLIKELY(expr)
 
20
#else /* ! G_LIKELY */
 
21
#define ___GOB_LIKELY(expr) (expr)
 
22
#define ___GOB_UNLIKELY(expr) (expr)
 
23
#endif /* G_LIKELY */
 
24
/* self casting macros */
 
25
#define SELF(x) LM_DIALOG(x)
 
26
#define SELF_CONST(x) LM_DIALOG_CONST(x)
 
27
#define IS_SELF(x) LM_IS_DIALOG(x)
 
28
#define TYPE_SELF LM_TYPE_DIALOG
 
29
#define SELF_CLASS(x) LM_DIALOG_CLASS(x)
 
30
 
 
31
#define SELF_GET_CLASS(x) LM_DIALOG_GET_CLASS(x)
 
32
 
 
33
/* self typedefs */
 
34
typedef LMDialog Self;
 
35
typedef LMDialogClass SelfClass;
 
36
 
 
37
/* here are local prototypes */
 
38
#line 0 "src/lm-dialog.gob"
 
39
static void lm_dialog_class_init (LMDialogClass * c);
 
40
#line 41 "lm-dialog.c"
 
41
#line 26 "src/lm-dialog.gob"
 
42
static void lm_dialog_init (LMDialog * self);
 
43
#line 44 "lm-dialog.c"
 
44
 
 
45
/* pointer to the class of our parent */
 
46
static GtkDialogClass *parent_class = NULL;
 
47
 
 
48
GType
 
49
lm_dialog_get_type (void)
 
50
{
 
51
        static GType type = 0;
 
52
 
 
53
        if ___GOB_UNLIKELY(type == 0) {
 
54
                static const GTypeInfo info = {
 
55
                        sizeof (LMDialogClass),
 
56
                        (GBaseInitFunc) NULL,
 
57
                        (GBaseFinalizeFunc) NULL,
 
58
                        (GClassInitFunc) lm_dialog_class_init,
 
59
                        (GClassFinalizeFunc) NULL,
 
60
                        NULL /* class_data */,
 
61
                        sizeof (LMDialog),
 
62
                        0 /* n_preallocs */,
 
63
                        (GInstanceInitFunc) lm_dialog_init,
 
64
                        NULL
 
65
                };
 
66
 
 
67
                type = g_type_register_static (GTK_TYPE_DIALOG, "LMDialog", &info, (GTypeFlags)G_TYPE_FLAG_ABSTRACT);
 
68
        }
 
69
 
 
70
        return type;
 
71
}
 
72
 
 
73
/* a macro for creating a new object of our type */
 
74
#define GET_NEW ((LMDialog *)g_object_new(lm_dialog_get_type(), NULL))
 
75
 
 
76
/* a function for creating a new object of our type */
 
77
#include <stdarg.h>
 
78
static LMDialog * GET_NEW_VARG (const char *first, ...) G_GNUC_UNUSED;
 
79
static LMDialog *
 
80
GET_NEW_VARG (const char *first, ...)
 
81
{
 
82
        LMDialog *ret;
 
83
        va_list ap;
 
84
        va_start (ap, first);
 
85
        ret = (LMDialog *)g_object_new_valist (lm_dialog_get_type (), first, ap);
 
86
        va_end (ap);
 
87
        return ret;
 
88
}
 
89
 
 
90
static void 
 
91
lm_dialog_class_init (LMDialogClass * c G_GNUC_UNUSED)
 
92
{
 
93
#define __GOB_FUNCTION__ "LM:Dialog::class_init"
 
94
 
 
95
        parent_class = g_type_class_ref (GTK_TYPE_DIALOG);
 
96
 
 
97
}
 
98
#undef __GOB_FUNCTION__
 
99
#line 26 "src/lm-dialog.gob"
 
100
static void 
 
101
lm_dialog_init (LMDialog * self G_GNUC_UNUSED)
 
102
{
 
103
#line 104 "lm-dialog.c"
 
104
#define __GOB_FUNCTION__ "LM:Dialog::init"
 
105
 {
 
106
#line 27 "src/lm-dialog.gob"
 
107
 
 
108
    gtk_container_set_border_width(GTK_CONTAINER(self), 5);
 
109
    gtk_dialog_set_has_separator(GTK_DIALOG(self), FALSE);
 
110
    gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(self)->vbox), 2);
 
111
  
 
112
#line 113 "lm-dialog.c"
 
113
 }
 
114
}
 
115
#undef __GOB_FUNCTION__
 
116
 
 
117