aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-10-28 09:00:13 +0100
committerThomas White <taw@bitwiz.org.uk>2015-10-28 09:00:13 +0100
commitcd0742f94ba0e1a6e26cfb3a7e8a982c9295ea51 (patch)
tree6d0c388219d347b5f62cd8a3cb7d6e660b06393e /src/sc_editor.c
parentaf3e3bbc80307aae36262772a76dd342a1c07bb8 (diff)
Remove hforw()
SCEditor isn't a real height-for-width widget because it implements scrolling itself
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 845275e..470faeb 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -194,10 +194,6 @@ static void sc_editor_get_property(GObject *obj, guint id, GValue *val,
static GtkSizeRequestMode get_request_mode(GtkWidget *widget)
{
- if ( SC_EDITOR(widget)->flow ) {
- return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
- }
-
return GTK_SIZE_REQUEST_CONSTANT_SIZE;
}
@@ -228,16 +224,6 @@ static void get_preferred_height(GtkWidget *widget, gint *min, gint *natural)
}
-static void hforw(GtkWidget *widget, gint width, gint *min, gint *natural)
-{
- if ( !SC_EDITOR(widget)->flow ) {
- fprintf(stderr, "Warning: height for width call!\n");
- }
- *min = 10000;
- *natural = 10000;
-}
-
-
static void sc_editor_class_init(SCEditorClass *klass)
{
GObjectClass *goc = G_OBJECT_CLASS(klass);
@@ -251,7 +237,7 @@ static void sc_editor_class_init(SCEditorClass *klass)
GTK_WIDGET_CLASS(klass)->get_request_mode = get_request_mode;
GTK_WIDGET_CLASS(klass)->get_preferred_width = get_preferred_width;
GTK_WIDGET_CLASS(klass)->get_preferred_height = get_preferred_height;
- GTK_WIDGET_CLASS(klass)->get_preferred_height_for_width = hforw;
+ GTK_WIDGET_CLASS(klass)->get_preferred_height_for_width = NULL;
}