aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-03-05 08:57:26 +0100
committerThomas White <taw@bitwiz.me.uk>2019-03-05 08:57:26 +0100
commit7cf7aaf9eba9ea6550ca6c09631c9f6783c1a24b (patch)
tree82b66e7cd18b48b7149ac9fc5584b5b4c7c784ee
parent915fcacee4c49f017ab2599b4307198ca3f713d3 (diff)
Remove unused PangoContext
-rw-r--r--libstorycode/gtk/gtknarrativeview.c3
-rw-r--r--libstorycode/gtk/gtknarrativeview.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/libstorycode/gtk/gtknarrativeview.c b/libstorycode/gtk/gtknarrativeview.c
index 90915ab..043925e 100644
--- a/libstorycode/gtk/gtknarrativeview.c
+++ b/libstorycode/gtk/gtknarrativeview.c
@@ -1005,9 +1005,6 @@ static gint realise_sig(GtkWidget *da, GtkNarrativeView *e)
g_signal_connect(G_OBJECT(e->im_context), "commit", G_CALLBACK(im_commit_sig), e);
g_signal_connect(G_OBJECT(e), "key-press-event", G_CALLBACK(key_press_sig), e);
- /* FIXME: Can do this "properly" by setting up a separate font map */
- e->pc = gtk_widget_get_pango_context(GTK_WIDGET(e));
-
return FALSE;
}
diff --git a/libstorycode/gtk/gtknarrativeview.h b/libstorycode/gtk/gtknarrativeview.h
index bf596fc..7fa4d38 100644
--- a/libstorycode/gtk/gtknarrativeview.h
+++ b/libstorycode/gtk/gtknarrativeview.h
@@ -94,7 +94,6 @@ struct _gtknarrativeview
/*< private >*/
Presentation *p;
GtkIMContext *im_context;
- PangoContext *pc;
int w; /* Surface size in pixels */
int h;