summaryrefslogtreecommitdiff
path: root/gtk/gtkseparatortoolitem.c
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-06-29 23:34:20 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-06-29 23:34:20 +0000
commitfa336d283ac1c4392a1452bb869b0e9f3466d9c9 (patch)
tree753b95902e0410e07364e20eedaf86b14d588f5e /gtk/gtkseparatortoolitem.c
parent8de177338402d899df856b74cbdc434f6cfda1e2 (diff)
downloadgtk+-fa336d283ac1c4392a1452bb869b0e9f3466d9c9.tar.gz
gtkradiotoolbutton.c gtkradiotoolbutton.h gtktoggletoolbutton.c
Mon Jun 30 01:20:19 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtkradiotoolbutton.c * gtkradiotoolbutton.h * gtktoggletoolbutton.c * gtktoggletoolbutton.h * gtktoolbutton.c * gtktoolbutton.h * gtktoolitem.c * gtktoolitem.h * gtktoolbar.c * gtktoolbar.h * gtkseparatortoolitem.c * gtkseparatortoolitem.h New toolbar.
Diffstat (limited to 'gtk/gtkseparatortoolitem.c')
-rw-r--r--gtk/gtkseparatortoolitem.c90
1 files changed, 90 insertions, 0 deletions
diff --git a/gtk/gtkseparatortoolitem.c b/gtk/gtkseparatortoolitem.c
new file mode 100644
index 0000000000..52051d6dd5
--- /dev/null
+++ b/gtk/gtkseparatortoolitem.c
@@ -0,0 +1,90 @@
+/* gtkseparatortoolitem.c
+ *
+ * Copyright (C) 2002 Anders Carlsson <andersca@codefactory.se>
+ * Copyright (C) 2002 James Henstridge <james@daa.com.au>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "gtkseparatormenuitem.h"
+#include "gtkseparatortoolitem.h"
+#include "gtkintl.h"
+
+static void gtk_separator_tool_item_class_init (GtkSeparatorToolItemClass*class);
+
+static void gtk_separator_tool_item_add (GtkContainer *container,
+ GtkWidget *child);
+
+static GObjectClass *parent_class = NULL;
+
+
+GType
+gtk_separator_tool_item_get_type (void)
+{
+ static GType type = 0;
+
+ if (!type)
+ {
+ static const GTypeInfo type_info =
+ {
+ sizeof (GtkSeparatorToolItemClass),
+ (GBaseInitFunc) 0,
+ (GBaseFinalizeFunc) 0,
+ (GClassInitFunc) gtk_separator_tool_item_class_init,
+ (GClassFinalizeFunc) 0,
+ NULL,
+ sizeof (GtkSeparatorToolItem),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) NULL,
+ };
+
+ type = g_type_register_static (GTK_TYPE_TOOL_ITEM,
+ "GtkSeparatorToolItem", &type_info, 0);
+ }
+ return type;
+}
+
+
+static void
+gtk_separator_tool_item_class_init (GtkSeparatorToolItemClass *class)
+{
+ GtkContainerClass *container_class;
+ GtkToolItemClass *toolitem_class;
+
+ parent_class = g_type_class_peek_parent (class);
+ container_class = (GtkContainerClass *)class;
+ toolitem_class = (GtkToolItemClass *)class;
+
+ container_class->add = gtk_separator_tool_item_add;
+}
+
+static void
+gtk_separator_tool_item_add (GtkContainer *container,
+ GtkWidget *child)
+{
+ g_warning("attempt to add a child to an GtkSeparatorToolItem");
+}
+
+GtkToolItem *
+gtk_separator_tool_item_new (void)
+{
+ GtkToolItem *self;
+
+ self = g_object_new (GTK_TYPE_SEPARATOR_TOOL_ITEM,
+ NULL);
+
+ return self;
+}