diff options
author | Brian Tarricone <brian@tarricone.org> | 2004-06-17 16:41:43 +0000 |
---|---|---|
committer | Brian Tarricone <brian@tarricone.org> | 2004-06-17 16:41:43 +0000 |
commit | 8a5c45897c9e9b227a992d317b49a71d7f2fc0f9 (patch) | |
tree | 50df96a53f0fb86e34475847734891db58986882 /src/xfce-desktop.h | |
parent | bc28d971926c5c3a6e821cbe8658692b5b6578d5 (diff) | |
download | xfdesktop-8a5c45897c9e9b227a992d317b49a71d7f2fc0f9.tar.gz |
merging in the new xfdesktop, version is 4.1.5 *crosses fingers*
this will fix the app crashing problem, and has full multihead support, among
a bunch of other improvements i won't list here.
also fixing some warnings in menueditor (for --enable-debug=full)
(Old svn revision: 7750)
Diffstat (limited to 'src/xfce-desktop.h')
-rw-r--r-- | src/xfce-desktop.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/xfce-desktop.h b/src/xfce-desktop.h new file mode 100644 index 00000000..8695bb57 --- /dev/null +++ b/src/xfce-desktop.h @@ -0,0 +1,73 @@ +/* + * xfdesktop - xfce4's desktop manager + * + * Copyright (c) 2004 Brian Tarricone, <bjt23@cornell.edu> + * + * 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 _XFCE_DESKTOP_H_ +#define _XFCE_DESKTOP_H_ + +#include <glib.h> +#include <glib-object.h> +#include <gtk/gtkwindow.h> + +#include <libxfce4mcs/mcs-client.h> + +#include "xfce-backdrop.h" + +G_BEGIN_DECLS + +#define XFCE_TYPE_DESKTOP (xfce_desktop_get_type()) +#define XFCE_DESKTOP(object) (G_TYPE_CHECK_INSTANCE_CAST((object), XFCE_TYPE_DESKTOP, XfceDesktop)) +#define XFCE_DESKTOP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), XFCE_TYPE_DESKTOP, XfceDesktopClass)) +#define XFCE_IS_DESKTOP(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), XFCE_TYPE_DESKTOP)) +#define XFCE_IS_DESKTOP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), XFCE_TYPE_DESKTOP)) +#define XFCE_DESKTOP_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), XFCE_TYPE_DESKTOP, XfceDesktopClass)) + +typedef struct _XfceDesktop XfceDesktop; +typedef struct _XfceDesktopClass XfceDesktopClass; +typedef struct _XfceDesktopPriv XfceDesktopPriv; + +struct _XfceDesktop +{ + GtkWindow window; + + /*< private >*/ + XfceDesktopPriv *priv; +}; + +struct _XfceDesktopClass +{ + GtkWindowClass parent_class; +}; + +GType xfce_desktop_get_type () G_GNUC_CONST; + +GtkWidget *xfce_desktop_new(GdkScreen *gscreen, McsClient *mcs_client); + +guint xfce_desktop_get_n_monitors(XfceDesktop *desktop); + +XfceBackdrop *xfce_desktop_get_backdrop(XfceDesktop *desktop, guint n); + +gint xfce_desktop_get_width(XfceDesktop *desktop); +gint xfce_desktop_get_height(XfceDesktop *desktop); + +gboolean xfce_desktop_settings_changed(McsClient *client, McsAction action, McsSetting *setting, gpointer user_data); + +G_END_DECLS + +#endif |