From: Kaj-Michael Lang Date: Thu, 24 Jan 2008 16:27:14 +0000 (+0200) Subject: Small display changes to map repo dialog X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa73c763ca0e3cb1e95a5d1e3be15b142e63e853;p=mapper Small display changes to map repo dialog --- diff --git a/src/map-repo.c b/src/map-repo.c index 02c9726..5b02926 100644 --- a/src/map-repo.c +++ b/src/map-repo.c @@ -317,31 +317,18 @@ gtk_notebook_append_page(GTK_NOTEBOOK(rmi->notebook), vbox = gtk_vbox_new(FALSE, 4), gtk_label_new(name)); - gtk_box_pack_start(GTK_BOX(vbox), - table = gtk_table_new(2, 2, FALSE), FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), table = gtk_table_new(2, 2, FALSE), FALSE, FALSE, 0); /* Map download URI. */ - gtk_table_attach(GTK_TABLE(table), - label = gtk_label_new(_("URL Format")), - 0, 1, 0, 1, GTK_FILL, 0, 2, 4); + gtk_table_attach(GTK_TABLE(table), label = gtk_label_new(_("URL Format")), 0, 1, 0, 1, GTK_FILL, 0, 2, 4); gtk_misc_set_alignment(GTK_MISC(label), 1.f, 0.5f); - gtk_table_attach(GTK_TABLE(table), - rei->txt_url = gtk_entry_new(), - 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 2, 4); + gtk_table_attach(GTK_TABLE(table), rei->txt_url = gtk_entry_new(), 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 2, 4); /* Map Directory. */ - gtk_table_attach(GTK_TABLE(table), - label = gtk_label_new(_("Cache Dir.")), - 0, 1, 1, 2, GTK_FILL, 0, 2, 4); + gtk_table_attach(GTK_TABLE(table), label = gtk_label_new(_("Cache Dir.")), 0, 1, 1, 2, GTK_FILL, 0, 2, 4); gtk_misc_set_alignment(GTK_MISC(label), 1.f, 0.5f); - gtk_table_attach(GTK_TABLE(table), - hbox = gtk_hbox_new(FALSE, 4), - 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 2, 4); - gtk_box_pack_start(GTK_BOX(hbox), - rei->txt_cache_dir = gtk_entry_new(), TRUE, TRUE, 0); - gtk_box_pack_start(GTK_BOX(hbox), - rei->btn_browse = - gtk_button_new_with_label(_("Browse...")), FALSE, - FALSE, 0); + gtk_table_attach(GTK_TABLE(table), hbox = gtk_hbox_new(FALSE, 4), 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 2, 4); + gtk_box_pack_start(GTK_BOX(hbox), rei->txt_cache_dir = gtk_entry_new(), TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(hbox), rei->btn_browse = gtk_button_new_with_label(_("Browse...")), FALSE, FALSE, 0); /* Initialize cache dir */ { @@ -352,13 +339,12 @@ gtk_notebook_append_page(GTK_NOTEBOOK(rmi->notebook), g_free(cache_base); } - gtk_box_pack_start(GTK_BOX(vbox), - table = gtk_table_new(3, 2, FALSE), FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), table = gtk_table_new(3, 2, FALSE), FALSE, FALSE, 0); /* Download Zoom Steps. */ gtk_table_attach(GTK_TABLE(table), label = gtk_label_new(_("Download Zoom Steps")), 0, 1, 0, 1, GTK_FILL, 0, 2, 4); gtk_misc_set_alignment(GTK_MISC(label), 1.f, 0.5f); - gtk_table_attach(GTK_TABLE(table), label = gtk_alignment_new(0.f, 0.5f, 0.f, 0.f), 1, 2, 0, 1, GTK_FILL, 0, 2, 4); + gtk_table_attach(GTK_TABLE(table), label = gtk_alignment_new(0.5f, 0.5f, 0.f, 0.f), 1, 2, 0, 1, GTK_FILL | GTK_EXPAND, 0, 2, 4); gtk_container_add(GTK_CONTAINER(label), rei->num_dl_zoom_steps = hildon_controlbar_new()); hildon_controlbar_set_range(HILDON_CONTROLBAR(rei->num_dl_zoom_steps), 1, 4); hildon_controlbar_set_value(HILDON_CONTROLBAR(rei->num_dl_zoom_steps), REPO_DEFAULT_DL_ZOOM_STEPS); @@ -367,7 +353,7 @@ gtk_notebook_append_page(GTK_NOTEBOOK(rmi->notebook), /* Download Zoom Steps. */ gtk_table_attach(GTK_TABLE(table), label = gtk_label_new(_("View Zoom Steps")), 0, 1, 1, 2, GTK_FILL, 0, 2, 4); gtk_misc_set_alignment(GTK_MISC(label), 1.f, 0.5f); - gtk_table_attach(GTK_TABLE(table), label = gtk_alignment_new(0.f, 0.5f, 0.f, 0.f), 1, 2, 1, 2, GTK_FILL, 0, 2, 4); + gtk_table_attach(GTK_TABLE(table), label = gtk_alignment_new(0.5f, 0.5f, 0.f, 0.f), 1, 2, 1, 2, GTK_FILL | GTK_EXPAND, 0, 2, 4); gtk_container_add(GTK_CONTAINER(label), rei->num_view_zoom_steps = hildon_controlbar_new()); hildon_controlbar_set_range(HILDON_CONTROLBAR(rei->num_view_zoom_steps), 1, 4); hildon_controlbar_set_value(HILDON_CONTROLBAR(rei->num_view_zoom_steps), REPO_DEFAULT_VIEW_ZOOM_STEPS);