Hello all.
I finally got back from my weekend trip out of town, and finally got
the mess my cats made cleaned up.
Attached is a patch for cdebconf that adds a gtk2.0 frontend. It is
relatively complete. The select and text handlers are not finished,
but there is enough to be tested here. I was unable to figure out the
cdebconf tests dir, so if someone can explain to me how they work, I
can do much better testing on it myself. For now, I've just been
making little hello world type apps to test the functionality of
each handler. The multiselect, password, string and note handlers are
ready.
Still to be done is to figure out a better way to manage the flow. As
it is, I'm creating a new dialog for each question and calling
gtk_main each time. This can probably be improved.
Also, the select handler uses a radio button, but as I had no net
access and only had access to gtk2.0-doc, I couldn't finish it, as the
examples there are not very complete. It works as long as you don't
select the first radio button.
Lastly ,the text handler is mostly incomplete. The widget is created,
but I'm not extracting the data entered in it. It still has lots of
formatting to do.
In addition, since gtk relies heavily on callback functions, I put
most of my data in global variables (YUCK!). I need a little bit of
explanation on this c file as class thing so that I can fix that.
Another issue is the actual visual layout. I need to work on that
more, once I get a look at some more documentation. The next and back
buttons need to be right justified and the dialog needs to be
fullscreen.
So, this needs a lot more work, that I will continue to do, but I
think it's a good enough start to be looked over, and possibly
tested.
Another issue at hand, now that this is almost ready, is the question
of udebs for X and gtk. Should I start on those? Or can we safely
assume that the X install medium is going to have lots of space, and
thus use regular debs. I don't mind working on the udebs, I just want
to know what you guys think.
Also, I haven't tested my change to configure yet, as I didn't have
autoconf handy, but it looks right to me.
Thank you
michael
--
michael cardenas | lead software engineer | lindows.com | hyperpoem.net
How terrible to watch a man who has the Incomprehensible within his grasp, doesn't
know what to do, and sits down playing with a toy called God.
- Fyodor Dostoyevsky
Binary files frontend.orig/bogl/bogl.opic and frontend/bogl/bogl.opic differ
Binary files frontend.orig/bogl/bogl.so and frontend/bogl/bogl.so differ
Binary files frontend.orig/bogl.so and frontend/bogl.so differ
diff -Nur frontend.orig/gtk/CVS/Entries frontend/gtk/CVS/Entries
--- frontend.orig/gtk/CVS/Entries Wed Dec 31 16:00:00 1969
+++ frontend/gtk/CVS/EntriesWed Aug 28 23:24:55 2002
@@ -0,0 +1,3 @@
+/Makefile/1.4/Tue Jul 9 05:25:05 2002//
+/text.c/1.13/Wed Aug 7 16:19:51 2002//
+D
diff -Nur frontend.orig/gtk/CVS/Repository frontend/gtk/CVS/Repository
--- frontend.orig/gtk/CVS/RepositoryWed Dec 31 16:00:00 1969
+++ frontend/gtk/CVS/Repository Wed Aug 28 23:24:55 2002
@@ -0,0 +1 @@
+debian-installer/tools/cdebconf/src/modules/frontend/text
diff -Nur frontend.orig/gtk/CVS/Root frontend/gtk/CVS/Root
--- frontend.orig/gtk/CVS/Root Wed Dec 31 16:00:00 1969
+++ frontend/gtk/CVS/Root Wed Aug 28 23:24:55 2002
@@ -0,0 +1 @@
+:pserver:[EMAIL PROTECTED]:/cvs/debian-boot
diff -Nur frontend.orig/gtk/Makefile frontend/gtk/Makefile
--- frontend.orig/gtk/Makefile Wed Dec 31 16:00:00 1969
+++ frontend/gtk/Makefile Sat Aug 31 18:31:54 2002
@@ -0,0 +1,8 @@
+MODULE=gtk
+SOBJ=gtk.so
+OBJS=gtk.opic
+INCLUDES=`pkg-config --cflags gtk+-2.0`
+
+MODLDFLAGS=`pkg-config --libs gtk+-2.0`
+
+include ../modules.mak
diff -Nur frontend.orig/gtk/gtk.c frontend/gtk/gtk.c
--- frontend.orig/gtk/gtk.c Wed Dec 31 16:00:00 1969
+++ frontend/gtk/gtk.c Tue Sep 3 17:01:25 2002
@@ -0,0 +1,1054 @@
+/***
+ *
+ * cdebconf - An implementation of the Debian Configuration Management
+ *System
+ *
+ * File: gtk.c
+ *
+ * Description: gtk UI for cdebconf
+ * Some notes on the implementation - optimistic at best.
+ * mbc - just to get this off of the ground, Im' creating a dialog
+ *and calling gtk_main for each question. once I get the tests
+ *running, I'll probably send a delete_event signal in the
+ *next and back button callbacks.
+ *
+ *There is some rudimentary attempt at implementing the next
+ *and back functionality.
+ *
+ * $Id: text.c,v 1.13 2002/08/07 16:19:51 tfheen Exp $
+ *
+ * cdebconf is (c) 2000-2001 Randolph Chung and others under the following
+ * license.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *