forked from AuroraMiddleware/gtk
Remove a bunch of unused variables.
https://bugzilla.gnome.org/show_bug.cgi?id=586107 Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
This commit is contained in:
parent
dae0951db4
commit
481fc6b850
@ -344,9 +344,6 @@ gtk_print_backend_papi_print_stream (GtkPrintBackend *print_backend,
|
|||||||
GtkPrinterPapi *printer;
|
GtkPrinterPapi *printer;
|
||||||
_PrintStreamData *ps;
|
_PrintStreamData *ps;
|
||||||
GtkPrintSettings *settings;
|
GtkPrintSettings *settings;
|
||||||
gint argc;
|
|
||||||
gint in_fd;
|
|
||||||
gchar **argv = NULL;
|
|
||||||
const gchar *title;
|
const gchar *title;
|
||||||
char *prtnm = NULL;
|
char *prtnm = NULL;
|
||||||
GtkPrintDuplex val;
|
GtkPrintDuplex val;
|
||||||
@ -544,18 +541,10 @@ static gboolean
|
|||||||
papi_get_printer_list (GtkPrintBackendPapi *papi_backend)
|
papi_get_printer_list (GtkPrintBackendPapi *papi_backend)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char *attributes[] = /* Attributes we're interested in */
|
papi_status_t status;
|
||||||
{
|
|
||||||
"printer-name",
|
|
||||||
"printer-uri-supported",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
papi_status_t status, status2;
|
|
||||||
papi_service_t service = NULL;
|
papi_service_t service = NULL;
|
||||||
char **printers = NULL;
|
char **printers = NULL;
|
||||||
GtkPrinter *printer;
|
|
||||||
GtkPrinterPapi *papi_printer;
|
GtkPrinterPapi *papi_printer;
|
||||||
GList *current_printer_list;
|
|
||||||
GtkPrintBackend *backend = GTK_PRINT_BACKEND (papi_backend);
|
GtkPrintBackend *backend = GTK_PRINT_BACKEND (papi_backend);
|
||||||
|
|
||||||
if ((status = papiServiceCreate (&service, NULL, NULL, NULL, NULL,
|
if ((status = papiServiceCreate (&service, NULL, NULL, NULL, NULL,
|
||||||
@ -576,8 +565,6 @@ papi_get_printer_list (GtkPrintBackendPapi *papi_backend)
|
|||||||
for (i = 0; printers[i] != NULL; i++)
|
for (i = 0; printers[i] != NULL; i++)
|
||||||
{
|
{
|
||||||
GtkPrinter *printer;
|
GtkPrinter *printer;
|
||||||
char *name = NULL, *url = NULL;
|
|
||||||
papi_attribute_t **attrs = NULL;
|
|
||||||
|
|
||||||
printer = gtk_print_backend_find_printer (backend, printers[i]);
|
printer = gtk_print_backend_find_printer (backend, printers[i]);
|
||||||
|
|
||||||
@ -642,12 +629,10 @@ update_printer_status (GtkPrinter *printer)
|
|||||||
{
|
{
|
||||||
GtkPrintBackend *backend;
|
GtkPrintBackend *backend;
|
||||||
GtkPrinterPapi *papi_printer;
|
GtkPrinterPapi *papi_printer;
|
||||||
gboolean status_changed = FALSE;
|
|
||||||
|
|
||||||
backend = gtk_printer_get_backend (printer);
|
backend = gtk_printer_get_backend (printer);
|
||||||
papi_printer = GTK_PRINTER_PAPI (printer);
|
papi_printer = GTK_PRINTER_PAPI (printer);
|
||||||
|
|
||||||
/* if (status_changed) */
|
|
||||||
g_signal_emit_by_name (GTK_PRINT_BACKEND (backend),
|
g_signal_emit_by_name (GTK_PRINT_BACKEND (backend),
|
||||||
"printer-status-changed", printer);
|
"printer-status-changed", printer);
|
||||||
|
|
||||||
@ -662,7 +647,6 @@ papi_printer_get_options (GtkPrinter *printer,
|
|||||||
{
|
{
|
||||||
GtkPrinterOptionSet *set;
|
GtkPrinterOptionSet *set;
|
||||||
GtkPrinterOption *option;
|
GtkPrinterOption *option;
|
||||||
int i;
|
|
||||||
char *print_at[] = { "now", "on-hold" };
|
char *print_at[] = { "now", "on-hold" };
|
||||||
char *n_up[] = {"1"};
|
char *n_up[] = {"1"};
|
||||||
|
|
||||||
@ -790,7 +774,7 @@ papi_display_printer_status (gpointer user_data)
|
|||||||
{
|
{
|
||||||
GtkPrinter *printer = (GtkPrinter *) user_data;
|
GtkPrinter *printer = (GtkPrinter *) user_data;
|
||||||
GtkPrinterPapi *papi_printer;
|
GtkPrinterPapi *papi_printer;
|
||||||
gchar *loc, *printer_uri, *ppdfile;
|
gchar *loc;
|
||||||
int state;
|
int state;
|
||||||
papi_service_t service;
|
papi_service_t service;
|
||||||
papi_attribute_t **attrs = NULL;
|
papi_attribute_t **attrs = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user