From 5b9122d07bf385aee77a44f4eb6817a10bc37d28 Mon Sep 17 00:00:00 2001 From: Bill Gianopoulos Date: Thu, 7 Apr 2016 19:25:24 -0400 Subject: [PATCH] Bug 1262634 - Avoid undefined reference to moz_gtk_get_entry_min_height in builds specifying cairo-gtk2 toolkit. r=karlt --HG-- extra : histedit_source : 160487a1e3dcfea56c38b88308fbff41724c33b7 --- widget/gtk/nsNativeThemeGTK.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widget/gtk/nsNativeThemeGTK.cpp b/widget/gtk/nsNativeThemeGTK.cpp index 77ac94a802a5..870411e08ccd 100644 --- a/widget/gtk/nsNativeThemeGTK.cpp +++ b/widget/gtk/nsNativeThemeGTK.cpp @@ -1591,12 +1591,14 @@ nsNativeThemeGTK::GetMinimumWidgetSize(nsPresContext* aPresContext, aResult->height += border.top + border.bottom; } break; +#if (MOZ_WIDGET_GTK == 3) case NS_THEME_NUMBER_INPUT: case NS_THEME_TEXTFIELD: { moz_gtk_get_entry_min_height(&aResult->height); } break; +#endif case NS_THEME_TOOLBAR_SEPARATOR: { gint separator_width;