/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ /* about.c Copyright (C) 2002 Naba Kumar 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "about.h" #define ANJUTA_PIXMAP_LOGO "anjuta_logo.png" #define ABOUT_AUTHORS "AUTHORS" #define MAX_CAR 256 #define MAX_CREDIT 500 const gchar *authors[MAX_CREDIT]; const gchar *documenters[MAX_CREDIT]; gchar *translators; static gchar* about_read_line(FILE *fp) { static gchar tpn[MAX_CAR]; char *pt; char c; pt = tpn; while( ((c=getc(fp))!='\n') && (c!=EOF) && ((pt-tpn)data; if (anjuta_plugin_description_get_string (desc, "Anjuta Plugin", "Name", &label)) { gchar *authors; if (anjuta_plugin_description_get_string (desc, "Anjuta Plugin", "Authors", &authors)) { item = gtk_menu_item_new_with_label (label); gtk_widget_show (item); g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK (on_about_plugin_activate), desc); gtk_menu_shell_append (GTK_MENU_SHELL (submenu), item); g_free (authors); } g_free (label); } node = g_list_next (node); } }