mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 291234. netwerk tests don't need to depend on GTK anymore. r+sr=dbaron,a=asa
This commit is contained in:
parent
0b9d1f7e2a
commit
a2a26e1b5b
@ -86,7 +86,6 @@ LIBS = $(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(TK_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
DEFINES += $(TK_CFLAGS)
|
||||
|
@ -37,21 +37,8 @@
|
||||
#ifndef TestCommon_h__
|
||||
#define TestCommon_h__
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_GTK2)
|
||||
#include <gtk/gtk.h>
|
||||
#endif //MOZ_WIDGET_GTK || MOZ_WIDGET_GTK2
|
||||
|
||||
inline int test_common_init(int *argc, char ***argv)
|
||||
{
|
||||
#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_GTK2)
|
||||
#if defined(MOZ_WIDGET_GTK)
|
||||
gtk_set_locale();
|
||||
#endif
|
||||
gtk_init(argc, argv);
|
||||
|
||||
gtk_widget_set_default_visual(gdk_rgb_get_visual());
|
||||
gtk_widget_set_default_colormap(gdk_rgb_get_cmap());
|
||||
#endif /* MOZ_WIDGET_GTK || MOZ_WIDGET_GTK2 */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user