* USA
*/
-#include <gnome.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib.h>
+#include <gtk/gtk.h>
+#include <locale.h>
+#include <libintl.h>
+
+#define _(STRING) gettext(STRING)
/* Routines from main.c */
void Debug(char *fmt,...);
#ifndef GRIP_DISCDB_H
#define GRIP_DISCDB_H
+#include <stdio.h>
+
/* HTTP proxy server structure */
typedef struct _proxy_server {
#include <X11/Xlib.h>
#include <time.h>
#include "grip.h"
-#include <libgnomeui/gnome-window-icon.h>
#include "discdb.h"
#include "cdplay.h"
#include "discedit.h"
int major,minor,point;
char buf[256];
+#ifdef CONVERSION_GNOME_TO_GTK
gnome_window_icon_set_default_from_file(GNOME_ICONDIR"/gripicon.png");
+#endif
- app=gnome_app_new(PACKAGE,_("Grip"));
+ app = gtk_window_new(GTK_WINDOW_TOPLEVEL);
ginfo=g_new0(GripInfo,1);
gtk_box_pack_start(GTK_BOX(uinfo->winbox),uinfo->controls,FALSE,FALSE,0);
gtk_widget_show(uinfo->controls);
- gnome_app_set_contents(GNOME_APP(app),uinfo->winbox);
+ gtk_container_add(GTK_CONTAINER(app), uinfo->winbox);
gtk_widget_show(uinfo->winbox);
CheckNewDisc(ginfo,FALSE);
section=(char *)data;
+#ifdef CONVERSION_GNOME_TO_GTK
gnome_help_display("grip.xml",section,NULL);
+#endif
}
static void MakeHelpPage(GripInfo *ginfo)
#define GRIP_H
#include "config.h"
-#include <gnome.h>
#include "cddev.h"
#include "discdb.h"
#include "pthread.h"
#include <sys/stat.h>
#include <unistd.h>
#include "grip.h"
+#include "common.h"
#include "gripcfg.h"
#include "dialog.h"
#include "parsecfg.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <gnome.h>
#include "grip_id3.h"
+#include "common.h"
static void ID3Put(char *dest,char *src,int len,char *encoding);
*/
#include <config.h>
-#include <gnome.h>
+#include <glib.h>
+#include <glib/gi18n.h>
+#include <popt.h>
#include <stdlib.h>
#include "grip.h"
int Cmain(int argc, char* argv[])
{
+ poptContext context;
+ int status;
+
/* Unbuffer stdout */
setvbuf(stdout, 0, _IONBF, 0);
bindtextdomain(GETTEXT_PACKAGE,GNOMELOCALEDIR);
textdomain(GETTEXT_PACKAGE);
- gnome_program_init(PACKAGE,VERSION,LIBGNOMEUI_MODULE,argc,argv,
- GNOME_PARAM_POPT_TABLE,options,
- GNOME_PROGRAM_STANDARD_PROPERTIES,NULL);
+ gtk_init(&argc, &argv);
+ context = poptGetContext(NULL, argc, (const char **) argv, options, 0);
+ status = poptGetNextOpt(context);
+ if (status != -1) {
+ fprintf(stderr, "Error with option [%s]:\n %s\n",
+ poptBadOption(context, POPT_BADOPTION_NOALIAS),
+ poptStrerror(status));
+
+ /* Print a short usage message. */
+ poptPrintUsage(context, stderr, 0);
+
+ exit(1);
+ }
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF8");
setenv("CHARSET","UTF-8",1);
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include "common.h"
#include "grip.h"
#include "parsecfg.h"
#include <fcntl.h>
#include <vte/vte.h>
#include "status_window.h"
+#include "common.h"
static void PipeCB(gpointer data,gint source,GdkInputCondition condition);
#include "../pixmaps/menustop.xpm"
#include "../pixmaps/menuprev.xpm"
#include "../pixmaps/menunext.xpm"
+#include "common.h"
static void MakeTrayIcon(GripInfo *ginfo);
static void PlayCB(GtkWidget *widget, gpointer data);