gtk_widget_queue_draw(GTK_WIDGET(appdata->digit_array[2]));
}
+// used only in testing...
void randomize(AppData* appdata) {
g_assert(appdata);
gint32 n = g_random_int_range(0, 3);
gtk_container_add(GTK_CONTAINER(appdata->window), GTK_WIDGET(vbox));
-
// set backgrounds black
set_widget_bg_black(GTK_WIDGET(appdata->window));
set_widget_bg_black(bottom_e);
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
- ****/
+****/
+
#include <math.h>
#include <location/location-gps-device.h>
#include <location/location-gpsd-control.h>
#include "callbacks.h"
#include "ui.h"
+
+gdouble unit_array[] = {3.6};
+
#define GCONF_KEY "/apps/Maemo/speedometer/disclaimer"
static LocationGPSDevice *device = NULL;
g_print("Speed is %s km/h\n", charspeed);
+ // set the main digits
guint i = 3;
while(i) {
i--;
set_nth_digit(appdata, i, g_ascii_digit_value(charspeed[i]));
}
+
repaint_all_digits(appdata);
g_free(charspeed);
"which means (among other things) that you don't have to pay "
"a dime for it. "
"If you think, however, that this software is worth it, you "
- "can always drop me a postcard.\n\n"
+ "can always drop me a postcard. (or a speeding ticket :)\n\n"
"Wellu Mäkinen\n"
"PO BOX\n"
"33580 Tampere\n"