X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/7db3d5624cfb59506bc01339ac682c456266ac56..5fb804f880836324897bc519615625410720d886:/src/gui/lbxgui.c diff --git a/src/gui/lbxgui.c b/src/gui/lbxgui.c index be629fd..2ce714f 100644 --- a/src/gui/lbxgui.c +++ b/src/gui/lbxgui.c @@ -1,3 +1,21 @@ +/* + * 2ooM: The Master of Orion II Reverse Engineering Project + * Graphical tool for inspecting LBX archives. + * Copyright (C) 2010 Nick Bowler + * + * 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 3 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, see . + */ #include #include #include @@ -11,6 +29,8 @@ #include "bg.xbm" +extern char lbxgui_xml[]; + static GtkTreeStore *archives; static GtkBuilder *builder; @@ -435,7 +455,7 @@ static void init_background(GdkDrawable *drawable) bg_gc = gdk_gc_new(canvas->window); - bitmap = gdk_bitmap_create_from_data(drawable, bg_bits, + bitmap = gdk_bitmap_create_from_data(drawable, (gchar *)bg_bits, bg_width, bg_height); gdk_gc_set_stipple(bg_gc, bitmap); @@ -462,7 +482,7 @@ int main(int argc, char **argv) load_archive(*argv++); builder = gtk_builder_new(); - if (!gtk_builder_add_from_file(builder, "src/gui/lbxgui.glade", &err)) { + if (!gtk_builder_add_from_string(builder, lbxgui_xml, -1, &err)) { fprintf(stderr, "%s\n", err->message); return EXIT_FAILURE; }