diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2005-07-23 00:32:58 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-07-23 00:32:58 +0000 |
commit | 57808a977840bce11bdbab373d9eacaba7ef88c1 (patch) | |
tree | 6dbbffc45340d14982e480fe2e44eda7f3eb6818 /packages/gpsdrive/files/gpsdrive-pda-fix.patch | |
parent | f15f94e2172ee62bbcef33c6e9fd4bfb03f492e4 (diff) | |
parent | 94fc3b85d8e58f9d74cb5dbd77e699043ddb9c7d (diff) |
propagate from branch 'org.openembedded.dev' (head bd1eab971c784a6487568f750750a55c7ed91645)
to branch 'org.openembedded.nslu2-linux' (head 21dd4bb6e90851d186cc369473433e19b55c0d11)
Diffstat (limited to 'packages/gpsdrive/files/gpsdrive-pda-fix.patch')
-rw-r--r-- | packages/gpsdrive/files/gpsdrive-pda-fix.patch | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/packages/gpsdrive/files/gpsdrive-pda-fix.patch b/packages/gpsdrive/files/gpsdrive-pda-fix.patch new file mode 100644 index 0000000000..f76d83e3ad --- /dev/null +++ b/packages/gpsdrive/files/gpsdrive-pda-fix.patch @@ -0,0 +1,72 @@ +--- src/gpsdrive.c 2005-07-22 23:17:36.452918848 +0200 ++++ src/gpsdrive.c 2005-07-23 01:02:40.482560672 +0200 +@@ -10516,7 +10516,7 @@ + PangoFontDescription *font_desc; + font_desc = + pango_font_description_from_string +- ("Sans 20"); ++ ("Sans 10"); + gtk_widget_modify_font (myroutelist, font_desc); + pango_font_description_free (font_desc); + } +@@ -12343,6 +12343,8 @@ + GDK_BUTTON_PRESS_MASK); + gtk_signal_connect (GTK_OBJECT (drawing_sats), "button-press-event", + GTK_SIGNAL_FUNC (satpos_cb), NULL); ++ if(!pdamode) ++ { + frame_sats = gtk_frame_new (_("GPS Info")); + sateventbox = gtk_event_box_new (); + gtk_container_add (GTK_CONTAINER (sateventbox), drawing_sats); +@@ -12386,7 +12388,7 @@ + + gtk_box_pack_start (GTK_BOX (hbox2), frame_sats, FALSE, FALSE, + 1 * PADDING); +- ++ } + havebattery = battery_get_values (); + if (debug) + fprintf (stderr, "batt: %d, temp: %d\n", havebattery, +@@ -12569,9 +12571,11 @@ + /* if (!pdamode) */ + /* gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE, */ + /* 1 * PADDING); */ +- ++ if (!pdamode) ++ { + frame_altitude = gtk_frame_new (_("Altitude")); + gtk_container_add (GTK_CONTAINER (frame_altitude), altilabel); ++ } + /*** Mod by Arms */ + /* if (!pdamode) */ + /* gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE, */ +@@ -12904,23 +12908,23 @@ + if (onemousebutton) + { + /* gtk_misc_set_padding (GTK_MISC (l1), x, y); */ +- gtk_misc_set_padding (GTK_MISC (l1), 50, 1); +- gtk_misc_set_padding (GTK_MISC (l2), 50, 1); +- gtk_misc_set_padding (GTK_MISC (l3), 50, 1); ++ gtk_misc_set_padding (GTK_MISC (l1), 20, 1); ++ gtk_misc_set_padding (GTK_MISC (l2), 20, 1); ++ gtk_misc_set_padding (GTK_MISC (l3), 20, 1); + + /* http://developer.gnome.org/doc/API/2.0/pango/PangoMarkupFormat.html */ + + char *markup; + markup = g_markup_printf_escaped +- ("<span weight='heavy' stretch='ultraexpanded' size='20480'>%s</span>", ++ ("<span font_desc='10'>%s</span>", + _("Map")); + gtk_label_set_markup (GTK_LABEL (l1), markup); + markup = g_markup_printf_escaped +- ("<span weight='heavy' stretch='ultraexpanded' size='20480'>%s</span>", ++ ("<span font_desc='10'>%s</span>", + _("Menu")); + gtk_label_set_markup (GTK_LABEL (l2), markup); + markup = g_markup_printf_escaped +- ("<span weight='heavy' stretch='ultraexpanded' size='20480'>%s</span>", ++ ("<span font_desc='10'>%s</span>", + _("Status")); + gtk_label_set_markup (GTK_LABEL (l3), markup); + |