Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew S. Wilson <msw@rpath.com>2005-07-05 02:47:49 (GMT)
committer Matt Wilson <msw@src.gnome.org>2005-07-05 02:47:49 (GMT)
commitbbc6a0f5736ed843754902eb9a829dd5e173e1ac (patch)
tree44a754ebe78d7f1cd813181f1f258da0775225c7
parent8f535d303b8985db357abc54cb4d3fe1ff7e84bd (diff)
only call ev_properties_fonts_set_document() if the document implements
2005-07-04 Matthew S. Wilson <msw@rpath.com> * shell/ev-properties-dialog.c (ev_properties_dialog_set_document): only call ev_properties_fonts_set_document() if the document implements the fonts interface
-rw-r--r--ChangeLog7
-rw-r--r--shell/ev-properties-dialog.c17
2 files changed, 17 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 2653ffa..52ec366 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-07-04 Matthew S. Wilson <msw@rpath.com>
+
+ * shell/ev-properties-dialog.c
+ (ev_properties_dialog_set_document): only call
+ ev_properties_fonts_set_document() if the document implements the
+ fonts interface
+
2005-07-05 Marco Pesenti Gritti <mpg@redhat.com>
* configure.ac:
diff --git a/shell/ev-properties-dialog.c b/shell/ev-properties-dialog.c
index aa6142a..7bf20e1 100644
--- a/shell/ev-properties-dialog.c
+++ b/shell/ev-properties-dialog.c
@@ -95,14 +95,17 @@ ev_properties_dialog_set_document (EvPropertiesDialog *properties,
}
ev_properties_view_set_info (EV_PROPERTIES_VIEW (properties->general_page), info);
- if (properties->fonts_page == NULL && EV_IS_DOCUMENT_FONTS (document)) {
- label = gtk_label_new (_("Fonts"));
- properties->fonts_page = ev_properties_fonts_new ();
- gtk_notebook_append_page (GTK_NOTEBOOK (properties->notebook),
- properties->fonts_page, label);
- gtk_widget_show (properties->fonts_page);
+ if (EV_IS_DOCUMENT_FONTS (document)) {
+ if (properties->fonts_page == NULL) {
+ label = gtk_label_new (_("Fonts"));
+ properties->fonts_page = ev_properties_fonts_new ();
+ gtk_notebook_append_page (GTK_NOTEBOOK (properties->notebook),
+ properties->fonts_page, label);
+ gtk_widget_show (properties->fonts_page);
+ }
+
+ ev_properties_fonts_set_document (EV_PROPERTIES_FONTS (properties->fonts_page), document);
}
- ev_properties_fonts_set_document (EV_PROPERTIES_FONTS (properties->fonts_page), document);
}
GtkWidget *