File: app.c

package info (click to toggle)
appstream-glib 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,984 kB
  • sloc: ansic: 38,749; xml: 840; sh: 23; makefile: 14; cpp: 1
file content (16 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 * Copyright (C) 2014 Richard Hughes <richard@hughsie.com>
 * SPDX-License-Identifier: LGPL-2.1+ */

#include <gtk/gtk.h>

int
main (int argc, char *argv[])
{
	GtkApplication *app;
	gtk_init (&argc, &argv);
	app = gtk_application_new ("org.freedesktop.AppStream", G_APPLICATION_FLAGS_NONE);
	gtk_application_get_menu_by_id (app, "not-going-to-exist");
	g_object_unref (app);
	return 0;
}