From 690f1487f47c73f7785f0afcee73ea088144437d Mon Sep 17 00:00:00 2001 From: Martin Kretzschmar Date: Mon, 4 Jul 2005 20:49:56 +0000 Subject: [PATCH] (enum): kill redundant columns enum (ev_properties_fonts_set_document): use EV_DOCUMENT_FONTS_COLUMN_NUM_COLUMNS. --- ChangeLog | 6 ++++++ shell/ev-properties-fonts.c | 9 ++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73298f9e..11bd6b9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-04 Martin Kretzschmar + + * 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 * 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 ce510911..d86e1065 100644 --- a/shell/ev-properties-fonts.c +++ b/shell/ev-properties-fonts.c @@ -31,12 +31,6 @@ #include #include -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); -- 2.43.5