X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkcolorbutton.h;h=6fc7f464f7612951d3724e8f48107974ebd548fd;hb=3a86af43fa208786b5c848c09f9c8e1d3f060931;hp=508db1141c25fcad50d5c12100c46891f87ca93d;hpb=5f1b5d24067468fc86b28dccc504c71abdaf68b8;p=~andy%2Fgtk diff --git a/gtk/gtkcolorbutton.h b/gtk/gtkcolorbutton.h index 508db1141..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_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)) @@ -79,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