[Goodies-commits] r6609 - in ristretto/branches/ristretto-gio: docs src
Stephan Arts
stephan at xfce.org
Sat Jan 31 00:29:06 CET 2009
Author: stephan
Date: 2009-01-30 23:29:05 +0000 (Fri, 30 Jan 2009)
New Revision: 6609
Added:
ristretto/branches/ristretto-gio/docs/reference/
ristretto/branches/ristretto-gio/src/preferences_dialog.c
ristretto/branches/ristretto-gio/src/preferences_dialog.h
Modified:
ristretto/branches/ristretto-gio/src/Makefile.am
Log:
Add preferences dialog stub
Add reference-docs stub
Modified: ristretto/branches/ristretto-gio/src/Makefile.am
===================================================================
--- ristretto/branches/ristretto-gio/src/Makefile.am 2009-01-30 13:42:47 UTC (rev 6608)
+++ ristretto/branches/ristretto-gio/src/Makefile.am 2009-01-30 23:29:05 UTC (rev 6609)
@@ -8,6 +8,7 @@
image_transform_orientation.c image_transform_orientation.h \
picture_viewer.c picture_viewer.h \
settings.c settings.h \
+ preferences_dialog.h preferences_dialog.c \
main_window_ui.h \
main_window.c main_window.h \
main.c
Added: ristretto/branches/ristretto-gio/src/preferences_dialog.c
===================================================================
--- ristretto/branches/ristretto-gio/src/preferences_dialog.c (rev 0)
+++ ristretto/branches/ristretto-gio/src/preferences_dialog.c 2009-01-30 23:29:05 UTC (rev 6609)
@@ -0,0 +1,76 @@
+/*
+ * Copyright (C) Stephan Arts 2009 <stephan at xfce.org>
+ *
+ * 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 <gtk/gtk.h>
+
+#include "preferences_dialog.h"
+
+static void
+rstto_preferences_dialog_init(RsttoPreferencesDialog *);
+static void
+rstto_preferences_dialog_class_init(RsttoPreferencesDialogClass *);
+
+static GtkWidgetClass *parent_class = NULL;
+
+GType
+rstto_preferences_dialog_get_type ()
+{
+ static GType rstto_preferences_dialog_type = 0;
+
+ if (!rstto_preferences_dialog_type)
+ {
+ static const GTypeInfo rstto_preferences_dialog_info =
+ {
+ sizeof (RsttoPreferencesDialogClass),
+ (GBaseInitFunc) NULL,
+ (GBaseFinalizeFunc) NULL,
+ (GClassInitFunc) rstto_preferences_dialog_class_init,
+ (GClassFinalizeFunc) NULL,
+ NULL,
+ sizeof (RsttoPreferencesDialog),
+ 0,
+ (GInstanceInitFunc) rstto_preferences_dialog_init,
+ NULL
+ };
+
+ rstto_preferences_dialog_type = g_type_register_static (GTK_TYPE_DIALOG, "RsttoPreferencesDialog", &rstto_preferences_dialog_info, 0);
+ }
+ return rstto_preferences_dialog_type;
+}
+
+static void
+rstto_preferences_dialog_init(RsttoPreferencesDialog *dialog)
+{
+}
+
+static void
+rstto_preferences_dialog_class_init(RsttoPreferencesDialogClass *dialog_class)
+{
+ GObjectClass *object_class = (GObjectClass*)dialog_class;
+ parent_class = g_type_class_peek_parent(dialog_class);
+}
+
+GtkWidget *
+rstto_preferences_dialog_new (GtkWindow *parent)
+{
+ GtkWidget *dialog = g_object_new (RSTTO_TYPE_PREFERENCES_DIALOG, NULL);
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);
+
+ return dialog;
+}
Added: ristretto/branches/ristretto-gio/src/preferences_dialog.h
===================================================================
--- ristretto/branches/ristretto-gio/src/preferences_dialog.h (rev 0)
+++ ristretto/branches/ristretto-gio/src/preferences_dialog.h 2009-01-30 23:29:05 UTC (rev 6609)
@@ -0,0 +1,65 @@
+/*
+ * Copyright (C) Stephan Arts 2009 <stephan at xfce.org>
+ *
+ * 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 __RISTRETTO_PREFERENCES_DIALOG_H__
+#define __RISTRETTO_PREFERENCES_DIALOG_H__
+
+G_BEGIN_DECLS
+
+#define RSTTO_TYPE_PREFERENCES_DIALOG rstto_preferences_dialog_get_type()
+
+#define RSTTO_PREFERENCES_DIALOG(obj)( \
+ G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ RSTTO_TYPE_PREFERENCES_DIALOG, \
+ RsttoPreferencesDialog))
+
+#define RSTTO_IS_PREFERENCES_DIALOG(obj)( \
+ G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ RSTTO_TYPE_PREFERENCES_DIALOG))
+
+#define RSTTO_PREFERENCES_DIALOG_CLASS(klass)( \
+ G_TYPE_CHECK_CLASS_CAST ((klass), \
+ RSTTO_TYPE_PREFERENCES_DIALOG, \
+ RsttoPreferencesDialogClass))
+
+#define RSTTO_IS_PREFERENCES_DIALOG_CLASS(klass)( \
+ G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ RSTTO_TYPE_PREFERENCES_DIALOG()))
+
+typedef struct _RsttoPreferencesDialog RsttoPreferencesDialog;
+
+struct _RsttoPreferencesDialog
+{
+ GtkDialog parent;
+};
+
+typedef struct _RsttoPreferencesDialogClass RsttoPreferencesDialogClass;
+
+struct _RsttoPreferencesDialogClass
+{
+ GtkDialogClass parent_class;
+};
+
+GType rstto_preferences_dialog_get_type();
+
+GtkWidget *
+rstto_preferences_dialog_new (GtkWindow *parent);
+
+G_END_DECLS
+
+#endif /* __RISTRETTO_PREFERENCES_DIALOG_H__ */
More information about the Goodies-commits
mailing list