[Xfce4-commits] r22842 - xarchiver/branches/xarchiver-psybsd/src

Stephan Arts stephan at xfce.org
Sun Aug 20 22:43:33 UTC 2006


Author: stephan
Date: 2006-08-20 22:43:33 +0000 (Sun, 20 Aug 2006)
New Revision: 22842

Added:
   xarchiver/branches/xarchiver-psybsd/src/main_window_status_bar.c
   xarchiver/branches/xarchiver-psybsd/src/main_window_status_bar.h
Log:
Add status bar (fix compile issue)


Added: xarchiver/branches/xarchiver-psybsd/src/main_window_status_bar.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/main_window_status_bar.c	                        (rev 0)
+++ xarchiver/branches/xarchiver-psybsd/src/main_window_status_bar.c	2006-08-20 22:43:33 UTC (rev 22842)
@@ -0,0 +1,76 @@
+/*
+ *  Copyright (c) 2006 Stephan Arts <psybsd at gmail.com>
+ *
+ *  This program 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 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program 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 Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <config.h>
+#include <glib.h>
+#include <gtk/gtk.h>
+#include <libxarchiver/libxarchiver.h>
+#include "main_window_status_bar.h"
+#include "main_window.h"
+
+static void
+xa_main_window_status_bar_class_init(XAMainWindowStatusBarClass *);
+
+static void
+xa_main_window_status_bar_init(XAMainWindowStatusBar *);
+
+GType
+xa_main_window_status_bar_get_type ()
+{
+	static GType xa_main_window_status_bar_type = 0;
+
+ 	if (!xa_main_window_status_bar_type)
+	{
+ 		static const GTypeInfo xa_main_window_status_bar_info = 
+		{
+			sizeof (XAMainWindowStatusBarClass),
+			(GBaseInitFunc) NULL,
+			(GBaseFinalizeFunc) NULL,
+			(GClassInitFunc) xa_main_window_status_bar_class_init,
+			(GClassFinalizeFunc) NULL,
+			NULL,
+			sizeof (XAMainWindowStatusBar),
+			0,
+			(GInstanceInitFunc) xa_main_window_status_bar_init,
+			NULL
+		};
+
+		xa_main_window_status_bar_type = g_type_register_static (GTK_TYPE_STATUSBAR, "XAMainWindowStatusBar", &xa_main_window_status_bar_info, 0);
+	}
+	return xa_main_window_status_bar_type;
+}
+
+static void
+xa_main_window_status_bar_class_init(XAMainWindowStatusBarClass *menubar_class)
+{
+}
+
+static void
+xa_main_window_status_bar_init(XAMainWindowStatusBar *menubar)
+{
+}
+
+GtkWidget *
+xa_main_window_status_bar_new()
+{
+	GtkWidget *menubar;
+
+	menubar = g_object_new(xa_main_window_status_bar_get_type(), NULL);
+
+	return menubar;
+}

Added: xarchiver/branches/xarchiver-psybsd/src/main_window_status_bar.h
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/main_window_status_bar.h	                        (rev 0)
+++ xarchiver/branches/xarchiver-psybsd/src/main_window_status_bar.h	2006-08-20 22:43:33 UTC (rev 22842)
@@ -0,0 +1,58 @@
+/*
+ *  Copyright (c) 2006 Stephan Arts <psybsd at gmail.com>
+ *
+ *  This program 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 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program 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 Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __XARCHIVER_MAIN_WINDOW_STATUS_BAR_H__
+#define __XARCHIVER_MAIN_WINDOW_STATUS_BAR_H__
+G_BEGIN_DECLS
+
+#define XA_MAIN_WINDOW_STATUS_BAR(obj)         ( \
+		G_TYPE_CHECK_INSTANCE_CAST ((obj),    \
+			xa_main_window_status_bar_get_type(),      \
+			XAMainWindowStatusBar))
+
+#define XA_IS_MAIN_WINDOW_STATUS_BAR(obj)      ( \
+		G_TYPE_CHECK_INSTANCE_TYPE ((obj),    \
+			xa_main_window_status_bar_get_type()))
+
+#define XA_MAIN_WINDOW_STATUS_BAR_CLASS(class) ( \
+		G_TYPE_CHECK_CLASS_CAST ((class),     \
+			xa_main_window_status_bar_get_type(),      \
+			XAMainWindowStatusBarClass))
+
+#define XA_IS_MAIN_WINDOW_STATUS_BAR_CLASS(class) ( \
+		G_TYPE_CHECK_CLASS_TYPE ((class),        \
+			xa_main_window_status_bar_get_type()))
+
+typedef struct _XAMainWindowStatusBar XAMainWindowStatusBar;
+
+struct _XAMainWindowStatusBar
+{
+	GtkStatusbar parent;
+};
+
+typedef struct _XAMainWindowStatusBarClass XAMainWindowStatusBarClass;
+
+struct _XAMainWindowStatusBarClass
+{
+	GtkStatusbarClass parent;
+};
+
+GtkWidget *xa_main_window_status_bar_new();
+
+G_END_DECLS
+#endif /* __XARCHIVER_MAIN_WINDOW_STATUS_BAR_H__ */



More information about the Xfce4-commits mailing list