2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or
5
* (at your option) any later version.
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU Library General Public License for more details.
12
* You should have received a copy of the GNU Library General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
#include "interface.h"
27
#define cuantos (sizeof(tabla)/sizeof(GtkTargetEntry))
35
static GtkTargetEntry tabla[]={
36
{ "STRING", 0, TARGET_STRING },
37
{ "text/plain", 0, TARGET_STRING },
38
{ "text/uri-list", 0, TARGET_URL },
39
{ "application/x-troff-man", 0, TARGET_MAN }
44
main (int argc, char *argv[])
46
GtkWidget *wprincipal;
50
bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
55
gtk_init (&argc, &argv);
56
gnome_init("gmanedit",VERSION,argc,argv);
59
* The following code was added by Glade to create one of each component
60
* (except popup menus), just so that you see something after building
61
* the project. Delete any components that you don't want shown initially.
63
wprincipal = create_wprincipal ();
64
gtk_widget_show (wprincipal);
66
text=lookup_widget(GTK_WIDGET(wprincipal),"text");
68
gtk_drag_dest_set(text, GTK_DEST_DEFAULT_ALL, tabla, cuantos-1,
69
GDK_ACTION_COPY|GDK_ACTION_MOVE);