Commit 6995e578 authored by David King's avatar David King
Browse files

Initial commit

parents
Makefile
/INSTALL
/Makefile.in
/autom4te.cache/
/build-aux/
/aclocal.m4
/config.*
/configure
/stamp-h1
David King <davidk@gnome.org>
This diff is collapsed.
If you are seeing this, use 'git log' for a detailed list of changes.
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
bin_PROGRAMS = gnome-logs
gnome_logs_CPPFLAGS = \
-I$(top_builddir)
gnome_logs_CFLAGS = \
$(LOGS_CFLAGS)
gnome_logs_LDADD = \
$(LOGS_LIBS)
gnome_logs_SOURCES = \
src/gl-main.c
dist_noinst_SCRIPTS = \
autogen.sh
MAINTAINERCLEANFILES = \
build-aux/compile \
build-aux/config.guess \
build-aux/config.sub \
build-aux/depcomp \
build-aux/install-sh \
build-aux/missing \
aclocal.m4 \
config.h.in \
mkinstalldirs
GNOME Logs
GNOME Logs is a log viewer for the systemd journal
#!/bin/sh
# Run this to generate all the initial Makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="gnome-logs"
(test -f $srcdir/src/gl-main.c) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
mkdir -p "$srcdir"/build-aux "$srcdir"/m4
which gnome-autogen.sh || {
echo "You need to install gnome-common"
exit 1
}
ACLOCAL_FLAGS="$ACLOCAL_FLAGS" USE_GNOME2_MACROS=1 . gnome-autogen.sh
AC_INIT([GNOME Logs],
[0.1],
[davidk@gnome.org],
[gnome-logs],
[https://wiki.gnome.org/Design/Apps/SystemLog])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/gl-main.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.11 -Wall dist-xz no-define no-dist-gzip nostdinc subdir-objects])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
dnl Check for programs
AC_PROG_CC
AM_PROG_CC_C_O
PKG_PROG_PKG_CONFIG([0.24])
dnl Libraries
PKG_CHECK_MODULES([LOGS], [gtk+-3.0])
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT
/*
* GNOME Logs - View and search logs
* Copyright (C) 2013 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, see <http://www.gnu.org/licenses/>.
*/
#include <gtk/gtk.h>
static void
on_application_activate (GApplication *app,
gpointer user_data)
{
GtkWidget *widget;
widget = gtk_application_window_new (GTK_APPLICATION (app));
gtk_widget_show (widget);
}
int
main (int argc,
char **argv)
{
GtkApplication *application;
int status;
application = gtk_application_new ("org.gnome.Logs",
G_APPLICATION_FLAGS_NONE);
g_signal_connect (application, "activate",
G_CALLBACK (on_application_activate), NULL);
status = g_application_run (G_APPLICATION (application), argc, argv);
g_object_unref (application);
return status;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment