X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkcolorbutton.h;h=6fc7f464f7612951d3724e8f48107974ebd548fd;hb=d97861bd8b338c3d25d7ffb5496edee9eee9bfbb;hp=21c1460a40fb7dda828316c39917460aa67b2986;hpb=57223c9a056bfff1635ddd1e67f660cd5a61e9ff;p=~andy%2Fgtk diff --git a/gtk/gtkcolorbutton.h b/gtk/gtkcolorbutton.h index 21c1460a4..6fc7f464f 100644 --- a/gtk/gtkcolorbutton.h +++ b/gtk/gtkcolorbutton.h @@ -14,9 +14,7 @@ * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public - * License along with the Gnome Library; see the file COPYING.LIB. If not, - * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ /* Color picker button for GNOME @@ -29,25 +27,19 @@ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ -#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #ifndef __GTK_COLOR_BUTTON_H__ #define __GTK_COLOR_BUTTON_H__ +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + #include G_BEGIN_DECLS -/* The GtkColorButton widget is a simple color picker in a button. - * The button displays a sample of the currently selected color. When - * the user clicks on the button, a color selection dialog pops up. - * The color picker emits the "color_set" signal when the color is set. - */ - #define GTK_TYPE_COLOR_BUTTON (gtk_color_button_get_type ()) #define GTK_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButton)) #define GTK_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_BUTTON, GtkColorButtonClass)) @@ -63,8 +55,7 @@ struct _GtkColorButton { GtkButton button; /*< private >*/ - - GtkColorButtonPrivate *GSEAL (priv); + GtkColorButtonPrivate *priv; }; struct _GtkColorButtonClass { @@ -80,23 +71,37 @@ struct _GtkColorButtonClass { }; -GType gtk_color_button_get_type (void) G_GNUC_CONST; -GtkWidget *gtk_color_button_new (void); -GtkWidget *gtk_color_button_new_with_color (const GdkColor *color); -void gtk_color_button_set_color (GtkColorButton *color_button, - const GdkColor *color); -void gtk_color_button_set_alpha (GtkColorButton *color_button, - guint16 alpha); -void gtk_color_button_get_color (GtkColorButton *color_button, - GdkColor *color); -guint16 gtk_color_button_get_alpha (GtkColorButton *color_button); -void gtk_color_button_set_use_alpha (GtkColorButton *color_button, - gboolean use_alpha); -gboolean gtk_color_button_get_use_alpha (GtkColorButton *color_button); -void gtk_color_button_set_title (GtkColorButton *color_button, - const gchar *title); -G_CONST_RETURN gchar *gtk_color_button_get_title (GtkColorButton *color_button); +GType gtk_color_button_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_color_button_new (void); +GtkWidget * gtk_color_button_new_with_rgba (const GdkRGBA *rgba); +void gtk_color_button_set_title (GtkColorButton *button, + const gchar *title); +const gchar *gtk_color_button_get_title (GtkColorButton *button); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_new_with_rgba) +GtkWidget *gtk_color_button_new_with_color (const GdkColor *color); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_set_rgba) +void gtk_color_button_set_color (GtkColorButton *button, + const GdkColor *color); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_get_rgba) +void gtk_color_button_get_color (GtkColorButton *button, + GdkColor *color); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_set_rgba) +void gtk_color_button_set_alpha (GtkColorButton *button, + guint16 alpha); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_get_rgba) +guint16 gtk_color_button_get_alpha (GtkColorButton *button); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_set_use_alpha) +void gtk_color_button_set_use_alpha (GtkColorButton *button, + gboolean use_alpha); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_get_use_alpha) +gboolean gtk_color_button_get_use_alpha (GtkColorButton *button); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_set_rgba) +void gtk_color_button_set_rgba (GtkColorButton *button, + const GdkRGBA *rgba); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_get_rgba) +void gtk_color_button_get_rgba (GtkColorButton *button, + GdkRGBA *rgba); G_END_DECLS