Added "fixed-size" cell property to GtkCellAreaBox
Now a cell can either have a "fixed" size or it can have an "aligned" starting point or both. "fixed" size cells take no space when they are invisible.
This commit is contained in:
		| @ -96,12 +96,12 @@ simple_scaffold (void) | ||||
|   area = cell_area_scaffold_get_area (CELL_AREA_SCAFFOLD (scaffold)); | ||||
|  | ||||
|   cell_1 = renderer = gtk_cell_renderer_text_new (); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, FALSE, FALSE); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, FALSE, FALSE, FALSE); | ||||
|   gtk_cell_area_attribute_connect (area, renderer, "text", SIMPLE_COLUMN_NAME); | ||||
|  | ||||
|   cell_2 = renderer = gtk_cell_renderer_pixbuf_new (); | ||||
|   g_object_set (G_OBJECT (renderer), "xalign", 0.0F, NULL); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, TRUE, FALSE); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, TRUE, FALSE, FALSE); | ||||
|   gtk_cell_area_attribute_connect (area, renderer, "stock-id", SIMPLE_COLUMN_ICON); | ||||
|  | ||||
|   cell_3 = renderer = gtk_cell_renderer_text_new (); | ||||
| @ -109,7 +109,7 @@ simple_scaffold (void) | ||||
| 		"wrap-mode", PANGO_WRAP_WORD, | ||||
| 		"wrap-width", 215, | ||||
| 		NULL); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, FALSE, TRUE); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, FALSE, TRUE, FALSE); | ||||
|   gtk_cell_area_attribute_connect (area, renderer, "text", SIMPLE_COLUMN_DESCRIPTION); | ||||
|  | ||||
|   return scaffold; | ||||
| @ -360,7 +360,7 @@ focus_scaffold (gboolean color_bg, GtkCellRenderer **focus, GtkCellRenderer **si | ||||
|  | ||||
|   renderer = gtk_cell_renderer_text_new (); | ||||
|   g_object_set (G_OBJECT (renderer), "editable", TRUE, NULL); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, TRUE, FALSE); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, TRUE, FALSE, FALSE); | ||||
|   gtk_cell_area_attribute_connect (area, renderer, "text", FOCUS_COLUMN_NAME); | ||||
|  | ||||
|   if (color_bg) | ||||
| @ -371,7 +371,7 @@ focus_scaffold (gboolean color_bg, GtkCellRenderer **focus, GtkCellRenderer **si | ||||
|  | ||||
|   toggle = renderer = gtk_cell_renderer_toggle_new (); | ||||
|   g_object_set (G_OBJECT (renderer), "xalign", 0.0F, NULL); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, FALSE, TRUE); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, FALSE, TRUE, FALSE); | ||||
|   gtk_cell_area_attribute_connect (area, renderer, "active", FOCUS_COLUMN_CHECK); | ||||
|  | ||||
|   if (color_bg) | ||||
| @ -395,7 +395,7 @@ focus_scaffold (gboolean color_bg, GtkCellRenderer **focus, GtkCellRenderer **si | ||||
|   if (sibling) | ||||
|     *sibling = renderer; | ||||
|  | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, FALSE, TRUE); | ||||
|   gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (area), renderer, FALSE, TRUE, FALSE); | ||||
|   gtk_cell_area_attribute_connect (area, renderer, "text", FOCUS_COLUMN_STATIC_TEXT); | ||||
|  | ||||
|   gtk_cell_area_add_focus_sibling (area, toggle, renderer); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Tristan Van Berkom
					Tristan Van Berkom