]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/taskbar.cpp
made wx-config work in place on systems where /bin/sh is a Bourne shell (such as...
[wxWidgets.git] / src / gtk1 / taskbar.cpp
index cc61da167e8494c189468908a46db4b6457c419c..cf26365834056a1b9062e33851225f9891527204 100644 (file)
@@ -75,15 +75,17 @@ bool wxTaskBarIconAreaBase::IsProtocolSupported()
 // Pop-up menu stuff
 //-----------------------------------------------------------------------------
 
-extern "C" void gtk_pop_hide_callback( GtkWidget *widget, bool* is_waiting  );
+extern "C" WXDLLIMPEXP_CORE void gtk_pop_hide_callback( GtkWidget *widget, bool* is_waiting  );
 
-extern void SetInvokingWindow( wxMenu *menu, wxWindow* win );
+extern WXDLLIMPEXP_CORE void SetInvokingWindow( wxMenu *menu, wxWindow* win );
 
-extern "C" void wxPopupMenuPositionCallback( GtkMenu *menu,
-                                             gint *x, gint *y,
-                                             gboolean * WXUNUSED(whatever),
-                                             gpointer user_data );
+extern "C" WXDLLIMPEXP_CORE
+    void wxPopupMenuPositionCallback( GtkMenu *menu,
+                                      gint *x, gint *y,
+                                      gboolean * WXUNUSED(whatever),
+                                      gpointer user_data );
 
+#if wxUSE_MENUS_NATIVE
 bool wxTaskBarIconAreaBase::DoPopupMenu( wxMenu *menu, int x, int y )
 {
     wxCHECK_MSG( m_widget != NULL, false, wxT("invalid window") );
@@ -140,6 +142,7 @@ bool wxTaskBarIconAreaBase::DoPopupMenu( wxMenu *menu, int x, int y )
 
     return true;
 }
+#endif // wxUSE_MENUS_NATIVE
 
 #endif // __WXGTK20__
 #endif // GTK_CHECK_VERSION(2, 1, 0)