mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
66 lines
1.8 KiB
C
66 lines
1.8 KiB
C
![]() |
/* GIMP - The GNU Image Manipulation Program
|
||
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||
|
*
|
||
|
* gimpapp.c
|
||
|
* Copyright (C) 2021 Niels De Graef <nielsdegraef@gmail.com>
|
||
|
*
|
||
|
* 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
|
||
|
* Library 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
|
||
|
* <https://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#include <config.h>
|
||
|
|
||
|
#include "gimpconsoleapp.h"
|
||
|
|
||
|
#include "libgimpbase/gimpbase.h"
|
||
|
|
||
|
struct _GimpConsoleApp
|
||
|
{
|
||
|
GApplication parent_instance;
|
||
|
};
|
||
|
|
||
|
G_DEFINE_TYPE_WITH_CODE (GimpConsoleApp, gimp_console_app, G_TYPE_APPLICATION,
|
||
|
G_IMPLEMENT_INTERFACE (GIMP_TYPE_CORE_APP,
|
||
|
gimp_console_app_class_init))
|
||
|
|
||
|
|
||
|
static void
|
||
|
gimp_console_app_class_init (GimpConsoleAppClass *klass)
|
||
|
{
|
||
|
GObjectClass *gobj_class = G_OBJECT_CLASS (klass);
|
||
|
|
||
|
gobj_class->finalize = gimp_core_app_finalize;
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
gimp_console_app_init (GimpConsoleApp *self)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/* public functions */
|
||
|
|
||
|
GApplication *
|
||
|
gimp_console_app_new (Gimp *gimp,
|
||
|
gboolean quit,
|
||
|
gboolean as_new,
|
||
|
const char **filenames,
|
||
|
const char *batch_interpreter,
|
||
|
const char **batch_commands)
|
||
|
{
|
||
|
GimpConsoleApp *app;
|
||
|
|
||
|
app = g_object_new (GIMP_TYPE_CONSOLE_APP, NULL);
|
||
|
|
||
|
gimp_core_app_set_values (GIMP_CORE_APP (app), gimp,
|
||
|
quit, as_new, filenames,
|
||
|
batch_interpreter, batch_commands);
|
||
|
|
||
|
return G_APPLICATION (app);
|
||
|
}
|