buffer = g_strdup_printf("%s\n\t%s\n%s",
_("Delete category?"),
dpoi->txt_label,
- _
- ("WARNING: All POIs in that category will also be deleted!"));
+ _("WARNING: All POIs in that category will also be deleted!"));
dialog = hildon_note_new_confirmation(GTK_WINDOW(_window), buffer);
g_free(buffer);
i = gtk_dialog_run(GTK_DIALOG(dialog));
if (i == GTK_RESPONSE_OK) {
/* delete dpoi->poi_id */
- if (SQLITE_OK != sqlite3_bind_int(_stmt_delete_poi_by_catid, 1,
- dpoi->id) ||
+ if (SQLITE_OK != sqlite3_bind_int(_stmt_delete_poi_by_catid, 1, dpoi->id) ||
SQLITE_DONE != sqlite3_step(_stmt_delete_poi_by_catid)) {
- MACRO_BANNER_SHOW_INFO(_window,
- _("Problem deleting POI"));
+ MACRO_BANNER_SHOW_INFO(_window, _("Problem deleting POI"));
sqlite3_reset(_stmt_delete_poi_by_catid);
return FALSE;
}
if (SQLITE_OK != sqlite3_bind_int(_stmt_delete_cat, 1, dpoi->id)
|| SQLITE_DONE != sqlite3_step(_stmt_delete_cat)) {
- MACRO_BANNER_SHOW_INFO(_window,
- _("Problem deleting category"));
+ MACRO_BANNER_SHOW_INFO(_window, _("Problem deleting category"));
sqlite3_reset(_stmt_delete_cat);
return FALSE;
}
while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
if (strlen(gtk_entry_get_text(GTK_ENTRY(txt_label))))
- cat_label =
- g_strdup(gtk_entry_get_text(GTK_ENTRY(txt_label)));
+ cat_label = g_strdup(gtk_entry_get_text(GTK_ENTRY(txt_label)));
else {
popup_error(dialog,
- _
- ("Please specify a name for the category."));
+ _("Please specify a name for the category."));
continue;
}
gtk_text_buffer_get_iter_at_offset(desc_txt, &begin, 0);
gtk_text_buffer_get_end_iter(desc_txt, &end);
- cat_desc =
- gtk_text_buffer_get_text(desc_txt, &begin, &end, TRUE);
+ cat_desc = gtk_text_buffer_get_text(desc_txt, &begin, &end, TRUE);
- cat_enabled =
- (gtk_toggle_button_get_active
- (GTK_TOGGLE_BUTTON(chk_enabled)) ? 1 : 0);
+ cat_enabled = (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(chk_enabled)) ? 1 : 0);
if (cat_id > 0) {
/* edit category */
4, cat_id)
|| SQLITE_DONE != sqlite3_step(_stmt_update_cat)) {
MACRO_BANNER_SHOW_INFO(_window,
- _
- ("Problem updating category"));
+ _("Problem updating category"));
results = FALSE;
}
sqlite3_reset(_stmt_update_cat);
3, cat_enabled)
|| SQLITE_DONE != sqlite3_step(_stmt_insert_cat)) {
MACRO_BANNER_SHOW_INFO(_window,
- _
- ("Problem adding category"));
+ _("Problem adding category"));
results = FALSE;
}
sqlite3_reset(_stmt_insert_cat);