gnome-control-center/panels/printers/pp-jobs-dialog.h
Marek Kasik c6d8b9c825 printers: Place jobs to separate dialog
This commit places list of jobs to separate dialog. The dialog
is updated through calling of pp_jobs_dialog_update()
from "Printers" panel because the panel is already subscribed
to cups notifications.
2012-08-07 14:09:33 +02:00

42 lines
1.5 KiB
C

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* Copyright 2012 Red Hat, Inc,
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Author: Marek Kasik <mkasik@redhat.com>
*/
#ifndef __PP_JOBS_DIALOG_H__
#define __PP_JOBS_DIALOG_H__
#include <gtk/gtk.h>
G_BEGIN_DECLS
typedef struct _PpJobsDialog PpJobsDialog;
typedef void (*UserResponseCallback) (GtkDialog *dialog, gint response_id, gpointer user_data);
PpJobsDialog *pp_jobs_dialog_new (GtkWindow *parent,
UserResponseCallback user_callback,
gpointer user_data,
gchar *printer_name);
void pp_jobs_dialog_update (PpJobsDialog *dialog);
void pp_jobs_dialog_free (PpJobsDialog *dialog);
G_END_DECLS
#endif