Logo Search packages:      
Sourcecode: nautilus-media version File versions

main.c

/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */

/* 
 * Copyright (C) 2000 Eazel, 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 2 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, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Author: Maciej Stachowiak <mjs@eazel.com>
 */

/* main.c - Main function and object activation function for sample
 * view component.
 */

/* WHAT YOU NEED TO CHANGE: You need to change include
 * component-specific header below the include of config.h. Then look
 * for the CHANGE comments below and change the #defines.
 */

#include <config.h>

#include "nautilus-test-view.h"
#include <libnautilus/nautilus-view-standard-main.h>

/* CHANGE: Replace these OAFIIDs with the new ones you put in the
 * .server file. 
 */
#define FACTORY_IID "OAFIID:Nautilus_Test_View_Factory"
#define VIEW_IID    "OAFIID:Nautilus_Test_View"

/* CHANGE: Change to your executable name */
#define EXECUTABLE_NAME "nautilus-test-view"

/* CHANGE: Change to the get_type function for your view class */
#define GET_TYPE_FUNCTION nautilus_test_view_get_type

int
main (int argc, char *argv[])
{
      return nautilus_view_standard_main (EXECUTABLE_NAME,
                                  VERSION,
                                  NULL,   /* Could be PACKAGE */
                                  NULL,   /* Could be GNOMELOCALEDIR */
                                  argc,
                                  argv,
                                  FACTORY_IID,
                                  VIEW_IID,
                                  nautilus_view_create_from_get_type_function,
                                  NULL,
                                  GET_TYPE_FUNCTION);
}

Generated by  Doxygen 1.6.0   Back to index