printers: Replace ifdefs with #pragma once
This commit is contained in:
parent
85604ab4f0
commit
13d72a79a7
19 changed files with 20 additions and 75 deletions
|
@ -16,9 +16,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _CC_PRINTERS_PANEL_H
|
||||
#define _CC_PRINTERS_PANEL_H
|
||||
#pragma once
|
||||
|
||||
#include <shell/cc-panel.h>
|
||||
|
||||
|
@ -28,5 +26,3 @@ G_BEGIN_DECLS
|
|||
G_DECLARE_FINAL_TYPE (CcPrintersPanel, cc_printers_panel, CC, PRINTERS_PANEL, CcPanel)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* _CC_PRINTERS_PANEL_H */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_CUPS_H__
|
||||
#define __PP_CUPS_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gio/gio.h>
|
||||
|
@ -75,5 +74,3 @@ gint pp_cups_renew_subscription_finish (PpCups *cups,
|
|||
GAsyncResult *result);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_CUPS_H__ */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Felipe Borges <feborges@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_DETAILS_DIALOG_H__
|
||||
#define __PP_DETAILS_DIALOG_H__
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include "pp-utils.h"
|
||||
|
@ -38,5 +37,3 @@ PpDetailsDialog *pp_details_dialog_new (GtkWindow *parent,
|
|||
void pp_details_dialog_free (PpDetailsDialog *dialog);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_HOST_H__
|
||||
#define __PP_HOST_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gio/gio.h>
|
||||
|
@ -79,5 +78,3 @@ PpDevicesList *pp_host_get_lpd_devices_finish (PpHost *hos
|
|||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_HOST_H__ */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_IPP_OPTION_WIDGET_H__
|
||||
#define __PP_IPP_OPTION_WIDGET_H__
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <cups/cups.h>
|
||||
|
@ -38,5 +37,3 @@ GtkWidget *pp_ipp_option_widget_new (IPPAttribute *attr_supported,
|
|||
const gchar *printer);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_IPP_OPTION_WIDGET_H__ */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Felipe Borges <feborges@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_JOB_H__
|
||||
#define __PP_JOB_H__
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib-object.h>
|
||||
|
@ -58,5 +57,3 @@ gboolean pp_job_authenticate_finish (PpJob *job,
|
|||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_JOBS_DIALOG_H__
|
||||
#define __PP_JOBS_DIALOG_H__
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include "pp-utils.h"
|
||||
|
@ -41,5 +40,3 @@ void pp_jobs_dialog_free (PpJobsDialog *dialog);
|
|||
void pp_jobs_dialog_authenticate_jobs (PpJobsDialog *dialog);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_MAINTENANCE_COMMAND_H__
|
||||
#define __PP_MAINTENANCE_COMMAND_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gio/gio.h>
|
||||
|
@ -51,5 +50,3 @@ gboolean pp_maintenance_command_is_supported_finish (PpMaintenanceC
|
|||
GAsyncResult *result,
|
||||
GError **error);
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_MAINTENANCE_COMMAND_H__ */
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef __PP_NEW_PRINTER_DIALOG_H__
|
||||
#define __PP_NEW_PRINTER_DIALOG_H__
|
||||
#pragma once
|
||||
|
||||
#include "pp-utils.h"
|
||||
|
||||
|
@ -35,5 +34,3 @@ void pp_new_printer_dialog_set_ppd_list (PpNewPrinterDialog *dial
|
|||
PPDList *list);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_NEW_PRINTER_DIALOG_H__ */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_NEW_PRINTER_H__
|
||||
#define __PP_NEW_PRINTER_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gio/gio.h>
|
||||
|
@ -41,5 +40,3 @@ gboolean pp_new_printer_add_finish (PpNewPrinter *host,
|
|||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_NEW_PRINTER_H__ */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_OPTIONS_DIALOG_H__
|
||||
#define __PP_OPTIONS_DIALOG_H__
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include "pp-utils.h"
|
||||
|
@ -39,5 +38,3 @@ void pp_options_dialog_set_callback (PpOptionsDialog *dialog,
|
|||
void pp_options_dialog_free (PpOptionsDialog *dialog);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_PPD_OPTION_WIDGET_H__
|
||||
#define __PP_PPD_OPTION_WIDGET_H__
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <cups/cups.h>
|
||||
|
@ -34,5 +33,3 @@ GtkWidget *pp_ppd_option_widget_new (ppd_option_t *source,
|
|||
const gchar *printer_name);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_PPD_OPTION_WIDGET_H__ */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_PPD_SELECTION_DIALOG_H__
|
||||
#define __PP_PPD_SELECTION_DIALOG_H__
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include "pp-utils.h"
|
||||
|
@ -40,5 +39,3 @@ void pp_ppd_selection_dialog_set_ppd_list (PpPPDSelecti
|
|||
void pp_ppd_selection_dialog_free (PpPPDSelectionDialog *dialog);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_PRINT_DEVICE_H__
|
||||
#define __PP_PRINT_DEVICE_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gio/gio.h>
|
||||
|
@ -47,5 +46,3 @@ gint pp_print_device_get_acquisition_method (PpPrintDevice *device)
|
|||
gboolean pp_print_device_is_network_device (PpPrintDevice *device);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_PRINT_DEVICE_H__ */
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
* Author: Felipe Borges <felipeborges@gnome.org>
|
||||
*/
|
||||
|
||||
#ifndef PP_PRINTER_ENTRY_H
|
||||
#define PP_PRINTER_ENTRY_H
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <cups/cups.h>
|
||||
|
@ -36,5 +35,3 @@ GSList *pp_printer_entry_get_size_group_widgets (PpPrinterEntry *self);
|
|||
void pp_printer_entry_show_jobs_dialog (PpPrinterEntry *self);
|
||||
|
||||
void pp_printer_entry_authenticate_jobs (PpPrinterEntry *self);
|
||||
|
||||
#endif /* PP_PRINTER_ENTRY_H */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_PRINTER_H__
|
||||
#define __PP_PRINTER_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gio/gio.h>
|
||||
|
@ -77,5 +76,3 @@ gboolean pp_printer_print_file_finish (PpPrinter *printer,
|
|||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_PRINTER_H__ */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* Author: Marek Kasik <mkasik@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __PP_SAMBA_H__
|
||||
#define __PP_SAMBA_H__
|
||||
#pragma once
|
||||
|
||||
#include "pp-host.h"
|
||||
#include "pp-utils.h"
|
||||
|
@ -46,5 +45,3 @@ void pp_samba_set_auth_info (PpSamba *samba,
|
|||
const gchar *password);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_SAMBA_H__ */
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef __PP_UTILS_H__
|
||||
#define __PP_UTILS_H__
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <cups/cups.h>
|
||||
|
@ -266,5 +265,3 @@ gchar *canonicalize_device_name (GList *device_names,
|
|||
void shift_string_left (gchar *str);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __PP_UTILS_H */
|
||||
|
|
Loading…
Add table
Reference in a new issue