From f9c50818c05bf2d6f184a16fb525369bd6698cdc Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 24 Jul 2014 00:00:15 +0200 Subject: [PATCH] Remove commented asterisks There were tons of them. Why? --- treeview-tutorial.xml | 286 ------------------------------------------ 1 file changed, 286 deletions(-) diff --git a/treeview-tutorial.xml b/treeview-tutorial.xml index 8ced2b7..98ff62a 100644 --- a/treeview-tutorial.xml +++ b/treeview-tutorial.xml @@ -45,8 +45,6 @@ - - Lists and Trees: the GtkTreeView Widget @@ -212,20 +210,6 @@ main (int argc, char **argv) - - - - - - - - - - - - - - Components: Model, Renderer, Column, View @@ -270,20 +254,6 @@ main (int argc, char **argv) GtkHBox. - - - - - - - - - - - - - - GtkTreeModels for Data Storage: GtkListStore and GtkTreeStore @@ -345,8 +315,6 @@ main (int argc, char **argv) rows, the model will also notify the store, and your row will appear in or disappear from the view as well. - - How Data is Organised in a Store @@ -443,8 +411,6 @@ main (int argc, char **argv) row. - - Refering to Rows: GtkTreeIter, GtkTreePath, GtkTreeRowReference @@ -858,13 +824,9 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, - - Adding Rows to a Store - - Adding Rows to a List Store @@ -902,8 +864,6 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, data to the rows in the next section. - - Adding Rows to a Tree Store @@ -954,8 +914,6 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, - - Speed Issues when Adding a Lot of Rows @@ -1005,8 +963,6 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, - - Manipulating Row Data @@ -1092,8 +1048,6 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, of data to be stored (and retrieved). - - Retrieving Row Data @@ -1275,8 +1229,6 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, - - Removing Rows @@ -1394,8 +1346,6 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, - - Removing Multiple Rows @@ -1506,8 +1456,6 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, want to remove all rows. - - Storing GObjects (Pixbufs etc.) @@ -1569,8 +1517,6 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path, GtkTreeView widget. - - Storing Data Structures: of Pointers, GBoxed Types, and GObject (TODO) @@ -1852,20 +1798,6 @@ yourself. Some code snippets: - - - - - - - - - - - - - - Creating a Tree View @@ -1881,8 +1813,6 @@ yourself. Some code snippets: view = gtk_tree_view_new(); - - Connecting Tree View and Model @@ -1905,8 +1835,6 @@ yourself. Some code snippets: (after all, we do not want to go down the road of global variables, which will inevitably lead to the Dark Side, do we?). - - Reference counting @@ -1956,8 +1884,6 @@ yourself. Some code snippets: - - Tree View Look and Feel @@ -1996,20 +1922,6 @@ yourself. Some code snippets: - - - - - - - - - - - - - - Mapping Data to the Screen: GtkTreeViewColumn and GtkCellRenderer @@ -2049,8 +1961,6 @@ yourself. Some code snippets: 'Representative' column only contains one cell renderer to display the representative's name. - - Cell Renderers @@ -2331,8 +2241,6 @@ main (int argc, char **argv) functions. - - Attributes @@ -2426,8 +2334,6 @@ main (int argc, char **argv) set up cell data functions. - - Cell Data Functions @@ -2527,8 +2433,6 @@ main (int argc, char **argv) same height, there should not be any visible delay though). - - GtkCellRendererText and Integer, Boolean and Float Types @@ -2594,8 +2498,6 @@ main (int argc, char **argv) function. - - GtkCellRendererText, UTF8, and pango markup @@ -2725,8 +2627,6 @@ main (int argc, char **argv) escaped, even if you do not use pango markup in the text. - - A Working Example @@ -2928,8 +2828,6 @@ main (int argc, char **argv) - - How to Make a Whole Row Bold or Coloured @@ -2980,8 +2878,6 @@ main (int argc, char **argv) favorite shade of orange. - - How to Pack Icons into the Tree View @@ -3077,25 +2973,9 @@ main (int argc, char **argv) - - - - - - - - - - - - - - Selections, Double-Clicks and Context Menus - - Handling Selections @@ -3128,8 +3008,6 @@ main (int argc, char **argv) selected or not (which you need to do if you want all rows that are not selected for example). - - Selection Modes @@ -3160,8 +3038,6 @@ main (int argc, char **argv) - - Getting the Currently Selected Rows @@ -3282,8 +3158,6 @@ main (int argc, char **argv) - - Using Selection Functions @@ -3391,8 +3265,6 @@ main (int argc, char **argv) - - Checking Whether a Row is Selected @@ -3409,8 +3281,6 @@ main (int argc, char **argv) not. - - Selecting and Unselecting Rows @@ -3430,8 +3300,6 @@ main (int argc, char **argv) ever need to do that. - - Getting the Number of Selected Rows @@ -3480,8 +3348,6 @@ main (int argc, char **argv) - - Double-Clicks on a Row @@ -3534,8 +3400,6 @@ main (int argc, char **argv) - - Context Menus on Right Click @@ -3668,20 +3532,6 @@ main (int argc, char **argv) - - - - - - - - - - - - - - Sorting @@ -3719,8 +3569,6 @@ main (int argc, char **argv) model that maps the unsorted rows of a child model (e.g. a list store or tree store) into a sorted state without changing the child model. - - GtkTreeSortable @@ -3894,8 +3742,6 @@ main (int argc, char **argv) (otherwise bad things will happen). - - GtkTreeModelSort @@ -3976,8 +3822,6 @@ main (int argc, char **argv) you call tree view functions. - - Sorting and Tree View Column Headers @@ -4000,8 +3844,6 @@ main (int argc, char **argv) column ID and sort order for you if you click on a column header. - - Case-insensitive String Comparing @@ -4053,20 +3895,6 @@ main (int argc, char **argv) - - - - - - - - - - - - - - Editable Cells @@ -4275,20 +4103,6 @@ void cell_toggled_callback (GtkCellRendererToggle *cell, - - - - - - - - - - - - - - Miscellaneous @@ -4538,8 +4352,6 @@ onButtonPress (GtkWidget *view, GdkEventButton *bevent, gpointer data) - - Glade and Tree Views @@ -4572,20 +4384,6 @@ onButtonPress (GtkWidget *view, GdkEventButton *bevent, gpointer data) - - - - - - - - - - - - - - Drag'n'Drop (DnD) **** needs revision *** @@ -4607,8 +4405,6 @@ onButtonPress (GtkWidget *view, GdkEventButton *bevent, gpointer data) tree view widget. You usually want to use the tree-view specific Drag-and-Drop framework. - - Drag'n'Dropping Row-Unrelated Data to and from a Tree View from other Windows or Widgets @@ -4815,8 +4611,6 @@ view_onDragMotion (GtkWidget *widget, GdkDragContext *context, gint x, gtk_tree_view_get_path_at_pos. - - Dragging Rows Around Within a Tree **** TODO *** @@ -4836,8 +4630,6 @@ view_onDragMotion (GtkWidget *widget, GdkDragContext *context, gint x, place the row to move exact to the pixel on the target row). - - Dragging Rows from One Tree to Another **** TODO *** @@ -4845,25 +4637,9 @@ view_onDragMotion (GtkWidget *widget, GdkDragContext *context, gint x, - - - - - - - - - - - - - - Writing Custom Models - - When is a Custom Model Useful? @@ -4905,8 +4681,6 @@ view_onDragMotion (GtkWidget *widget, GdkDragContext *context, gint x, keep track of. - - What Does Writing a Custom Model Involve? @@ -4996,8 +4770,6 @@ view_onDragMotion (GtkWidget *widget, GdkDragContext *context, gint x, attributes). - - Example: A Simple Custom List Model @@ -5073,8 +4845,6 @@ view_onDragMotion (GtkWidget *widget, GdkDragContext *context, gint x, Let's look at the code sections in a bit more detail: - - custom-list.h @@ -5101,8 +4871,6 @@ view_onDragMotion (GtkWidget *widget, GdkDragContext *context, gint x, as you extend it to suit your needs. - - custom-list.c @@ -5347,8 +5115,6 @@ custom_list_tree_model_init (GtkTreeModelIface *iface) - - From a List to a Tree @@ -5365,8 +5131,6 @@ custom_list_tree_model_init (GtkTreeModelIface *iface) TODO: do we need anything else here? - - Additional interfaces, here: the GtkTreeSortable interface @@ -5783,8 +5547,6 @@ custom_list_tree_model_init (GtkTreeModelIface *iface) when sorting by name. - - Working Example: Custom List Model Source Code @@ -5813,8 +5575,6 @@ custom_list_tree_model_init (GtkTreeModelIface *iface) - - custom-list.h @@ -5929,8 +5689,6 @@ void custom_list_append_record (CustomList *custom_list, - - custom-list.c @@ -6609,8 +6367,6 @@ custom_list_append_record (CustomList *custom_list, - - main.c @@ -6706,20 +6462,6 @@ main (int argc, char **argv) - - - - - - - - - - - - - - Writing Custom Cell Renderers @@ -7360,20 +7102,6 @@ main (int argc, char **argv) - - - - - - - - - - - - - - Other Resources @@ -7473,20 +7201,6 @@ main (int argc, char **argv) - - - - - - - - - - - - - - Copyright, License, Credits, and Revision History