summaryrefslogtreecommitdiff
path: root/font-viewer/font-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'font-viewer/font-view.c')
-rw-r--r--font-viewer/font-view.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c
index c08eff1e..aab821b3 100644
--- a/font-viewer/font-view.c
+++ b/font-viewer/font-view.c
@@ -526,7 +526,7 @@ font_view_application_do_open (FontViewApplication *self,
GdkRGBA black = { 0.0, 0.0, 0.0, 1.0 };
GtkWidget *w;
- self->font_widget = GTK_WIDGET (sushi_font_widget_new (uri));
+ self->font_widget = GTK_WIDGET (sushi_font_widget_new (uri, 0));
gtk_widget_override_color (self->font_widget, GTK_STATE_NORMAL, &black);
gtk_widget_override_background_color (self->font_widget, GTK_STATE_FLAG_NORMAL, &white);
@@ -542,7 +542,8 @@ font_view_application_do_open (FontViewApplication *self,
g_signal_connect (self->font_widget, "error",
G_CALLBACK (font_widget_error_cb), self);
} else {
- g_object_set (self->font_widget, "uri", uri, NULL);
+ g_object_set (self->font_widget, "uri", uri, "face-index", 0, NULL);
+ sushi_font_widget_load (SUSHI_FONT_WIDGET (self->font_widget));
}
g_free (uri);