]> err.no Git - mapper/commitdiff
Code formating
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 11 Oct 2007 09:44:00 +0000 (12:44 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 11 Oct 2007 09:44:00 +0000 (12:44 +0300)
src/poi-gui.c

index 4555093a5517014199f5755190b2074207995281..d333ecf6e0f1d014740d5ccd9b56de35ea2ae639 100644 (file)
@@ -280,19 +280,15 @@ category_list()
                return TRUE;
 
        sw = gtk_scrolled_window_new(NULL, NULL);
-       gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
-                                      GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
-       gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),
-                          sw, TRUE, TRUE, 0);
+       gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+       gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), sw, TRUE, TRUE, 0);
 
        tree_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
        /* Maemo-related? */
        g_object_set(tree_view, "allow-checkbox-mode", FALSE, NULL);
        gtk_container_add(GTK_CONTAINER(sw), tree_view);
 
-       gtk_tree_selection_set_mode(gtk_tree_view_get_selection
-                                   (GTK_TREE_VIEW(tree_view)),
-                                   GTK_SELECTION_SINGLE);
+       gtk_tree_selection_set_mode(gtk_tree_view_get_selection (GTK_TREE_VIEW(tree_view)), GTK_SELECTION_SINGLE);
        gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree_view), TRUE);
 
        renderer = gtk_cell_renderer_text_new();
@@ -302,27 +298,23 @@ category_list()
 
        renderer = gtk_cell_renderer_toggle_new();
        g_signal_connect(renderer, "toggled", G_CALLBACK(category_toggled), store);
-       column = gtk_tree_view_column_new_with_attributes(_("Enabled"), renderer,
-                                                    "active", CAT_ENABLED, NULL);
+       column = gtk_tree_view_column_new_with_attributes(_("Enabled"), renderer, "active", CAT_ENABLED, NULL);
        gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
        gtk_tree_view_column_set_sort_column_id (column, CAT_ENABLED);
 
        g_object_unref(G_OBJECT(store));
 
        renderer = gtk_cell_renderer_text_new();
-       column = gtk_tree_view_column_new_with_attributes(_("Label"), renderer,
-                                                    "text", CAT_LABEL, NULL);
+       column = gtk_tree_view_column_new_with_attributes(_("Label"), renderer, "text", CAT_LABEL, NULL);
        gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
        gtk_tree_view_column_set_sort_column_id (column, CAT_LABEL);
 
        renderer = gtk_cell_renderer_text_new();
-       column = gtk_tree_view_column_new_with_attributes(_("Description"), renderer,
-                                                    "text", CAT_DESC, NULL);
+       column = gtk_tree_view_column_new_with_attributes(_("Description"), renderer, "text", CAT_DESC, NULL);
        gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
 
        renderer = gtk_cell_renderer_text_new();
-       column = gtk_tree_view_column_new_with_attributes(_("# POIs"), renderer,
-                                                    "text", CAT_POI_CNT, NULL);
+       column = gtk_tree_view_column_new_with_attributes(_("# POIs"), renderer, "text", CAT_POI_CNT, NULL);
        gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column);
        gtk_tree_view_column_set_sort_column_id (column, CAT_POI_CNT);
 
@@ -423,38 +415,30 @@ select_poi(guint unitx, guint unity, poi_info *poi)
        gtk_window_set_default_size(GTK_WINDOW(dialog), 500, 300);
 
        sw = gtk_scrolled_window_new(NULL, NULL);
-       gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw),
-                                           GTK_SHADOW_ETCHED_IN);
-       gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
-                                      GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
-       gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),
-                          sw, TRUE, TRUE, 0);
+       gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_ETCHED_IN);
+       gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+       gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), sw, TRUE, TRUE, 0);
 
        list = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
        gtk_container_add(GTK_CONTAINER(sw), list);
        g_object_unref(G_OBJECT(store));
 
-       gtk_tree_selection_set_mode(gtk_tree_view_get_selection
-                                   (GTK_TREE_VIEW(list)),
-                                   GTK_SELECTION_SINGLE);
+       gtk_tree_selection_set_mode(gtk_tree_view_get_selection (GTK_TREE_VIEW(list)), GTK_SELECTION_SINGLE);
        gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(list), TRUE);
        gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (list), TRUE);
        gtk_tree_view_set_search_column (GTK_TREE_VIEW (list), POI_LABEL);
 
        renderer = gtk_cell_renderer_text_new();
-       column = gtk_tree_view_column_new_with_attributes(_("Location"), renderer,
-                                                    "text", POI_LATLON, NULL);
+       column = gtk_tree_view_column_new_with_attributes(_("Location"), renderer, "text", POI_LATLON, NULL);
        gtk_tree_view_append_column(GTK_TREE_VIEW(list), column);
 
        renderer = gtk_cell_renderer_text_new();
-       column = gtk_tree_view_column_new_with_attributes(_("Label"), renderer,
-                                                    "text", POI_LABEL, NULL);
+       column = gtk_tree_view_column_new_with_attributes(_("Label"), renderer, "text", POI_LABEL, NULL);
        gtk_tree_view_column_set_sort_column_id (column, POI_LABEL);
        gtk_tree_view_append_column(GTK_TREE_VIEW(list), column);
 
        renderer = gtk_cell_renderer_text_new();
-       column = gtk_tree_view_column_new_with_attributes(_("Category"), renderer,
-                                                    "text", POI_CATLAB, NULL);
+       column = gtk_tree_view_column_new_with_attributes(_("Category"), renderer, "text", POI_CATLAB, NULL);
        gtk_tree_view_column_set_sort_column_id (column, POI_CATLAB);
        gtk_tree_view_append_column(GTK_TREE_VIEW(list), column);
 
@@ -646,14 +630,10 @@ poi_dialog(POIAction action, guint unitx, guint unity)
        gtk_misc_set_alignment(GTK_MISC(label), 1.f, 0.5f);
 
        txt_scroll = gtk_scrolled_window_new(NULL, NULL);
-       gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(txt_scroll),
-                                           GTK_SHADOW_IN);
-       gtk_table_attach(GTK_TABLE(table), txt_scroll,
-                        1, 2, 5, 6, GTK_EXPAND | GTK_FILL, 0, 2, 4);
+       gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(txt_scroll), GTK_SHADOW_IN);
+       gtk_table_attach(GTK_TABLE(table), txt_scroll, 1, 2, 5, 6, GTK_EXPAND | GTK_FILL, 0, 2, 4);
 
-       gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(txt_scroll),
-                                      GTK_POLICY_AUTOMATIC,
-                                      GTK_POLICY_AUTOMATIC);
+       gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(txt_scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 
        txt_desc = gtk_text_view_new();
        gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(txt_desc), GTK_WRAP_WORD);