Commit 4e61a852 authored by Matthias Clasen's avatar Matthias Clasen

Register GtkPrintCapabilities

parent b11d57cc
2006-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtkprintjob.[hc]: Register GtkPrintCapabilities as a
flags type. (#344504, Marko Anastasov)
2006-06-09 Benjamin Berg <benjamin@sipsolutions.net>
* gtk/gtkmenuitem.c: (get_offsets): Take GtkMenu::horizontal-padding
......
2006-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtkprintjob.[hc]: Register GtkPrintCapabilities as a
flags type. (#344504, Marko Anastasov)
2006-06-09 Benjamin Berg <benjamin@sipsolutions.net>
* gtk/gtkmenuitem.c: (get_offsets): Take GtkMenu::horizontal-padding
......
......@@ -2679,6 +2679,7 @@ gtk_print_job_get_surface
gtk_print_job_send
gtk_print_job_set_track_print_status
gtk_print_job_get_track_print_status
gtk_print_capabilities_get_type G_GNUC_CONST
#endif
#endif
#endif
......
......@@ -638,5 +638,28 @@ gtk_print_job_send (GtkPrintJob *job,
return TRUE;
}
GType
gtk_print_capabilities_get_type (void)
{
static GType etype = 0;
if (etype == 0)
{
static const GFlagsValue values[] = {
{ GTK_PRINT_CAPABILITY_PAGE_SET, "GTK_PRINT_CAPABILITY_PAGE_SET", "page-set" },
{ GTK_PRINT_CAPABILITY_COPIES, "GTK_PRINT_CAPABILITY_COPIES", "copies" },
{ GTK_PRINT_CAPABILITY_COLLATE, "GTK_PRINT_CAPABILITY_COLLATE", "collate" },
{ GTK_PRINT_CAPABILITY_REVERSE, "GTK_PRINT_CAPABILITY_REVERSE", "reverse" },
{ GTK_PRINT_CAPABILITY_SCALE, "GTK_PRINT_CAPABILITY_SCALE", "scale" },
{ 0, NULL, NULL }
};
etype = g_flags_register_static (I_("GtkPrintCapabilities"), values);
}
return etype;
}
#define __GTK_PRINT_JOB_C__
#include "gtkaliasdef.c"
......@@ -64,14 +64,14 @@ struct _GtkPrintJob
*/
GtkPrintPages print_pages;
GtkPageRange *page_ranges;
int num_page_ranges;
gint num_page_ranges;
gboolean rotate_to_orientation;
GtkPageSet page_set;
int num_copies;
gint num_copies;
gboolean collate;
gboolean reverse;
double scale;
gdouble scale;
};
struct _GtkPrintJobClass
......@@ -90,7 +90,7 @@ struct _GtkPrintJobClass
void (*_gtk_reserved7) (void);
};
GType gtk_print_job_get_type (void) G_GNUC_CONST;
GType gtk_print_job_get_type (void) G_GNUC_CONST;
GtkPrintJob *gtk_print_job_new (const gchar *title,
GtkPrinter *printer,
GtkPrintSettings *settings,
......@@ -113,6 +113,7 @@ gboolean gtk_print_job_send (GtkPrintJob
GDestroyNotify dnotify,
GError **error);
GType gtk_print_capabilities_get_type (void) G_GNUC_CONST;
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment