]> www.fi.muni.cz Git - evince.git/commitdiff
(enum): kill redundant columns enum
authorMartin Kretzschmar <martink@src.gnome.org>
Mon, 4 Jul 2005 20:49:56 +0000 (20:49 +0000)
committerMartin Kretzschmar <martink@src.gnome.org>
Mon, 4 Jul 2005 20:49:56 +0000 (20:49 +0000)
(ev_properties_fonts_set_document): use
EV_DOCUMENT_FONTS_COLUMN_NUM_COLUMNS.

ChangeLog
shell/ev-properties-fonts.c

index 73298f9ef403661e460d94d170166d8aaee89232..11bd6b9b14e5089cb91cf39639ce7c738b8a7293 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-04  Martin Kretzschmar  <martink@gnome.org>
+
+       * shell/ev-properties-fonts.c (enum): kill redundant columns enum
+       (ev_properties_fonts_set_document): use
+       EV_DOCUMENT_FONTS_COLUMN_NUM_COLUMNS.
+
 2005-07-04  Matthew S. Wilson  <msw@rpath.com>
 
        * tiff/tiff2ps.c: remove TRUE and FALSE definitions, glib provides
index ce5109112d2d00d1d1da2b2dc07ce101545a0935..d86e106552409d240d4f1e5169f6e89b4db99822 100644 (file)
 #include <gtk/gtktreeview.h>
 #include <glade/glade.h>
 
-enum
-{
-       FONT_NAME_COL,
-       NUM_COLS
-};
-
 struct _EvPropertiesFonts {
        GtkVBox base_instance;
 
@@ -156,7 +150,8 @@ ev_properties_fonts_set_document (EvPropertiesFonts *properties,
 
        properties->document = document;
 
-       list_store = gtk_list_store_new (NUM_COLS, G_TYPE_STRING);
+       list_store = gtk_list_store_new (EV_DOCUMENT_FONTS_COLUMN_NUM_COLUMNS,
+                                        G_TYPE_STRING);
        gtk_tree_view_set_model (tree_view, GTK_TREE_MODEL (list_store));
 
        job = ev_job_fonts_new (properties->document);