Logo Search packages:      
Sourcecode: mail-notification version File versions

mn-pending-mailbox.c

/* Generated by GOB (v2.0.11) on Sun Mar  6 22:34:28 2005
   (do not edit directly) */

/* End world hunger, donate to the World Food Programme, http://www.wfp.org */

#define GOB_VERSION_MAJOR 2
#define GOB_VERSION_MINOR 0
#define GOB_VERSION_PATCHLEVEL 11

#define selfp (self->_priv)

#include <string.h> /* memset() */

#include "mn-pending-mailbox.h"

#include "mn-pending-mailbox-private.h"

#ifdef G_LIKELY
#define ___GOB_LIKELY(expr) G_LIKELY(expr)
#define ___GOB_UNLIKELY(expr) G_UNLIKELY(expr)
#else /* ! G_LIKELY */
#define ___GOB_LIKELY(expr) (expr)
#define ___GOB_UNLIKELY(expr) (expr)
#endif /* G_LIKELY */

#line 24 "mn-pending-mailbox.gob"

#include "config.h"
#include <glib/gi18n.h>
#include <gtk/gtk.h>

#line 33 "mn-pending-mailbox.c"
/* self casting macros */
#define SELF(x) MN_PENDING_MAILBOX(x)
#define SELF_CONST(x) MN_PENDING_MAILBOX_CONST(x)
#define IS_SELF(x) MN_IS_PENDING_MAILBOX(x)
#define TYPE_SELF MN_TYPE_PENDING_MAILBOX
#define SELF_CLASS(x) MN_PENDING_MAILBOX_CLASS(x)

#define SELF_GET_CLASS(x) MN_PENDING_MAILBOX_GET_CLASS(x)

/* self typedefs */
typedef MNPendingMailbox Self;
typedef MNPendingMailboxClass SelfClass;

/* here are local prototypes */
static void mn_pending_mailbox_init (MNPendingMailbox * o) G_GNUC_UNUSED;
static void mn_pending_mailbox_class_init (MNPendingMailboxClass * class) G_GNUC_UNUSED;

/* pointer to the class of our parent */
static MNMailboxClass *parent_class = NULL;

/* Short form macros */
#define self_new mn_pending_mailbox_new
GType
mn_pending_mailbox_get_type (void)
{
      static GType type = 0;

      if ___GOB_UNLIKELY(type == 0) {
            static const GTypeInfo info = {
                  sizeof (MNPendingMailboxClass),
                  (GBaseInitFunc) NULL,
                  (GBaseFinalizeFunc) NULL,
                  (GClassInitFunc) mn_pending_mailbox_class_init,
                  (GClassFinalizeFunc) NULL,
                  NULL /* class_data */,
                  sizeof (MNPendingMailbox),
                  0 /* n_preallocs */,
                  (GInstanceInitFunc) mn_pending_mailbox_init,
                  NULL
            };

            type = g_type_register_static (MN_TYPE_MAILBOX, "MNPendingMailbox", &info, (GTypeFlags)0);
      }

      return type;
}

/* a macro for creating a new object of our type */
#define GET_NEW ((MNPendingMailbox *)g_object_new(mn_pending_mailbox_get_type(), NULL))

/* a function for creating a new object of our type */
#include <stdarg.h>
static MNPendingMailbox * GET_NEW_VARG (const char *first, ...) G_GNUC_UNUSED;
static MNPendingMailbox *
GET_NEW_VARG (const char *first, ...)
{
      MNPendingMailbox *ret;
      va_list ap;
      va_start (ap, first);
      ret = (MNPendingMailbox *)g_object_new_valist (mn_pending_mailbox_get_type (), first, ap);
      va_end (ap);
      return ret;
}

static void 
mn_pending_mailbox_init (MNPendingMailbox * o G_GNUC_UNUSED)
{
#define __GOB_FUNCTION__ "MN:Pending:Mailbox::init"
}
#undef __GOB_FUNCTION__
#line 32 "mn-pending-mailbox.gob"
static void 
mn_pending_mailbox_class_init (MNPendingMailboxClass * class G_GNUC_UNUSED)
#line 107 "mn-pending-mailbox.c"
{
#define __GOB_FUNCTION__ "MN:Pending:Mailbox::class_init"

      parent_class = g_type_class_ref (MN_TYPE_MAILBOX);

 {
#line 33 "mn-pending-mailbox.gob"

    MN_MAILBOX_CLASS(class)->stock_id = GTK_STOCK_EXECUTE;
    MN_MAILBOX_CLASS(class)->format = _("detecting");
  
#line 119 "mn-pending-mailbox.c"
 }
}
#undef __GOB_FUNCTION__



#line 38 "mn-pending-mailbox.gob"
MNMailbox * 
mn_pending_mailbox_new (MNURI * uri)
#line 129 "mn-pending-mailbox.c"
{
#define __GOB_FUNCTION__ "MN:Pending:Mailbox::new"
#line 38 "mn-pending-mailbox.gob"
      g_return_val_if_fail (uri != NULL, (MNMailbox * )0);
#line 38 "mn-pending-mailbox.gob"
      g_return_val_if_fail (MN_IS_URI (uri), (MNMailbox * )0);
#line 136 "mn-pending-mailbox.c"
{
#line 40 "mn-pending-mailbox.gob"
      
    return MN_MAILBOX(GET_NEW_VARG(MN_MAILBOX_PROP_URI(G_OBJECT(uri)), NULL));
  }}
#line 142 "mn-pending-mailbox.c"
#undef __GOB_FUNCTION__

Generated by  Doxygen 1.6.0   Back to index