Register GtkPrintCapabilities

This commit is contained in:
Matthias Clasen 2006-06-11 00:23:57 +00:00
parent b11d57cc25
commit 4e61a85224
5 changed files with 41 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -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

View File

@ -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"

View File

@ -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
@ -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