]> err.no Git - mapper/commitdiff
Formating
authorKaj-Michael Lang <milang@onion.tal.org>
Mon, 16 Jul 2007 14:08:24 +0000 (17:08 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Mon, 16 Jul 2007 14:08:24 +0000 (17:08 +0300)
src/poi-gui.c

index 21801f2c86be9cf67c735b6947ad6157773779b0..f67ab5394518a95ad68d995159a3eb877b0152e5 100644 (file)
@@ -44,8 +44,7 @@ gboolean category_delete(GtkWidget * widget, DeletePOI * dpoi)
        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));
@@ -53,11 +52,9 @@ gboolean category_delete(GtkWidget * widget, DeletePOI * dpoi)
 
        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;
                }
@@ -65,8 +62,7 @@ gboolean category_delete(GtkWidget * widget, DeletePOI * dpoi)
 
                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;
                }
@@ -207,23 +203,18 @@ gboolean category_dialog(guint cat_id)
 
        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 */
@@ -239,8 +230,7 @@ gboolean category_dialog(guint cat_id)
                                                             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);
@@ -256,8 +246,7 @@ gboolean category_dialog(guint cat_id)
                                                             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);