0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

Add a few #ifdefs to exclude functions that are not used. (Domnique Pelle)

This commit is contained in:
Bram Moolenaar
2010-05-30 19:00:15 +02:00
parent a17d4c1934
commit fd3e5dc97f
5 changed files with 13 additions and 4 deletions

View File

@@ -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)