From: Martin Kretzschmar Date: Mon, 4 Jul 2005 20:49:56 +0000 (+0000) Subject: (enum): kill redundant columns enum X-Git-Tag: EVINCE_0_3_3~170 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=690f1487f47c73f7785f0afcee73ea088144437d;p=evince.git (enum): kill redundant columns enum (ev_properties_fonts_set_document): use EV_DOCUMENT_FONTS_COLUMN_NUM_COLUMNS. --- 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);