diff options
author | Stefano Karapetsas <[email protected]> | 2014-05-04 19:00:57 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-05-04 19:00:57 +0200 |
commit | 64dfc3d24b51456f5a90fa1a59771db1ef1d980c (patch) | |
tree | 2d00f4e1133aef8954054fca33f0c68d81b9896d /libmate-desktop/mate-colorseldialog.h | |
parent | cdc44ec777ed31e5e720fbede2ee6116bd43330d (diff) | |
download | mate-desktop-64dfc3d24b51456f5a90fa1a59771db1ef1d980c.tar.bz2 mate-desktop-64dfc3d24b51456f5a90fa1a59771db1ef1d980c.tar.xz |
libmate-desktop: Add MateColorButton dialog
Code taken from GTK 2.24 source and renamed for MATE
This will allow to use traditional color selection with GTK2 and GTK3
Diffstat (limited to 'libmate-desktop/mate-colorseldialog.h')
-rw-r--r-- | libmate-desktop/mate-colorseldialog.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/libmate-desktop/mate-colorseldialog.h b/libmate-desktop/mate-colorseldialog.h new file mode 100644 index 0000000..d5fbdee --- /dev/null +++ b/libmate-desktop/mate-colorseldialog.h @@ -0,0 +1,76 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __MATE_COLOR_SELECTION_DIALOG_H__ +#define __MATE_COLOR_SELECTION_DIALOG_H__ + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +#define MATE_TYPE_COLOR_SELECTION_DIALOG (mate_color_selection_dialog_get_type ()) +#define MATE_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_COLOR_SELECTION_DIALOG, MateColorSelectionDialog)) +#define MATE_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_COLOR_SELECTION_DIALOG, MateColorSelectionDialogClass)) +#define MATE_IS_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_COLOR_SELECTION_DIALOG)) +#define MATE_IS_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_COLOR_SELECTION_DIALOG)) +#define MATE_COLOR_SELECTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_COLOR_SELECTION_DIALOG, MateColorSelectionDialogClass)) + + +typedef struct _MateColorSelectionDialog MateColorSelectionDialog; +typedef struct _MateColorSelectionDialogClass MateColorSelectionDialogClass; + + +struct _MateColorSelectionDialog +{ + GtkDialog parent_instance; + + GtkWidget *GSEAL (colorsel); + GtkWidget *GSEAL (ok_button); + GtkWidget *GSEAL (cancel_button); + GtkWidget *GSEAL (help_button); +}; + +struct _MateColorSelectionDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +/* ColorSelectionDialog */ +GType mate_color_selection_dialog_get_type (void) G_GNUC_CONST; +GtkWidget* mate_color_selection_dialog_new (const gchar *title); +GtkWidget* mate_color_selection_dialog_get_color_selection (MateColorSelectionDialog *colorsel); + + +G_END_DECLS + +#endif /* __MATE_COLOR_SELECTION_DIALOG_H__ */ |