From fd3e5dc97f06e54220a2c5b65980dd6adc2c5555 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 30 May 2010 19:00:15 +0200 Subject: Add a few #ifdefs to exclude functions that are not used. (Domnique Pelle) --- src/gui_gtk_f.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui_gtk_f.c') diff --git a/src/gui_gtk_f.c b/src/gui_gtk_f.c index ccf54ece97..2caded85dd 100644 --- a/src/gui_gtk_f.c +++ b/src/gui_gtk_f.c @@ -172,12 +172,13 @@ gtk_form_move(GtkForm *form, } } +#if !defined(HAVE_GTK2) || defined(PROTO) void gtk_form_set_size(GtkForm *form, guint width, guint height) { g_return_if_fail(GTK_IS_FORM(form)); - /* prevent unneccessary calls */ + /* prevent useless calls */ if (form->width == width && form->height == height) return; form->width = width; @@ -190,6 +191,7 @@ gtk_form_set_size(GtkForm *form, guint width, guint height) gtk_container_queue_resize(GTK_CONTAINER(GTK_WIDGET(form)->parent)); #endif } +#endif void gtk_form_freeze(GtkForm *form) -- cgit v1.2.3