Drop gtkunixprint-autocleanups.h

Move these definitions where they belong
and git rid of an auxiliary header we don't
need anymore.
This commit is contained in:
Matthias Clasen
2023-06-06 22:18:12 -04:00
parent 84e345adac
commit 50c3ea064b
6 changed files with 6 additions and 31 deletions

View File

@@ -160,5 +160,7 @@ void gtk_enumerate_printers (GtkPrinterFunc func,
GDestroyNotify destroy,
gboolean wait);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPrinter, g_object_unref)
G_END_DECLS

View File

@@ -140,5 +140,7 @@ GDK_AVAILABLE_IN_ALL
void gtk_print_job_set_reverse (GtkPrintJob *job,
gboolean reverse);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPrintJob, g_object_unref)
G_END_DECLS

View File

@@ -85,5 +85,7 @@ gboolean gtk_print_unix_dialog_get_embed_page_setup (GtkPrintUnix
GDK_AVAILABLE_IN_ALL
gboolean gtk_print_unix_dialog_get_page_setup_set (GtkPrintUnixDialog *dialog);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPrintUnixDialog, g_object_unref)
G_END_DECLS

View File

@@ -1,28 +0,0 @@
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined (__GTK_UNIX_PRINT_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtkunixprint.h> can be included directly."
#endif
#ifndef __GI_SCANNER__
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPrintJob, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPrinter, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPrintUnixDialog, g_object_unref)
#endif

View File

@@ -23,7 +23,5 @@
#include <gtk/gtkprintjob.h>
#include <gtk/gtkprintunixdialog.h>
#include <gtk/gtkunixprint-autocleanups.h>
#undef __GTK_UNIX_PRINT_H_INSIDE__

View File

@@ -690,7 +690,6 @@ if os_unix
'gtkprintunixdialog.h',
'gtkprinter.h',
'gtkprintjob.h',
'gtkunixprint-autocleanups.h',
'gtkunixprint.h',
]
install_headers(gtk_unix_print_headers, subdir: 'gtk-4.0/unix-print/gtk')