Clean up some unused stuff

This commit is contained in:
Jean-Michel Vourgère 2012-07-04 15:11:46 +02:00
parent e6937ea306
commit 39019c8a6f
4 changed files with 2 additions and 48 deletions

View File

@ -2,7 +2,7 @@ SUBDIRS = help gladefiles pixmaps
bin_PROGRAMS = gmdb2
include_HEADERS = gmdb.h
gmdb2_SOURCES = main2.c file.c util.c table.c info.c table_def.c table_data.c table_export.c debug.c sql.c schema.c prefs.c
gmdb2_SOURCES = main2.c file.c table.c info.c table_def.c table_data.c table_export.c debug.c sql.c schema.c prefs.c
LIBS = -rdynamic $(GNOME_LIBS) @LIBS@ @LEXLIB@
AM_CPPFLAGS = -I$(top_srcdir)/include \
$(GNOME_CFLAGS) \

View File

@ -14,7 +14,7 @@
extern "C" {
#endif /* __cplusplus */
void gmdb_info_msg(gchar *message);
/* info.c */
GtkWidget *gmdb_info_new(void);
/* main2.c */

View File

@ -20,14 +20,9 @@
#include <gtk/gtkiconview.h>
#include <glade/glade.h>
GtkWidget *table_list;
GtkWidget *table_data_window;
GtkWidget *table_def_window;
extern GtkWidget *app;
extern GladeXML* mainwin_xml;
extern MdbHandle *mdb;
int selected_table = -1;
extern char *mdb_access_types[];
/* callbacks */
void

View File

@ -1,41 +0,0 @@
/* MDB Tools - A library for reading MS Access database file
* Copyright (C) 2000 Brian Bruns
*
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "gmdb.h"
void gmdb_info_msg(gchar *message) {
GtkWidget *dialog, *label, *okay_button;
/* Create the widgets */
dialog = gtk_dialog_new();
gtk_widget_set_uposition(dialog, 300, 300);
label = gtk_label_new (message);
gtk_widget_set_usize(label, 250, 100);
okay_button = gtk_button_new_with_label("Okay");
/* Ensure that the dialog box is destroyed when the user clicks ok. */
g_signal_connect_swapped (G_OBJECT (okay_button), "clicked",
G_CALLBACK (gtk_widget_destroy), dialog);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->action_area),
okay_button);
/* Add the label, and show everything we've added to the dialog. */
gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label);
gtk_widget_show_all (dialog);
}