summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-02-19 02:07:09 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-02-19 02:07:09 +0000
commit96f6f218efd56deab6ad02c00a3ad8997c231317 (patch)
treeddbe0b74ec4375e78f135fb9a695bf6a1eb523b8 /modules
parent809603c16c2f164ae95241309239c8ed2b3fc003 (diff)
downloadgtk+-96f6f218efd56deab6ad02c00a3ad8997c231317.tar.gz
Fix build of the lpr print backend
Some copy-and-paste from the CUPS print backend broke the build on Continuous, where CUPS does not exist.
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/lpr/gtkprintbackendlpr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/printbackends/lpr/gtkprintbackendlpr.c b/modules/printbackends/lpr/gtkprintbackendlpr.c
index f85b37ba44..aefa921515 100644
--- a/modules/printbackends/lpr/gtkprintbackendlpr.c
+++ b/modules/printbackends/lpr/gtkprintbackendlpr.c
@@ -44,8 +44,6 @@ typedef struct _GtkPrintBackendLprClass GtkPrintBackendLprClass;
#define _LPR_MAX_CHUNK_SIZE 8192
-static GType print_backend_lpr_type = 0;
-
struct _GtkPrintBackendLprClass
{
GtkPrintBackendClass parent_class;
@@ -83,7 +81,7 @@ static void gtk_print_backend_lpr_print_stream (GtkPrintBacke
gpointer user_data,
GDestroyNotify dnotify);
-G_DEFINE_DYNAMIC_TYPE(GtkPrintBackendLpr, gtk_print_backend_lpr, GTK_TYPE_PRINT_BACKEND)
+G_DEFINE_DYNAMIC_TYPE (GtkPrintBackendLpr, gtk_print_backend_lpr, GTK_TYPE_PRINT_BACKEND)
void
g_io_module_load (GIOModule *module)
@@ -91,10 +89,9 @@ g_io_module_load (GIOModule *module)
g_type_module_use (G_TYPE_MODULE (module));
gtk_print_backend_lpr_register_type (G_TYPE_MODULE (module));
- gtk_printer_lpr_register_type (G_TYPE_MODULE (module));
g_io_extension_point_implement (GTK_PRINT_BACKEND_EXTENSION_POINT_NAME,
- GTK_TYPE_PRINT_BACKEND_CUPS,
+ GTK_TYPE_PRINT_BACKEND_LPR,
"lpr",
10);
}