diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-30 19:00:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-30 19:00:15 +0200 |
commit | fd3e5dc97f06e54220a2c5b65980dd6adc2c5555 (patch) | |
tree | 204e2445390797f1ea8751e7f1f7d242884f154d /src/gui_gtk_f.c | |
parent | a17d4c1934b008b9aa8a2d7cf085cfe76a690d9a (diff) | |
download | vim-git-fd3e5dc97f06e54220a2c5b65980dd6adc2c5555.tar.gz |
Add a few #ifdefs to exclude functions that are not used. (Domnique Pelle)
Diffstat (limited to 'src/gui_gtk_f.c')
-rw-r--r-- | src/gui_gtk_f.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui_gtk_f.c b/src/gui_gtk_f.c index ccf54ece9..2caded85d 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) |