]> www.fi.muni.cz Git - evince.git/commitdiff
only call ev_properties_fonts_set_document() if the document implements
authorMatthew S. Wilson <msw@rpath.com>
Tue, 5 Jul 2005 02:47:49 +0000 (02:47 +0000)
committerMatt Wilson <msw@src.gnome.org>
Tue, 5 Jul 2005 02:47:49 +0000 (02:47 +0000)
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

ChangeLog
shell/ev-properties-dialog.c

index 2653ffa43cf73a07fc36eb2c1140fe1ada522d0c..52ec3665b7ab69923c219126ca4d97026a1d3ab2 100644 (file)
--- 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:
index aa6142af73f951f58885252aefe6d055a1d23be8..7bf20e17191d8a4b6d30fef2819fd0d0a975a399 100644 (file)
@@ -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 *