Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kretzschmar <martink@src.gnome.org>2005-07-04 20:49:56 (GMT)
committer Martin Kretzschmar <martink@src.gnome.org>2005-07-04 20:49:56 (GMT)
commit690f1487f47c73f7785f0afcee73ea088144437d (patch)
treef73e1417a594381a50dc96ab4cb14593b5261081
parentfd8827679afed060a93d69923705ee421ad8536e (diff)
(enum): kill redundant columns enum
(ev_properties_fonts_set_document): use EV_DOCUMENT_FONTS_COLUMN_NUM_COLUMNS.
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-properties-fonts.c9
2 files changed, 8 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 73298f9..11bd6b9 100644
--- 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
diff --git a/shell/ev-properties-fonts.c b/shell/ev-properties-fonts.c
index ce51091..d86e106 100644
--- a/shell/ev-properties-fonts.c
+++ b/shell/ev-properties-fonts.c
@@ -31,12 +31,6 @@
#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);