Comments for Aardvark Calculator

12 Feb 2010 16:16 Ginnder

Ubuntu 9.10 discontinued GTK1.2... Joy... Here's a quick hack to convert to GTK2
diff -Naru acalc-0.0.48/acalc.c acalc-0.0.49/acalc.c
--- acalc-0.0.48/acalc.c 2002-04-06 15:14:46.000000000 -0600
+++ acalc-0.0.49/acalc.c 2010-01-31 00:54:12.594722538 -0600
@@ -1,6 +1,6 @@
/* acalc.c
Aardvark Calculator
- v0.0.48 */
+ v0.0.49 */

#include "calc.h"

diff -Naru acalc-0.0.48/acalc.lsm acalc-0.0.49/acalc.lsm
--- acalc-0.0.48/acalc.lsm 2002-04-06 16:54:57.000000000 -0600
+++ acalc-0.0.49/acalc.lsm 2010-01-31 00:54:12.590724683 -0600
@@ -1,13 +1,13 @@
Begin4
Title: Aardvark Calculator
-Version: 0.0.48
+Version: 0.0.49
Entered-date: 2002-04-06
Description: Aardvark Calculator is a simple GTK+- or curses-based RPN calculator.
Keywords: calculator RPN GTK+ curses
Author: minch@u.arizona.edu (Jared Minch)
Maintained-by: minch@u.arizona.edu (Jared Minch)
Primary-site: ibiblio.org /pub/linux/apps/math/calc
- acalc-0.0.48.tar.gz
+ acalc-0.0.49.tar.gz
acalc.lsm
Alternate-site:
Original-site:
diff -Naru acalc-0.0.48/iface_g.c acalc-0.0.49/iface_g.c
--- acalc-0.0.48/iface_g.c 2002-04-06 15:10:12.000000000 -0600
+++ acalc-0.0.49/iface_g.c 2010-01-31 00:54:12.594722538 -0600
@@ -2,6 +2,7 @@
*
* GTK+ interface for acalc */

+#define GTK_ENABLE_BROKEN
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>
@@ -15,7 +16,7 @@
#define NUM_INDICATORS 0
#endif

-#define WINDOW_TITLE "Aardvark Calculator 0.0.48"
+#define WINDOW_TITLE "Aardvark Calculator 0.0.49"

/* Indicator structure */
struct ind {
@@ -354,7 +355,7 @@

/* Adjust the stack window to the very bottom possible */
adj = gtk_range_get_adjustment(&(GTK_SCROLLBAR(w.stacksb)->range));
- gtk_adjustment_set_value(GTK_ADJUSTMENT(adj), adj->upper);
+ gtk_adjustment_set_value(GTK_ADJUSTMENT(adj), adj->upper - adj->page_size);
}

gint handle_keypress(GtkWidget *widget, GdkEvent *event, gpointer data)
@@ -414,7 +415,8 @@
char pbuf[80], pbuf2[80], *pbp[2];

/* create widgets */
- win = gtk_window_new(GTK_WINDOW_DIALOG);
+ //win = gtk_window_new(GTK_WINDOW_DIALOG);
+ win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
box = gtk_vbox_new(FALSE, 5);
listview = gtk_scrolled_window_new(NULL, NULL);
list = gtk_clist_new(2);
diff -Naru acalc-0.0.48/Makefile acalc-0.0.49/Makefile
--- acalc-0.0.48/Makefile 2002-04-06 16:58:29.000000000 -0600
+++ acalc-0.0.49/Makefile 2010-01-31 00:57:12.113757974 -0600
@@ -8,8 +8,8 @@

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.