summaryrefslogtreecommitdiff
path: root/libxfsm
diff options
context:
space:
mode:
authorSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2019-04-25 00:03:18 +0200
committerSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2019-04-27 00:37:24 +0200
commit9c858e04d64cda8460da8909b36c02f3314a4bee (patch)
treed8e7264f09848a2a8e7599311a9ced73f285dc2c /libxfsm
parentf5a30fa3cd88d436de4ad486fb530610a791e857 (diff)
downloadxfce4-session-9c858e04d64cda8460da8909b36c02f3314a4bee.tar.gz
Drop splash screens
Diffstat (limited to 'libxfsm')
-rw-r--r--libxfsm/Makefile.am10
-rw-r--r--libxfsm/xfsm-splash-engine.h124
-rw-r--r--libxfsm/xfsm-splash-rc.c140
-rw-r--r--libxfsm/xfsm-splash-rc.h77
4 files changed, 0 insertions, 351 deletions
diff --git a/libxfsm/Makefile.am b/libxfsm/Makefile.am
index b2199333..538ab84c 100644
--- a/libxfsm/Makefile.am
+++ b/libxfsm/Makefile.am
@@ -5,8 +5,6 @@ AM_CPPFLAGS = \
lib_LTLIBRARIES = libxfsm-4.6.la
libxfsm_4_6_la_SOURCES = \
- xfsm-splash-rc.c \
- xfsm-splash-rc.h \
xfsm-util.h \
xfsm-util.c
@@ -30,16 +28,8 @@ libxfsm_4_6_la_LIBADD = \
$(LIBXFCE4UI_LIBS) \
$(XFCONF_LIBS)
-
libxfsmincludedir = \
$(includedir)/xfce4/xfce4-session-4.6/libxfsm
-libxfsminclude_HEADERS = \
- xfsm-splash-engine.h \
- xfsm-splash-rc.h
-
-
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xfce4-session-2.0.pc
-
-
diff --git a/libxfsm/xfsm-splash-engine.h b/libxfsm/xfsm-splash-engine.h
deleted file mode 100644
index d77a8db5..00000000
--- a/libxfsm/xfsm-splash-engine.h
+++ /dev/null
@@ -1,124 +0,0 @@
-/* $Id$ */
-/*-
- * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
- * All rights reserved.
- *
- * 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, 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 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., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301 USA.
- */
-
-#ifndef __XFSM_SPLASH_ENGINE_H__
-#define __XFSM_SPLASH_ENGINE_H__
-
-#include <time.h>
-
-#include <gtk/gtk.h>
-
-#include <libxfsm/xfsm-splash-rc.h>
-
-
-#define XFSM_CHOOSE_LOGOUT 0
-#define XFSM_CHOOSE_LOAD 1
-#define XFSM_CHOOSE_NEW 2
-
-
-typedef struct _XfsmSplashEngine XfsmSplashEngine;
-typedef struct _XfsmSplashConfig XfsmSplashConfig;
-typedef struct _XfsmSessionInfo XfsmSessionInfo;
-
-
-struct _XfsmSplashEngine
-{
- /* provided by the session manager */
- GdkDisplay *display;
- GdkScreen *primary_screen;
- int primary_monitor;
-
-
- /* to be filled in by the engine */
- gpointer user_data;
-
- /* load config from rc and display the splash window */
- void (*setup) (XfsmSplashEngine *engine,
- XfsmSplashRc *rc);
-
- /* tells the engine that the session will start now, where
- steps is the approx. number of apps started in the session,
- name is the name of the session and the preview at 52x42
- (OPTIONAL) */
- void (*start) (XfsmSplashEngine *engine,
- const gchar *name,
- GdkPixbuf *preview,
- unsigned steps);
-
- /* place, run, hide the dialog and return the result of the run.
- override on demand (OPTIONAL) */
- int (*run) (XfsmSplashEngine *engine,
- GtkWidget *dialog);
-
- /* display the text (OPTIONAL) */
- void (*next) (XfsmSplashEngine *engine,
- const gchar *text);
-
- /* choose a session (OPTIONAL), should return XFSM_CHOOSE_* */
- int (*choose) (XfsmSplashEngine *engine,
- GList *sessions,
- const gchar *default_session,
- gchar **name_return);
-
- void (*destroy) (XfsmSplashEngine *engine);
-
- gpointer _reserved[8];
-};
-
-
-struct _XfsmSplashConfig
-{
- /* provided by the session manager */
- XfsmSplashRc *rc;
-
-
- /* to be filled in by the config (freed by the session manager) */
- gchar *name;
- gchar *description;
- gchar *version;
- gchar *author;
- gchar *homepage;
-
- /* config internals (config is responsible for freeing during destroy) */
- gpointer user_data;
-
- /* generate preview for engine, should be 320x240! (OPTIONAL) */
- GdkPixbuf *(*preview) (XfsmSplashConfig *config);
-
- /* display a configuration dialog (OPTIONAL) */
- void (*configure) (XfsmSplashConfig *config,
- GtkWidget *parent);
-
- void (*destroy) (XfsmSplashConfig *config);
-
- gpointer _reserved[8];
-};
-
-
-struct _XfsmSessionInfo
-{
- gchar *name; /* name of the session */
- time_t atime; /* last access time */
- GdkPixbuf *preview; /* preview icon (52x42) */
-};
-
-
-#endif /* !__XFSM_SPLASH_ENGINE_H__ */
diff --git a/libxfsm/xfsm-splash-rc.c b/libxfsm/xfsm-splash-rc.c
deleted file mode 100644
index d652d1d6..00000000
--- a/libxfsm/xfsm-splash-rc.c
+++ /dev/null
@@ -1,140 +0,0 @@
-/* $Id$ */
-/*-
- * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
- * All rights reserved.
- *
- * 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, 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 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., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301 USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <libxfsm/xfsm-splash-rc.h>
-
-#define PROP_FROM_KEY(varname, key) \
- gchar varname[4096]; \
- g_strlcpy(varname, "/", sizeof(varname)); \
- g_strlcat(varname, key, sizeof(varname))
-
-
-struct _XfsmSplashRc
-{
- XfconfChannel *channel;
-};
-
-
-XfsmSplashRc*
-xfsm_splash_rc_new (XfconfChannel *channel)
-{
- XfsmSplashRc *splash_rc;
-
- splash_rc = g_new (XfsmSplashRc, 1);
- splash_rc->channel = g_object_ref (channel);
-
- return splash_rc;
-}
-
-
-gchar*
-xfsm_splash_rc_read_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- const gchar *fallback)
-{
- PROP_FROM_KEY(prop, key);
- return xfconf_channel_get_string (splash_rc->channel, prop, fallback);
-}
-
-
-gint
-xfsm_splash_rc_read_int_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gint fallback)
-{
- PROP_FROM_KEY(prop, key);
- return xfconf_channel_get_int (splash_rc->channel, prop, fallback);
-}
-
-
-gboolean
-xfsm_splash_rc_read_bool_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gboolean fallback)
-{
- PROP_FROM_KEY(prop, key);
- return xfconf_channel_get_bool (splash_rc->channel, prop, fallback);
-}
-
-
-gchar**
-xfsm_splash_rc_read_list_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- const gchar *delimiter)
-{
- PROP_FROM_KEY(prop, key);
- return xfconf_channel_get_string_list (splash_rc->channel, prop);
-}
-
-
-void
-xfsm_splash_rc_write_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- const gchar *value)
-{
- PROP_FROM_KEY(prop, key);
- xfconf_channel_set_string (splash_rc->channel, prop, value);
-}
-
-
-void
-xfsm_splash_rc_write_int_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gint value)
-{
- PROP_FROM_KEY(prop, key);
- xfconf_channel_set_int (splash_rc->channel, prop, value);
-}
-
-
-void
-xfsm_splash_rc_write_bool_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gboolean value)
-{
- PROP_FROM_KEY(prop, key);
- xfconf_channel_set_bool (splash_rc->channel, prop, value);
-}
-
-
-void
-xfsm_splash_rc_write_list_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gchar **value,
- const gchar *delimiter)
-{
- PROP_FROM_KEY(prop, key);
- xfconf_channel_set_string_list (splash_rc->channel, prop, (gchar const **)value);
-}
-
-
-void
-xfsm_splash_rc_free (XfsmSplashRc *splash_rc)
-{
- g_object_unref (splash_rc->channel);
- g_free (splash_rc);
-}
-
-
diff --git a/libxfsm/xfsm-splash-rc.h b/libxfsm/xfsm-splash-rc.h
deleted file mode 100644
index 4dd21f9f..00000000
--- a/libxfsm/xfsm-splash-rc.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/* $Id$ */
-/*-
- * Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
- * All rights reserved.
- *
- * 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, 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 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., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301 USA.
- */
-
-#ifndef __XFSM_SPLASH_RC_H__
-#define __XFSM_SPLASH_RC_H__
-
-#include <gmodule.h>
-#include <xfconf/xfconf.h>
-#include <libxfce4util/libxfce4util.h>
-
-
-G_BEGIN_DECLS;
-
-typedef struct _XfsmSplashRc XfsmSplashRc;
-
-
-G_MODULE_IMPORT
-XfsmSplashRc *xfsm_splash_rc_new (XfconfChannel*channel);
-
-G_MODULE_IMPORT
-gchar *xfsm_splash_rc_read_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- const gchar *fallback);
-G_MODULE_IMPORT
-gint xfsm_splash_rc_read_int_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gint fallback);
-G_MODULE_IMPORT
-gboolean xfsm_splash_rc_read_bool_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gboolean fallback);
-G_MODULE_IMPORT
-gchar **xfsm_splash_rc_read_list_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- const gchar *delimiter);
-G_MODULE_IMPORT
-void xfsm_splash_rc_write_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- const gchar *value);
-G_MODULE_IMPORT
-void xfsm_splash_rc_write_int_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gint value);
-G_MODULE_IMPORT
-void xfsm_splash_rc_write_bool_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gboolean value);
-G_MODULE_IMPORT
-void xfsm_splash_rc_write_list_entry (XfsmSplashRc *splash_rc,
- const gchar *key,
- gchar **value,
- const gchar *delimiter);
-void xfsm_splash_rc_free (XfsmSplashRc *splash_rc);
-
-G_END_DECLS;
-
-
-#endif /* !__XFSM_SPLASH_RC_H__ */
-