gtk: don't leak the GtkBorder with VTE 0.36
commit6978dc4adcdf27722aa6f9e13f88a903b30a3f8d
authorAlberto Garcia <berto@igalia.com>
Fri, 13 May 2016 08:20:54 +0000 (13 11:20 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 13 May 2016 10:40:12 +0000 (13 12:40 +0200)
tree9191d9abc3352de8c73ddfb194866aa80dc599b0
parenta69fc693e9a7e51b4be08cd37bb3fb02c9386152
gtk: don't leak the GtkBorder with VTE 0.36

When gtk_widget_style_get() is used to get the "inner-border" style
property, it returns a copy of the GtkBorder which must be freed by
the caller.

This patch also fixes a warning about the unused 'padding' structure
with VTE 0.36.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: 1463127654-5171-1-git-send-email-berto@igalia.com
Cc: Cole Robinson <crobinso@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
[ kraxel: adapted to changes in ui patch queue ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c