Reorder print list so status is at the end. Ellipsize the status column.

2006-03-27  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprintunixdialog.c:
	Reorder print list so status is at the end.
	Ellipsize the status column.
This commit is contained in:
Alexander Larsson
2006-03-27 16:21:17 +00:00
committed by Alexander Larsson
parent 010e267f69
commit be1d955809
4 changed files with 22 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
2006-03-27 Alexander Larsson <alexl@redhat.com>
* gtk/gtkprintunixdialog.c:
Reorder print list so status is at the end.
Ellipsize the status column.
2006-03-27 Alexander Larsson <alexl@redhat.com>
* gtk/gtkpagesetupunixdialog.c:

View File

@@ -1,3 +1,9 @@
2006-03-27 Alexander Larsson <alexl@redhat.com>
* gtk/gtkprintunixdialog.c:
Reorder print list so status is at the end.
Ellipsize the status column.
2006-03-27 Alexander Larsson <alexl@redhat.com>
* gtk/gtkpagesetupunixdialog.c:

View File

@@ -30,12 +30,12 @@ Cups/Unix print dialog:
* Add custom translations for a lot of standard PPD options
* Actually get default printer from somewhere
* reorder printer columns? The status column is very wide
* Don't select default for a short while, so that we can avoid flashing if the selected printer appears
* Add nicer scaling to print dialog (scale to fit page size)
General:
* should base64 move to glib ?
* Add API docs
Page setting dialog:
* HIG spacing

View File

@@ -1253,14 +1253,6 @@ create_main_page (GtkPrintUnixDialog *dialog)
NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes (_("Status"),
renderer,
"text",
PRINTER_LIST_COL_STATE,
NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes (_("Location"),
renderer,
@@ -1269,6 +1261,15 @@ create_main_page (GtkPrintUnixDialog *dialog)
NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
renderer = gtk_cell_renderer_text_new ();
g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
column = gtk_tree_view_column_new_with_attributes (_("Status"),
renderer,
"text",
PRINTER_LIST_COL_STATE,
NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
gtk_widget_show (treeview);
gtk_container_add (GTK_CONTAINER (scrolled), treeview);