aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/eggseparatortoolitem.c
blob: 0f4f9871f358663fd67b82bca6a6f247aa649aff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include <gtk/gtkseparatormenuitem.h>
#include "eggseparatortoolitem.h"

#ifndef _
#  define _(s) (s)
#endif

static void egg_separator_tool_item_init       (EggSeparatorToolItem *self);
static void egg_separator_tool_item_class_init (EggSeparatorToolItemClass*class);

static void       egg_separator_tool_item_add               (GtkContainer *container,
                                 GtkWidget    *child);

static GObjectClass *parent_class = NULL;


GType
egg_separator_tool_item_get_type (void)
{
  static GType type = 0;

  if (!type)
    {
      static const GTypeInfo type_info =
    {
      sizeof (EggSeparatorToolItemClass),
      (GBaseInitFunc) 0,
      (GBaseFinalizeFunc) 0,
      (GClassInitFunc) egg_separator_tool_item_class_init,
      (GClassFinalizeFunc) 0,
      NULL,
      sizeof (EggSeparatorToolItem),
      0, /* n_preallocs */
      (GInstanceInitFunc) egg_separator_tool_item_init
    };

      type = g_type_register_static (EGG_TYPE_TOOL_ITEM,
                     "EggSeparatorToolItem", &type_info, 0);
    }
  return type;
}


static void
egg_separator_tool_item_class_init (EggSeparatorToolItemClass *class)
{
  GtkContainerClass *container_class;
  EggToolItemClass *toolitem_class;

  parent_class = g_type_class_peek_parent (class);
  container_class = (GtkContainerClass *)class;
  toolitem_class = (EggToolItemClass *)class;

  container_class->add = egg_separator_tool_item_add;
}

static void
egg_separator_tool_item_init (EggSeparatorToolItem *self)
{
}

static void
egg_separator_tool_item_add (GtkContainer *container, GtkWidget *child)
{
  g_warning("attempt to add a child to an EggSeparatorToolItem");
}

EggToolItem *
egg_separator_tool_item_new (void)
{
  EggToolItem *self;

  self = g_object_new (EGG_TYPE_SEPARATOR_TOOL_ITEM,
               NULL);
  
  return self;
}