Remove wrong lines, probably copy-pasted
authorRicardo Mones <ricardo@mones.org>
Thu, 6 Feb 2020 15:24:03 +0000 (16:24 +0100)
committerRicardo Mones <ricardo@mones.org>
Thu, 6 Feb 2020 15:24:03 +0000 (16:24 +0100)
Fixes errors:
editjpilot.c:257:35: error: ‘entry_name’ undeclared (first use in this function)
editjpilot.c:294:3: error: ‘top’ undeclared (first use in this function);

src/editjpilot.c

index 8684ffaa87cd09cb5fb9e5e6108248d99d867e7e..0580dbba492b777607ec1f6add1f1150c2bce0cf 100644 (file)
@@ -254,7 +254,7 @@ static void addressbook_edit_jpilot_create( gboolean *cancelled ) {
        /* First row */
        label = gtk_label_new(_("Name"));
        gtk_label_set_xalign(GTK_LABEL(label), 0.0);
-       gtk_grid_attach(GTK_GRID(table), entry_name, 1, 0, 1, 1);
+       gtk_grid_attach(GTK_GRID(table), label, 0, 0, 1, 1);
 
        name_entry = gtk_entry_new();
        gtk_grid_attach(GTK_GRID(table), name_entry, 1, 0, 1, 1);
@@ -291,7 +291,6 @@ static void addressbook_edit_jpilot_create( gboolean *cancelled ) {
                gtk_box_pack_start( GTK_BOX(hlbox), custom_label[i], TRUE, TRUE, 0 );
                gtk_box_pack_start( GTK_BOX(vbox_custom), hlbox, TRUE, TRUE, 0 );
                gtk_label_set_xalign(GTK_LABEL(custom_label[1]), 0.0);
-               top++;
        }
        gtk_container_add (GTK_CONTAINER (frame_custom), vbox_custom);
        gtk_container_set_border_width( GTK_CONTAINER(vbox_custom), 8 );