]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkcolorchooser.h
filechooserbutton: Update the button's state only on programmatic changes to the...
[~andy/gtk] / gtk / gtkcolorchooser.h
index 287c551cd3f931b8fc606cf1bf19f6739b0964c9..192189544f3079261f6676a1b0189ebed9f0f55b 100644 (file)
  * 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.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef __GTK_COLOR_CHOOSER_H__
+#define __GTK_COLOR_CHOOSER_H__
+
 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
 #error "Only <gtk/gtk.h> can be included directly."
 #endif
 
-#ifndef __GTK_COLOR_CHOOSER_H__
-#define __GTK_COLOR_CHOOSER_H__
-
 #include <gtk/gtkwidget.h>
 
 G_BEGIN_DECLS
@@ -42,10 +40,16 @@ struct _GtkColorChooserInterface
   GTypeInterface base_interface;
 
   /* Methods */
-  void (* get_rgba) (GtkColorChooser *chooser,
-                     GdkRGBA         *color);
-  void (* set_rgba) (GtkColorChooser *chooser,
-                     const GdkRGBA   *color);
+  void (* get_rgba)    (GtkColorChooser *chooser,
+                        GdkRGBA         *color);
+  void (* set_rgba)    (GtkColorChooser *chooser,
+                        const GdkRGBA   *color);
+
+  void (* add_palette) (GtkColorChooser *chooser,
+                        GtkOrientation   orientation,
+                        gint             colors_per_line,
+                        gint             n_colors,
+                        GdkRGBA         *colors);
 
   /* Signals */
   void (* color_activated) (GtkColorChooser *chooser,
@@ -55,15 +59,28 @@ struct _GtkColorChooserInterface
   gpointer padding[12];
 };
 
+GDK_AVAILABLE_IN_3_4
 GType    gtk_color_chooser_get_type        (void) G_GNUC_CONST;
 
+GDK_AVAILABLE_IN_3_4
 void     gtk_color_chooser_get_rgba       (GtkColorChooser *chooser,
                                            GdkRGBA         *color);
+GDK_AVAILABLE_IN_3_4
 void     gtk_color_chooser_set_rgba       (GtkColorChooser *chooser,
                                            const GdkRGBA   *color);
+GDK_AVAILABLE_IN_3_4
 gboolean gtk_color_chooser_get_use_alpha  (GtkColorChooser *chooser);
+
+GDK_AVAILABLE_IN_3_4
 void     gtk_color_chooser_set_use_alpha  (GtkColorChooser *chooser,
-                                           gboolean         show_alpha);
+                                           gboolean         use_alpha);
+
+GDK_AVAILABLE_IN_3_4
+void     gtk_color_chooser_add_palette    (GtkColorChooser *chooser,
+                                           GtkOrientation   orientation,
+                                           gint             colors_per_line,
+                                           gint             n_colors,
+                                           GdkRGBA         *colors);
 
 G_END_DECLS