[glide] Start adding a slide box class



commit 7ea3ae6f6249330fe71c3bafe99ac4db18eee3e2
Author: Robert Carr <racarr Valentine localdomain>
Date:   Thu Apr 29 01:54:51 2010 -0400

    Start adding a slide box class

 src/Makefile.am            |    2 +
 src/glide-slide-box-priv.h |   34 ++++++++++++++++++++++++++
 src/glide-slide-box.c      |   51 +++++++++++++++++++++++++++++++++++++++
 src/glide-slide-box.h      |   57 ++++++++++++++++++++++++++++++++++++++++++++
 src/glide-slide-button.c   |    1 -
 5 files changed, 144 insertions(+), 1 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index d2b4365..a25f134 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -73,6 +73,8 @@ glide_SOURCES = \
 	glide-animation-manager.h \
 	glide-slide-button.c \
 	glide-slide-button.h \
+	glide-slide-box.c \
+	glide-slide-box.h \
 	$(glide_VALABUILTSOURCES)
 
 
diff --git a/src/glide-slide-box-priv.h b/src/glide-slide-box-priv.h
new file mode 100644
index 0000000..05d1219
--- /dev/null
+++ b/src/glide-slide-box-priv.h
@@ -0,0 +1,34 @@
+/*
+ * glide-slide-box-priv.h
+ * Copyright (C) Robert Carr 2010 <racarr gnome org>
+ * 
+ * Glide is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * Glide 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 General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License along
+ * with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef __GLIDE_SLIDE_BOX_PRIVATE_H__
+#define __GLIDE_SLIDE_BOX_PRIVATE_H__
+
+#include "glide-slide-box.h"
+
+G_BEGIN_DECLS
+
+struct _GlideSlideBoxPrivate
+{
+  gpointer fill;
+};
+
+G_END_DECLS
+
+#endif
diff --git a/src/glide-slide-box.c b/src/glide-slide-box.c
new file mode 100644
index 0000000..626e3d1
--- /dev/null
+++ b/src/glide-slide-box.c
@@ -0,0 +1,51 @@
+/*
+ * glide-slide-box.c
+ * Copyright (C) Robert Carr 2010 <racarr gnome org>
+ * 
+ * Glide is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * Glide 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 General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License along
+ * with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "glide-slide-box.h"
+#include "glide-slide-box-priv.h"
+
+#define GLIDE_SLIDE_BOX_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), GLIDE_TYPE_SLIDE_BOX, GlideSlideBoxPrivate))
+
+G_DEFINE_TYPE(GlideSlideBox, glide_slide_box, GTK_TYPE_VBOX);
+
+static void
+glide_slide_box_finalize (GObject *object)
+{
+  
+}
+
+static void
+glide_slide_box_init (GlideSlideBox *box)
+{
+  box->priv = GLIDE_SLIDE_BOX_GET_PRIVATE (box);
+}
+
+static void
+glide_slide_box_class_init (GlideSlideBoxClass *klass)
+{
+  GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+  object_class->finalize = glide_slide_box_finalize;
+  g_type_class_add_private (object_class, sizeof(GlideSlideBoxPrivate));
+}
+
+GtkWidget *
+glide_slide_box_new ()
+{
+  return (GtkWidget *)g_object_new (GLIDE_TYPE_SLIDE_BOX, NULL);
+}
diff --git a/src/glide-slide-box.h b/src/glide-slide-box.h
new file mode 100644
index 0000000..766502b
--- /dev/null
+++ b/src/glide-slide-box.h
@@ -0,0 +1,57 @@
+/*
+ * glide-slide-box.h
+ * Copyright (C) Robert Carr 2010 <racarr gnome org>
+ * 
+ * Glide is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * Glide 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 General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License along
+ * with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GLIDE_SLIDE_BOX_H__
+#define __GLIDE_SLIDE_BOX_H__
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define GLIDE_TYPE_SLIDE_BOX              (glide_slide_box_get_type())
+#define GLIDE_SLIDE_BOX(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GLIDE_TYPE_SLIDE_BOX, GlideSlideBox))
+#define GLIDE_SLIDE_BOX_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GLIDE_TYPE_SLIDE_BOX, GlideSlideBoxClass))
+#define GLIDE_IS_SLIDE_BOX(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GLIDE_TYPE_SLIDE_BOX))
+#define GLIDE_IS_SLIDE_BOX_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GLIDE_TYPE_SLIDE_BOX))
+#define GLIDE_SLIDE_BOX_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GLIDE_TYPE_SLIDE_BOX, GlideSlideBoxClass))
+
+typedef struct _GlideSlideBoxPrivate GlideSlideBoxPrivate;
+
+
+typedef struct _GlideSlideBox GlideSlideBox;
+
+struct _GlideSlideBox
+{
+  GtkVBox box;
+  
+  GlideSlideBoxPrivate *priv;
+};
+
+typedef struct _GlideSlideBoxClass GlideSlideBoxClass;
+
+struct _GlideSlideBoxClass
+{
+  GtkVBoxClass parent_class;
+};
+
+GType glide_slide_box_get_type (void) G_GNUC_CONST;
+GtkWidget *glide_slide_box_new (void);
+
+G_END_DECLS
+
+#endif
diff --git a/src/glide-slide-button.c b/src/glide-slide-button.c
index db9309a..8e195b3 100644
--- a/src/glide-slide-button.c
+++ b/src/glide-slide-button.c
@@ -49,4 +49,3 @@ glide_slide_button_new ()
 {
   return (GtkWidget *)g_object_new (GLIDE_TYPE_SLIDE_BUTTON, NULL);
 }
-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]